diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-02-06 16:21:51 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-02-06 16:21:51 +0000 |
commit | 7acbc3a0f60f6e5814c9c0f59bb8d8bf37b7099d (patch) | |
tree | 14a94df773e5d97915e13c47337ee11cd27c0466 /ld | |
parent | 134a20666733a1db093d7da3554a8b74bb03bfc2 (diff) | |
download | gdb-7acbc3a0f60f6e5814c9c0f59bb8d8bf37b7099d.zip gdb-7acbc3a0f60f6e5814c9c0f59bb8d8bf37b7099d.tar.gz gdb-7acbc3a0f60f6e5814c9c0f59bb8d8bf37b7099d.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/now-1.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/now-2.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/now-3.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/now-4.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/rpath-1.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/rpath-2.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/runpath-1.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/runpath-2.d | 8 |
9 files changed, 79 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index c6f26a8..e172a1b 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -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 diff --git a/ld/testsuite/ld-elf/now-1.d b/ld/testsuite/ld-elf/now-1.d new file mode 100644 index 0000000..9c7d5fa --- /dev/null +++ b/ld/testsuite/ld-elf/now-1.d @@ -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\) + +#... diff --git a/ld/testsuite/ld-elf/now-2.d b/ld/testsuite/ld-elf/now-2.d new file mode 100644 index 0000000..1430bc4 --- /dev/null +++ b/ld/testsuite/ld-elf/now-2.d @@ -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 diff --git a/ld/testsuite/ld-elf/now-3.d b/ld/testsuite/ld-elf/now-3.d new file mode 100644 index 0000000..687885a --- /dev/null +++ b/ld/testsuite/ld-elf/now-3.d @@ -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 diff --git a/ld/testsuite/ld-elf/now-4.d b/ld/testsuite/ld-elf/now-4.d new file mode 100644 index 0000000..8d9d02f --- /dev/null +++ b/ld/testsuite/ld-elf/now-4.d @@ -0,0 +1,8 @@ +#source: start.s +#readelf: -d -W +#ld: -shared -z now +#target: *-*-linux* *-*-gnu* + +#... + 0x[0-9a-f]+ +\(BIND_NOW\) + +#pass diff --git a/ld/testsuite/ld-elf/rpath-1.d b/ld/testsuite/ld-elf/rpath-1.d new file mode 100644 index 0000000..918a326 --- /dev/null +++ b/ld/testsuite/ld-elf/rpath-1.d @@ -0,0 +1,9 @@ +#source: start.s +#readelf: -d -W +#ld: -shared -rpath . +#target: *-*-linux* *-*-gnu* + +#failif +#... + +0x[0-9a-f]+ +\(RUNPATH\) +Library runpath: +\[.\] +#... diff --git a/ld/testsuite/ld-elf/rpath-2.d b/ld/testsuite/ld-elf/rpath-2.d new file mode 100644 index 0000000..17be86d --- /dev/null +++ b/ld/testsuite/ld-elf/rpath-2.d @@ -0,0 +1,8 @@ +#source: start.s +#readelf: -d -W +#ld: -shared -rpath . +#target: *-*-linux* *-*-gnu* + +#... + +0x[0-9a-f]+ +\(RPATH\) +Library rpath: +\[.\] +#pass diff --git a/ld/testsuite/ld-elf/runpath-1.d b/ld/testsuite/ld-elf/runpath-1.d new file mode 100644 index 0000000..4d06639 --- /dev/null +++ b/ld/testsuite/ld-elf/runpath-1.d @@ -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: +\[.\] +#... diff --git a/ld/testsuite/ld-elf/runpath-2.d b/ld/testsuite/ld-elf/runpath-2.d new file mode 100644 index 0000000..0df8af6 --- /dev/null +++ b/ld/testsuite/ld-elf/runpath-2.d @@ -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 |