aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc/ifunc.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-08-18 10:43:19 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-08-18 10:43:47 -0700
commit4e1626f5a8d73573d6cf593fabe5bc80f7b3e04e (patch)
tree39a54490c8d0ae7a58d3751f5bcea69ed96f8f7f /ld/testsuite/ld-ifunc/ifunc.exp
parent26d56a939e9e54e09d46ea6e9678463ac344fa33 (diff)
downloadgdb-4e1626f5a8d73573d6cf593fabe5bc80f7b3e04e.zip
gdb-4e1626f5a8d73573d6cf593fabe5bc80f7b3e04e.tar.gz
gdb-4e1626f5a8d73573d6cf593fabe5bc80f7b3e04e.tar.bz2
Add another test for PR ld/18841
PR ld/18841 * ld-ifunc/ifunc.exp: Add another test for PR ld/18841. * ld-ifunc/pr18841c.c: New file.
Diffstat (limited to 'ld/testsuite/ld-ifunc/ifunc.exp')
-rw-r--r--ld/testsuite/ld-ifunc/ifunc.exp26
1 files changed, 21 insertions, 5 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp
index b0f6de0..d3bebdd 100644
--- a/ld/testsuite/ld-ifunc/ifunc.exp
+++ b/ld/testsuite/ld-ifunc/ifunc.exp
@@ -473,12 +473,20 @@ run_cc_link_tests [list \
"libpr18808.so" \
] \
[list \
- "Build libpr18841.so" \
+ "Build libpr18841b.so" \
"-shared" \
"-fPIC -O0 -g" \
{ pr18841b.c } \
{} \
- "libpr18841.so" \
+ "libpr18841b.so" \
+ ] \
+ [list \
+ "Build libpr18841c.so" \
+ "-shared" \
+ "-fPIC -O0 -g" \
+ { pr18841c.c } \
+ {} \
+ "libpr18841c.so" \
] \
]
@@ -492,11 +500,19 @@ run_ld_link_exec_tests [] [list \
"pr18808.out" \
] \
[list \
- "Run pr18841" \
- "tmpdir/libpr18841.so" \
+ "Run pr18841 with libpr18841b.so" \
+ "tmpdir/libpr18841b.so" \
+ "" \
+ { pr18841a.c } \
+ "pr18841b" \
+ "pr18841.out" \
+ ] \
+ [list \
+ "Run pr18841 with libpr18841c.so" \
+ "tmpdir/libpr18841c.so" \
"" \
{ pr18841a.c } \
- "pr18841" \
+ "pr18841c" \
"pr18841.out" \
] \
]