Add tests for ELF DT_XXX

* ld-elf/now-1.d: New file.
	* ld-elf/now-2.d: Likewise.
	* ld-elf/now-3.d: Likewise.
	* ld-elf/now-4.d: Likewise.
	* ld-elf/rpath-1.d: Likewise.
	* ld-elf/rpath-2.d: Likewise.
	* ld-elf/runpath-1.d: Likewise.
	* ld-elf/runpath-2.d: Likewise.
This commit is contained in:
H.J. Lu 2013-02-06 16:21:51 +00:00
parent 134a206667
commit 7acbc3a0f6
9 changed files with 79 additions and 0 deletions

View File

@ -1,3 +1,14 @@
2013-02-06 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/now-1.d: New file.
* ld-elf/now-2.d: Likewise.
* ld-elf/now-3.d: Likewise.
* ld-elf/now-4.d: Likewise.
* ld-elf/rpath-1.d: Likewise.
* ld-elf/rpath-2.d: Likewise.
* ld-elf/runpath-1.d: Likewise.
* ld-elf/runpath-2.d: Likewise.
2013-02-06 Alan Modra <amodra@gmail.com>
PR ld/15096

View File

@ -0,0 +1,9 @@
#source: start.s
#readelf: -d -W
#ld: -shared -z now --enable-new-dtags
#target: *-*-linux* *-*-gnu*
#failif
#...
0x[0-9a-f]+ +\(BIND_NOW\) +
#...

View File

@ -0,0 +1,8 @@
#source: start.s
#readelf: -d -W
#ld: -shared -z now --enable-new-dtags
#target: *-*-linux* *-*-gnu*
#...
0x[0-9a-f]+ +\(FLAGS\) +BIND_NOW
#pass

View File

@ -0,0 +1,9 @@
#source: start.s
#readelf: -d -W
#ld: -shared -z now
#target: *-*-linux* *-*-gnu*
#failif
#...
0x[0-9a-f]+ +\(FLAGS\) +BIND_NOW
#pass

View File

@ -0,0 +1,8 @@
#source: start.s
#readelf: -d -W
#ld: -shared -z now
#target: *-*-linux* *-*-gnu*
#...
0x[0-9a-f]+ +\(BIND_NOW\) +
#pass

View File

@ -0,0 +1,9 @@
#source: start.s
#readelf: -d -W
#ld: -shared -rpath .
#target: *-*-linux* *-*-gnu*
#failif
#...
+0x[0-9a-f]+ +\(RUNPATH\) +Library runpath: +\[.\]
#...

View File

@ -0,0 +1,8 @@
#source: start.s
#readelf: -d -W
#ld: -shared -rpath .
#target: *-*-linux* *-*-gnu*
#...
+0x[0-9a-f]+ +\(RPATH\) +Library rpath: +\[.\]
#pass

View File

@ -0,0 +1,9 @@
#source: start.s
#readelf: -d -W
#ld: -shared -rpath . --enable-new-dtags
#target: *-*-linux* *-*-gnu*
#failif
#...
+0x[0-9a-f]+ +\(RPATH\) +Library rpath: +\[.\]
#...

View File

@ -0,0 +1,8 @@
#source: start.s
#readelf: -d -W
#ld: -shared -rpath . --enable-new-dtags
#target: *-*-linux* *-*-gnu*
#...
+0x[0-9a-f]+ +\(RUNPATH\) +Library runpath: +\[.\]
#pass