• 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 aaa --auxiliary bbb -o %t
4# RUN: llvm-readobj --dynamic-table %t | FileCheck %s
5# RUN: ld.lld %t.o -shared -f aaa --auxiliary=bbb -o %t
6# RUN: llvm-readobj --dynamic-table %t | FileCheck %s
7
8# CHECK:      DynamicSection [
9# CHECK-NEXT: Tag                Type          Name/Value
10# CHECK-NEXT: 0x000000007FFFFFFD AUXILIARY     Auxiliary library: [aaa]
11# CHECK-NEXT: 0x000000007FFFFFFD AUXILIARY     Auxiliary library: [bbb]
12
13# RUN: not ld.lld %t.o -f aaa --auxiliary bbb -o /dev/null 2>&1 \
14# RUN:    | FileCheck -check-prefix=ERR %s
15# ERR: -f may not be used without -shared
16