mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
ld: Require GCC 5 or above for 3 x86 tests
Require GCC 5 or above for 3 x86 tests which fail with GCC 4.9.3. PR ld/21924 * testsuite/ld-i386/i386.exp: Require GCC 5 or above for "weakundef1 with PIE" test. * testsuite/ld-x86-64/tls.exp: Require GCC 5 or above for "tlsdesc1" and "tlsdesc1 with PIE" tests.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/21924
|
||||||
|
* testsuite/ld-i386/i386.exp: Require GCC 5 or above for
|
||||||
|
"weakundef1 with PIE" test.
|
||||||
|
* testsuite/ld-x86-64/tls.exp: Require GCC 5 or above for
|
||||||
|
"tlsdesc1" and "tlsdesc1 with PIE" tests.
|
||||||
|
|
||||||
2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
|
2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* configure.ac (TESTBFDLIB): Add a ',' after -Wl,--rpath.
|
* configure.ac (TESTBFDLIB): Add a ',' after -Wl,--rpath.
|
||||||
|
@ -1252,6 +1252,9 @@ if { [isnative]
|
|||||||
"pass.out" \
|
"pass.out" \
|
||||||
"$NOPIE_CFLAGS" \
|
"$NOPIE_CFLAGS" \
|
||||||
] \
|
] \
|
||||||
|
]
|
||||||
|
if { [at_least_gcc_version 5 0] } {
|
||||||
|
run_ld_link_exec_tests [list \
|
||||||
[list \
|
[list \
|
||||||
"Run weakundef1 with PIE" \
|
"Run weakundef1 with PIE" \
|
||||||
"-pie" \
|
"-pie" \
|
||||||
@ -1263,6 +1266,7 @@ if { [isnative]
|
|||||||
] \
|
] \
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if { !([istarget "i?86-*-linux*"]
|
if { !([istarget "i?86-*-linux*"]
|
||||||
|| [istarget "x86_64-*-linux*"]) } {
|
|| [istarget "x86_64-*-linux*"]) } {
|
||||||
|
@ -206,6 +206,7 @@ if { ![check_gnu2_tls_available] } {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if { [at_least_gcc_version 5 0] } {
|
||||||
run_ld_link_exec_tests [list \
|
run_ld_link_exec_tests [list \
|
||||||
[list \
|
[list \
|
||||||
"Run tlsdesc1" \
|
"Run tlsdesc1" \
|
||||||
@ -216,15 +217,6 @@ run_ld_link_exec_tests [list \
|
|||||||
"pass.out" \
|
"pass.out" \
|
||||||
"$GNU2_CFLAGS" \
|
"$GNU2_CFLAGS" \
|
||||||
] \
|
] \
|
||||||
[list \
|
|
||||||
"Run tlsdesc1 (-z now)" \
|
|
||||||
"-Wl,-z,now -Wl,--no-as-needed tmpdir/libtlsdesc1n.so" \
|
|
||||||
"" \
|
|
||||||
{ tlsdesc1a.c } \
|
|
||||||
"tlsdesc1b" \
|
|
||||||
"pass.out" \
|
|
||||||
"$GNU2_CFLAGS" \
|
|
||||||
] \
|
|
||||||
[list \
|
[list \
|
||||||
"Run tlsdesc1 with PIE" \
|
"Run tlsdesc1 with PIE" \
|
||||||
"-pie -Wl,--no-as-needed tmpdir/libtlsdesc1.so" \
|
"-pie -Wl,--no-as-needed tmpdir/libtlsdesc1.so" \
|
||||||
@ -234,6 +226,19 @@ run_ld_link_exec_tests [list \
|
|||||||
"pass.out" \
|
"pass.out" \
|
||||||
"-fPIE $GNU2_CFLAGS" \
|
"-fPIE $GNU2_CFLAGS" \
|
||||||
] \
|
] \
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
run_ld_link_exec_tests [list \
|
||||||
|
[list \
|
||||||
|
"Run tlsdesc1 (-z now)" \
|
||||||
|
"-Wl,-z,now -Wl,--no-as-needed tmpdir/libtlsdesc1n.so" \
|
||||||
|
"" \
|
||||||
|
{ tlsdesc1a.c } \
|
||||||
|
"tlsdesc1b" \
|
||||||
|
"pass.out" \
|
||||||
|
"$GNU2_CFLAGS" \
|
||||||
|
] \
|
||||||
[list \
|
[list \
|
||||||
"Run tlsdesc1 with PIE (-z now)" \
|
"Run tlsdesc1 with PIE (-z now)" \
|
||||||
"-pie -Wl,-z,now -Wl,--no-as-needed tmpdir/libtlsdesc1n.so" \
|
"-pie -Wl,-z,now -Wl,--no-as-needed tmpdir/libtlsdesc1n.so" \
|
||||||
|
Reference in New Issue
Block a user