[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / abs-hidden.s
blobba97e0c12a31ddc71ca38319aa0a6fc571f48525
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
3 # RUN: echo '.globl foo; .hidden foo; foo = 42' | llvm-mc -filetype=obj -triple=x86_64 - -o %t2.o
4 # RUN: ld.lld %t.o %t2.o -o %t.so -shared
5 # RUN: llvm-readelf -r -S -x .got -x .data %t.so | FileCheck %s
7 ## Test we don't create relocations for non-preemptable absolute symbols.
9 # CHECK: There are no relocations in this file.
10 # CHECK: section '.got':
11 # CHECK: 0x000022b8 2a000000 00000000
13 ## .got - (.data+8) = 0xfffff0ef
14 # CHECK: section '.data':
15 # CHECK: 0x000032c0 2a000000 00000000 f0efffff
17 .data
18 .quad foo
19 .long foo@gotpcrel