aboutsummaryrefslogblamecommitdiff
path: root/test/ELF/new-dtags.test
blob: 334d477622a789339fa376e4e7614fe305236aaa (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














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

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

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