aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-01-12 21:10:48 +1030
committerAlan Modra <amodra@gmail.com>2018-01-12 21:13:11 +1030
commit5ae5d3fd10c4bb520d767b25c59bf86db764adef (patch)
treebae2d8cf1ea7ac34e438bedc6e8cd0c5d491da10 /ld
parenta78eea1623aa6d05a395a73414bf01f6c8ae81c6 (diff)
downloadgdb-5ae5d3fd10c4bb520d767b25c59bf86db764adef.zip
gdb-5ae5d3fd10c4bb520d767b25c59bf86db764adef.tar.gz
gdb-5ae5d3fd10c4bb520d767b25c59bf86db764adef.tar.bz2
pr22374 function pointer initialization
When I added this test I said I'd look at fixing more targets. That hasn't happened yet, so xfail to tidy results. * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer initialization" for currently failing targets.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/elf.exp15
2 files changed, 20 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 39f79fe..0514bdd 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
2018-01-12 Alan Modra <amodra@gmail.com>
+ * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
+ initialization" for currently failing targets.
+
+2018-01-12 Alan Modra <amodra@gmail.com>
+
PR ld/22649
* testsuite/ld-elf/pr22649.msg: Allow other messages.
* testsuite/ld-elf/shared.exp: Check that --gc-sections is
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index d277987..0b005de 100644
--- a/ld/testsuite/ld-elf/elf.exp
+++ b/ld/testsuite/ld-elf/elf.exp
@@ -234,6 +234,21 @@ if { [check_shared_lib_support] } then {
run_ld_link_tests {
{"Build pr22374 shared library"
"-shared" "" "" "pr22374b.s" {} "pr22374.so" }
+ }
+ if { ![istarget "alpha-*-*"]
+ && ![istarget "frv-*-*"]
+ && ![istarget "hppa*-*-*"]
+ && ![istarget "i?86-*-*"]
+ && ![istarget "ia64-*-*"]
+ && ![istarget "microblaze-*-*"]
+ && ![istarget "powerpc*-*-*"]
+ && ![istarget "x86_64-*-*"]
+ && ![istarget "xtensa-*-*"] } {
+ # The next test checks that copy relocs are not used unnecessarily,
+ # but that is just an optimization so don't complain loudly.
+ setup_xfail "*-*-*"
+ }
+ run_ld_link_tests {
{"pr22374 function pointer initialization"
"" "tmpdir/pr22374.so" "" "pr22374a.s"
{ {readelf {--wide -r --dyn-syms} "pr22374-1.r"}