This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[SPARC] Skip ld/pr23169


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
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" \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]