diff options
Diffstat (limited to 'test/ELF/weak-undef-rw.s')
-rw-r--r-- | test/ELF/weak-undef-rw.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ELF/weak-undef-rw.s b/test/ELF/weak-undef-rw.s new file mode 100644 index 0000000000000..c75e7d67db3db --- /dev/null +++ b/test/ELF/weak-undef-rw.s @@ -0,0 +1,12 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o +# RUN: ld.lld %t.o -o %t --export-dynamic +# RUN: llvm-readobj -r %t | FileCheck %s + +# CHECK: R_X86_64_64 foobar 0x0 + + .global _start +_start: + .data + .weak foobar + .quad foobar |