This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ld testsuite fix

Having just updated my laptop to the latest Ubuntu, I'm running into a
ld testsuite failure due to having a newer system gcc.

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

Index: ld/testsuite/ld-srec/srec.exp
RCS file: /cvs/src/src/ld/testsuite/ld-srec/srec.exp,v
retrieving revision 1.28
diff -u -p -r1.28 srec.exp
--- ld/testsuite/ld-srec/srec.exp	28 Aug 2007 13:21:58 -0000	1.28
+++ ld/testsuite/ld-srec/srec.exp	12 Oct 2007 03:27:48 -0000
@@ -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

Alan Modra
Australia Development Lab, IBM

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]