aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-10-12 04:38:29 +0000
committerAlan Modra <amodra@gmail.com>2007-10-12 04:38:29 +0000
commit6ca8706da5d2154ee86544024f708fda30efba26 (patch)
tree1accddc19ddd4e896bf5fd5105c03dfc5b2185fc /ld
parent971d4640d218ee9bff00f5ef8437b1a462702eef (diff)
downloadgdb-6ca8706da5d2154ee86544024f708fda30efba26.zip
gdb-6ca8706da5d2154ee86544024f708fda30efba26.tar.gz
gdb-6ca8706da5d2154ee86544024f708fda30efba26.tar.bz2
* ld-srec/srec.exp: Define __stack_chk_fail sym.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-srec/srec.exp5
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 8c3f736..7e87651 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-12 Alan Modra <amodra@bigpond.net.au>
+
+ * ld-srec/srec.exp: Define __stack_chk_fail sym.
+
2007-10-09 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4476
diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp
index c75b57c..652ee6f 100644
--- a/ld/testsuite/ld-srec/srec.exp
+++ b/ld/testsuite/ld-srec/srec.exp
@@ -229,8 +229,9 @@ proc run_srec_test { test objs } {
global host_triplet
# Tell the ELF linker to not do anything clever with .eh_frame,
- # and not to put anything in small data.
- set flags "--traditional-format -G 0"
+ # not to put anything in small data, and define a symbol referenced
+ # by gcc -fstack-protector code.
+ set flags "--traditional-format -G 0 --defsym __stack_chk_fail=0"
# If the linker script uses SIZEOF_HEADERS, use a -Ttext argument
# to force both the normal link and the S-record link to be put in