summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-08-31 04:47:41 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-08-31 04:48:05 -0700
commite9d644e8fb2e7fa2f61e4b978f75881d906e0dbc (patch)
treea02c2c595bc617546cdb97267e72ada0a0fbf84c /ld/testsuite/ld-ifunc
parent9a8d6a757d29ad8c80dc7640ac902d722b1b473f (diff)
ld: Append -mx86-used-note=no to ASFLAGS
Since x86 assembler may generate .note.gnu.property section, append -mx86-used-note=no to tests which don't expect .note.gnu.property section on ELF/x86 targets. * testsuite/ld-elf/elf.exp (ASFLAGS): Save, append -mx86-used-note=no and restore. * testsuite/ld-ifunc/ifunc.exp (ASFLAGS): Likewise. * testsuite/ld-scripts/defined.exp (ASFLAGS): Likewise. * testsuite/ld-scripts/overlay-size.exp (ASFLAGS): Likewise
Diffstat (limited to 'ld/testsuite/ld-ifunc')
-rw-r--r--ld/testsuite/ld-ifunc/ifunc.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp
index 5fee56d3bf..2b8084e2b2 100644
--- a/ld/testsuite/ld-ifunc/ifunc.exp
+++ b/ld/testsuite/ld-ifunc/ifunc.exp
@@ -45,6 +45,12 @@ if ![check_shared_lib_support] {
return
}
+global ASFLAGS
+set saved_ASFLAGS "$ASFLAGS"
+if { [istarget "i?86-*-*"] || [istarget "x86_64-*-*"] } {
+ set ASFLAGS "$ASFLAGS -mx86-used-note=no"
+}
+
# This test does not need a compiler...
run_dump_test "ifuncmod5"
@@ -770,3 +776,5 @@ run_ld_link_exec_tests [list \
"-fPIE -O2 -g" \
] \
]}
+
+set ASFLAGS "$saved_ASFLAGS"