[SPARC] Skip ld/pr23169

Message ID 23829979.bvIoIGNmVZ@polaris
State New
Headers show
Series
  • [SPARC] Skip ld/pr23169
Related show

Commit Message

Eric Botcazou Jan. 29, 2019, 9:19 a.m.
It's already skipped on PowerPC and Aarch64 with this comment from Alan:

# The pr23169 testcase is not valid.  In general, you can't call ifunc
# resolvers in another binary unless you know what you're doing.  In
# particular you must ensure that the binary containing the resolver
# is relocated before the resolver is called (for example, the
# function addresses returned by the resolver may be loaded from the
# GOT).

Tested on SPARC64/Linux, applied on mainline, 2.32 and 2.31 branches.


2019-01-29  Eric Botcazou  <ebotcazou@adacore.com>

	* testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.

-- 
Eric Botcazou

Patch

diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp
index 0fb312a0a77..6725d493e27 100644
--- a/ld/testsuite/ld-ifunc/ifunc.exp
+++ b/ld/testsuite/ld-ifunc/ifunc.exp
@@ -719,7 +719,9 @@  run_ld_link_exec_tests [list \
 # That does not happen for the pr23169 testcase where the resolver is
 # in the executable (which is relocated last by ld.so).
 if { [isnative]
-     && !([istarget "powerpc-*-*"] || [istarget "aarch64*-*-*"]) } {
+     && !([istarget "powerpc-*-*"]
+           || [istarget "aarch64*-*-*"]
+           || [istarget "sparc*-*-*"]) } {
 run_ld_link_exec_tests [list \
     [list \
 	"Run pr23169a" \