1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s
3 // Test that relocations with local symbols in a mergeable section are done
4 // with a reference to the symbol. Not sure if this is a linker limitation,
5 // but this matches the behavior of gas.
7 .section .sec1,"aM",@progbits,16
10 movsd .Lfoo(%rip), %xmm1
12 // Relocation refers to symbol 1
14 // CHECK: ('_relocations', [
15 // CHECK-NEXT: # Relocation 0
16 // CHECK-NEXT: (('r_offset',
17 // CHECK-NEXT: ('r_sym', 1)
18 // CHECK-NEXT: ('r_type',
19 // CHECK-NEXT: ('r_addend',
23 // Symbol number 1 is .Lfoo
26 // CHECK-NEXT: (('st_name', 1) # '.Lfoo'