[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / gc-sections-synthetic.s
blobfaf6c8a0ff685b9951906203e2318bfe256a7d62
1 # REQUIRES: x86
3 # Linker-synthesized sections shouldn't be gc'ed.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t1
6 # RUN: ld.lld %t1 -shared -o %t.so
7 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2
8 # RUN: ld.lld %t2 %t.so -build-id -dynamic-linker /foo/bar -o %t.out
9 # RUN: llvm-readobj --sections %t.out | FileCheck %s
11 # CHECK: Name: .interp
12 # CHECK: Name: .note.gnu.build-id
14 .globl _start
15 _start:
16 ret