[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / shlib-undefined-local.s
blob6d3e8da34e291c37e0ca43b459c201c373176245
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t1.o %S/Inputs/shlib-undefined-ref.s
4 # RUN: ld.lld -shared -o %t.so %t1.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t2.o %s
7 # RUN: echo "{ local: *; };" > %t.script
8 # RUN: not ld.lld -version-script %t.script %t2.o %t.so -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR
10 # ERR: error: non-exported symbol 'should_not_be_exported' in '{{.*}}tmp2.o' is referenced by DSO '{{.*}}tmp.so'
12 .globl should_not_be_exported
13 should_not_be_exported:
14 ret
16 .globl _start
17 _start:
18 ret