1 // Test that relocation of local symbols is working.
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
3 // RUN: ld.lld %t -o %t2
4 // RUN: llvm-objdump -s -d %t2 | FileCheck %s
15 .section .text2,"ax",@progbits
17 movl $R_X86_64_32, %edx
19 // FIXME: this would be far more self evident if llvm-objdump printed
21 // CHECK: Disassembly of section .text2:
22 // CHECK-NEXT: R_X86_64_32:
23 // CHECK-NEXT: 201009: {{.*}} movl $2101257, %edx
25 .section .R_X86_64_32S,"ax",@progbits
27 movq lulz - 0x100000, %rdx
29 // CHECK: Disassembly of section .R_X86_64_32S:
30 // CHECK-NEXT: R_X86_64_32S:
31 // CHECK-NEXT: {{.*}}: {{.*}} movq 1052681, %rdx
33 .section .R_X86_64_64,"a",@progbits
37 // CHECK: Contents of section .R_X86_64_64:
38 // CHECK-NEXT: 200120 20012000 00000000