+2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
+
+ * 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.
+
2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/ld-srec/srec.exp: Append -Wa,-mx86-used-note=no to
set ASFLAGS "$ASFLAGS --defsym UNDERSCORE=1"
}
+global ASFLAGS
+set saved_ASFLAGS "$ASFLAGS"
+if { [istarget "i?86-*-*"] || [istarget "x86_64-*-*"] } {
+ set ASFLAGS "$ASFLAGS -mx86-used-note=no"
+}
+
set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
foreach t $test_list {
# We need to strip the ".d", but can leave the dirname.
run_dump_test [file rootname $t]
}
+set ASFLAGS "$saved_ASFLAGS"
+
# Targets using the generic linker backend don't support generating
# an import library.
set xfail_implib ""
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"
"-fPIE -O2 -g" \
] \
]}
+
+set ASFLAGS "$saved_ASFLAGS"
}
}
+global ASFLAGS
+set saved_ASFLAGS "$ASFLAGS"
+if { [is_elf_format] \
+ && ([istarget "i?86-*-*"] || [istarget "x86_64-*-*"]) } {
+ set ASFLAGS "$ASFLAGS -mx86-used-note=no"
+}
+
set prms_id 0
run_dump_test "defined2"
run_dump_test "defined3"
run_dump_test "defined6"
}
set LDFLAGS "$saved_LDFLAGS"
+set ASFLAGS "$saved_ASFLAGS"
return
}
+global ASFLAGS
+set saved_ASFLAGS "$ASFLAGS"
+if { [is_elf_format] \
+ && ([istarget "i?86-*-*"] || [istarget "x86_64-*-*"]) } {
+ set ASFLAGS "$ASFLAGS -mx86-used-note=no"
+}
+
run_dump_test overlay-size
+
+set ASFLAGS "$saved_ASFLAGS"