[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / as-needed-no-reloc.s
blob6cedeec3155d6db523d2ebba611a3483cbb76859
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o
3 # RUN: ld.lld -shared %t2.o -o %t2.so
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
5 # RUN: ld.lld -o %t %t.o --as-needed %t2.so
6 # RUN: llvm-readelf -d --dyn-symbols %t | FileCheck %s
9 # There must be a NEEDED entry for each undefined
11 # CHECK: (NEEDED) Shared library: [{{.*}}as-needed-no-reloc{{.*}}2.so]
12 # CHECK: UND bar
14 .globl _start
15 _start:
16 .global bar