[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / filter.s
blob2b07c01013dfa6faaadbe63587f86d1554a7c0de
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: ld.lld %t.o -shared -F foo.so -F boo.so -o %t1
4 # RUN: llvm-readobj --dynamic-table %t1 | FileCheck %s
6 # Test alias #1.
7 # RUN: ld.lld %t.o -shared --filter=foo.so --filter=boo.so -o %t2
8 # RUN: llvm-readobj --dynamic-table %t2 | FileCheck %s
10 # Test alias #2.
11 # RUN: ld.lld %t.o -shared --filter foo.so --filter boo.so -o %t3
12 # RUN: llvm-readobj --dynamic-table %t3 | FileCheck %s
14 # CHECK: DynamicSection [
15 # CHECK-NEXT: Tag Type Name/Value
16 # CHECK-NEXT: 0x000000007FFFFFFF FILTER Filter library: [foo.so]
17 # CHECK-NEXT: 0x000000007FFFFFFF FILTER Filter library: [boo.so]
19 # RUN: not ld.lld %t.o -F x -o /dev/null 2>&1 | FileCheck -check-prefix=ERR %s
20 # ERR: -F may not be used without -shared