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 // Symbol number 1 is .Lfoo
15 // CHECK-NEXT: (('st_name', 1) # '.Lfoo'
17 // Relocation refers to symbol 1
19 // CHECK: ('_relocations', [
20 // CHECK-NEXT: # Relocation 0
21 // CHECK-NEXT: (('r_offset',
22 // CHECK-NEXT: ('r_sym', 1)
23 // CHECK-NEXT: ('r_type',
24 // CHECK-NEXT: ('r_addend',