mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
ld: Require GCC 5 for Build pr25749-1b (-pie -fPIE)
Before GCC 5, Build pr25749-1b (-pie -fPIE) won't trigger the expected linker error. * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build pr25749-1b (-pie -fPIE).
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2020-06-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
|
||||||
|
pr25749-1b (-pie -fPIE).
|
||||||
|
|
||||||
2020-06-16 Alan Modra <amodra@gmail.com>
|
2020-06-16 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
|
* testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
|
||||||
|
@ -174,7 +174,7 @@ proc check_pr25749a {testname srcfilea srcfileb cflags ldflags lderror} {
|
|||||||
check_pr25749a "pr25749-1a" "pr25749-1.c" "pr25749-1a.c" "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS" ""
|
check_pr25749a "pr25749-1a" "pr25749-1.c" "pr25749-1a.c" "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS" ""
|
||||||
check_pr25749a "pr25749-1a" "pr25749-1.c" "pr25749-1a.c" "-fPIE" "-pie" ""
|
check_pr25749a "pr25749-1a" "pr25749-1.c" "pr25749-1a.c" "-fPIE" "-pie" ""
|
||||||
check_pr25749a "pr25749-1b" "pr25749-1.c" "pr25749-1b.c" "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS" ""
|
check_pr25749a "pr25749-1b" "pr25749-1.c" "pr25749-1b.c" "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS" ""
|
||||||
if { [istarget "i?86-*-linux*"] } {
|
if { [istarget "i?86-*-linux*"] || ![at_least_gcc_version 5 1] } {
|
||||||
check_pr25749a "pr25749-1b" "pr25749-1.c" "pr25749-1b.c" "-fPIE" "-pie" ""
|
check_pr25749a "pr25749-1b" "pr25749-1.c" "pr25749-1b.c" "-fPIE" "-pie" ""
|
||||||
} else {
|
} else {
|
||||||
check_pr25749a "pr25749-1b" "pr25749-1.c" "pr25749-1b.c" "-fPIE" "-pie" "pr25749-1b.err"
|
check_pr25749a "pr25749-1b" "pr25749-1.c" "pr25749-1b.c" "-fPIE" "-pie" "pr25749-1b.err"
|
||||||
|
Reference in New Issue
Block a user