mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
ld: Append -Wa,-mx86-used-note=no for S-records tests
Since x86 assembler may generate .note.gnu.property section and S-records can't handle .note.gnu.property sections, add -mx86-used-note=no to S-records tests on ELF/x86 targets to avoid .note.gnu.property section. * testsuite/ld-srec/srec.exp: Append -Wa,-mx86-used-note=no to CC and CXX on ELF/x86 targets.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* testsuite/ld-srec/srec.exp: Append -Wa,-mx86-used-note=no to
|
||||||
|
CC and CXX on ELF/x86 targets.
|
||||||
|
|
||||||
2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
|
2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* testsuite/ld-i386/i386.exp: (ASFLAGS): Save, append
|
* testsuite/ld-i386/i386.exp: (ASFLAGS): Save, append
|
||||||
|
@ -357,6 +357,13 @@ set CC "$CC $PLT_CFLAGS $NOPIE_CFLAGS $NOPIE_LDFLAGS"
|
|||||||
set old_CXX "$CXX"
|
set old_CXX "$CXX"
|
||||||
set CXX "$CXX $PLT_CFLAGS $NOPIE_CFLAGS $NOPIE_LDFLAGS"
|
set CXX "$CXX $PLT_CFLAGS $NOPIE_CFLAGS $NOPIE_LDFLAGS"
|
||||||
|
|
||||||
|
# S-records can't handle .note.gnu.property sections.
|
||||||
|
if { [is_elf_format] \
|
||||||
|
&& ([istarget "i?86-*-*"] || [istarget "x86_64-*-*"]) } {
|
||||||
|
set CC "$CC -Wa,-mx86-used-note=no"
|
||||||
|
set CXX "$CXX -Wa,-mx86-used-note=no"
|
||||||
|
}
|
||||||
|
|
||||||
if { ![ld_compile $CC $srcdir/$subdir/sr1.c tmpdir/sr1.o] \
|
if { ![ld_compile $CC $srcdir/$subdir/sr1.c tmpdir/sr1.o] \
|
||||||
|| ![ld_compile $CC $srcdir/$subdir/sr2.c tmpdir/sr2.o] } {
|
|| ![ld_compile $CC $srcdir/$subdir/sr2.c tmpdir/sr2.o] } {
|
||||||
unresolved $test1
|
unresolved $test1
|
||||||
|
Reference in New Issue
Block a user