summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-srec
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2007-10-12 04:38:29 +0000
committerAlan Modra <amodra@bigpond.net.au>2007-10-12 04:38:29 +0000
commit42916e6b078a665233983fa5a2affbd1e20fa356 (patch)
treeea72cef58e3d80760e6d07b73cb339a2e1de575e /ld/testsuite/ld-srec
parent902d7728675399adf0d82948789b58f053b8e65e (diff)
downloadbinutils-redhat-42916e6b078a665233983fa5a2affbd1e20fa356.tar.gz
* ld-srec/srec.exp: Define __stack_chk_fail sym.
Diffstat (limited to 'ld/testsuite/ld-srec')
-rw-r--r--ld/testsuite/ld-srec/srec.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp
index c75b57caa5..652ee6f327 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