aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/shared.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-09-30 03:04:52 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-09-30 03:04:52 -0700
commit2715765b0fd357b4b58166850a23f509aacde161 (patch)
tree424f3a99411e7add7e22ef06f8bbf2ee50d34a7c /ld/testsuite/ld-elf/shared.exp
parent386c8614d5e65431e977b1b20cc4642f944faca1 (diff)
downloadgdb-2715765b0fd357b4b58166850a23f509aacde161.zip
gdb-2715765b0fd357b4b58166850a23f509aacde161.tar.gz
gdb-2715765b0fd357b4b58166850a23f509aacde161.tar.bz2
Add a test for PR binutils/21978
PR binutils/21978 * testsuite/ld-elf/pr21978.od: New file. * testsuite/ld-elf/pr21978a.c: Likewise. * testsuite/ld-elf/pr21978b.c: Likewise. * testsuite/ld-elf/shared.exp: Run PR binutils/21978 test.
Diffstat (limited to 'ld/testsuite/ld-elf/shared.exp')
-rw-r--r--ld/testsuite/ld-elf/shared.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 2bb0750..6e091c9 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -458,6 +458,9 @@ set build_tests {
{"Build pr21964-2b.so"
"-shared" "-fPIC"
{pr21964-2b.c} {} "pr21964-2b.so"}
+ {"Dump pr21978.so"
+ "-shared" "-fPIC -g -O2"
+ {pr21978a.c pr21978b.c} {{objdump {-Sl} pr21978.od}} "pr21978.so"}
}
run_cc_link_tests $build_tests