diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-01-19 09:23:29 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-01-19 09:23:29 -0800 |
commit | 3e2aa5bbd36be9cf63530e5db2f6cf3898762a22 (patch) | |
tree | a261f0be8b756ba064e8dd4abd113b24bd7887d5 /ld/testsuite | |
parent | 63413d85873c450fa4ed2494f21fb1a65bdaf554 (diff) | |
download | gdb-3e2aa5bbd36be9cf63530e5db2f6cf3898762a22.zip gdb-3e2aa5bbd36be9cf63530e5db2f6cf3898762a22.tar.gz gdb-3e2aa5bbd36be9cf63530e5db2f6cf3898762a22.tar.bz2 |
Add a testcase for PR ld/17615
PR ld/17615
* ld-elf/pr17615.d: New file.
* ld-elf/pr17615.s: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr17615.d | 12 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr17615.s | 1 |
3 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index d08ff1a..10f109c 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-01-19 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/17615 + * ld-elf/pr17615.d: New file. + * ld-elf/pr17615.s: Likewise. + 2015-01-19 Alan Modra <amodra@gmail.com> * ld-gc/pr14265.d, diff --git a/ld/testsuite/ld-elf/pr17615.d b/ld/testsuite/ld-elf/pr17615.d new file mode 100644 index 0000000..a2a2f70 --- /dev/null +++ b/ld/testsuite/ld-elf/pr17615.d @@ -0,0 +1,12 @@ +#ld: --gc-sections -shared +#readelf: -S --wide --dyn-syms +#target: *-*-linux* *-*-gnu* +#notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* pj*-*-* +#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-* +# generic linker targets don't support --gc-sections, nor do a bunch of others + +#... + \[[ 0-9]+\] \.bss[ \t]+NOBITS[ \t0-9a-f]+WA.* +#... + +[0-9]+: +[0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[1-9]+ foo +#pass diff --git a/ld/testsuite/ld-elf/pr17615.s b/ld/testsuite/ld-elf/pr17615.s new file mode 100644 index 0000000..a177cf2 --- /dev/null +++ b/ld/testsuite/ld-elf/pr17615.s @@ -0,0 +1 @@ + .comm foo,4,4 |