[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / shlib-undefined-archive.s
blob940d8d7bc0c51a9af3e4bc0f8dba657b903df360
1 # REQUIRES: x86
3 # Undefined symbols in a DSO should pull out object files from archives
4 # to resolve them.
6 # RUN: echo '.globl foo' | llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t1.o -
7 # RUN: ld.lld -shared -o %t.so %t1.o
9 # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t2.o %s
10 # RUN: rm -f %t.a
11 # RUN: llvm-ar cru %t.a %t2.o
12 # RUN: ld.lld -o %t.exe %t.so %t.a
13 # RUN: llvm-nm -D %t.exe | FileCheck %s
15 # CHECK: T foo
17 .globl foo
18 foo:
19 ret