* ld-srec/srec.exp: Define __stack_chk_fail sym.

This commit is contained in:
Alan Modra
2007-10-12 04:38:29 +00:00
parent 971d4640d2
commit 6ca8706da5
2 changed files with 7 additions and 2 deletions

View File

@ -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> 2007-10-09 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4476 PR binutils/4476

View File

@ -229,8 +229,9 @@ proc run_srec_test { test objs } {
global host_triplet global host_triplet
# Tell the ELF linker to not do anything clever with .eh_frame, # Tell the ELF linker to not do anything clever with .eh_frame,
# and not to put anything in small data. # not to put anything in small data, and define a symbol referenced
set flags "--traditional-format -G 0" # 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 # 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 # to force both the normal link and the S-record link to be put in