reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
# REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: ld.lld %t.o -rpath=/somepath -shared --disable-new-dtags -o %t
// RUN: llvm-readobj --dynamic-table %t | FileCheck --check-prefix=DISABLE %s

// RUN: ld.lld %t.o -rpath=/somepath -shared --enable-new-dtags -o %t2
// RUN: llvm-readobj --dynamic-table %t2 | FileCheck --check-prefix=ENABLE %s

// RUN: ld.lld %t.o -rpath=/somepath -shared --disable-new-dtags --enable-new-dtags -o %t2
// RUN: llvm-readobj --dynamic-table %t2 | FileCheck --check-prefix=ENABLE %s

// DISABLE: DynamicSection [
// DISABLE:   0x000000000000000F RPATH    Library rpath: [/somepath]
// DISABLE-NOT: RUNPATH
// DISABLE: ]

// ENABLE: DynamicSection [
// ENABLE:   0x000000000000001D RUNPATH   Library runpath: [/somepath]
// ENABLE-NOT: RPATH
// ENABLE: ]