Move ELF to HasReliableSymbolDifference=true. Also take the opportunity to put
[oota-llvm.git] / test / MC / ELF / merge.s
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump  --dump-section-data | FileCheck  %s
2
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.
6
7         .section        .sec1,"aM",@progbits,16
8 .Lfoo:
9         .text
10         movsd   .Lfoo(%rip), %xmm1
11
12 // Relocation refers to symbol 1
13
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',
20 // CHECK-NEXT:   ),
21 // CHECK-NEXT:  ])
22
23 // Symbol number 1 is .Lfoo
24
25 // CHECK:      # Symbol 1
26 // CHECK-NEXT: (('st_name', 1) # '.Lfoo'