From 907dcf3f87a51a4ce6e7020647143c2812be9eef Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 26 Apr 2005 18:56:50 +0000 Subject: [PATCH] * ld-srec/srec.exp (run_srec_test): Deal with ProPolice on *-*-openbsd*. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-srec/srec.exp | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 355d97fc20e..bc064dadf5a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-04-26 Mark Kettenis + + * ld-srec/srec.exp (run_srec_test): Deal with ProPolice on + *-*-openbsd*. + 2005-04-25 H.J. Lu * ld-discard/extern.d: Expect error. diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp index b610baaf4ca..55bca29d999 100644 --- a/ld/testsuite/ld-srec/srec.exp +++ b/ld/testsuite/ld-srec/srec.exp @@ -293,7 +293,14 @@ proc run_srec_test { test objs } { if [istarget xtensa*-*-*] { set flags "$flags -no-relax" } - + + # Some OpenBSD targets have ProPolice and reference __guard and + # __stack_smash_handler. + if [istarget *-*-openbsd*] { + set flags "$flags --defsym __guard=0" + set flags "$flags --defsym __stack_smash_handler=0" + } + if { ![ld_simple_link $ld tmpdir/sr1 "$flags $objs"] \ || ![ld_simple_link $ld tmpdir/sr2.sr "$flags --oformat srec $objs"] } { fail $test -- 2.30.2