blob: 3801ef71a1c70111b7bfe289d7288a7965f57f92 [file] [log] [blame]
# 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: ]