aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-06-17 07:39:11 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-06-17 07:39:28 -0700
commit22aa1d51198689f5f3f01a874b405bf4449cbfb0 (patch)
treea884e71daa1720d5d3e05ccbcdb58854ab98427b /ld
parent6fde587ff78a54b9e3bd70259de60cc5d7d8ced7 (diff)
downloadgdb-22aa1d51198689f5f3f01a874b405bf4449cbfb0.zip
gdb-22aa1d51198689f5f3f01a874b405bf4449cbfb0.tar.gz
gdb-22aa1d51198689f5f3f01a874b405bf4449cbfb0.tar.bz2
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).
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/linux-x86.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index ad268c8..68b463e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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>
* testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
diff --git a/ld/testsuite/ld-elf/linux-x86.exp b/ld/testsuite/ld-elf/linux-x86.exp
index aae75d4..7a311ae 100644
--- a/ld/testsuite/ld-elf/linux-x86.exp
+++ b/ld/testsuite/ld-elf/linux-x86.exp
@@ -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" "-fPIE" "-pie" ""
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" ""
} else {
check_pr25749a "pr25749-1b" "pr25749-1.c" "pr25749-1b.c" "-fPIE" "-pie" "pr25749-1b.err"