• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5
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
9
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
13
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]
18
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
21