aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-srec
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-04-26 18:56:50 +0000
committerMark Kettenis <kettenis@gnu.org>2005-04-26 18:56:50 +0000
commit907dcf3f87a51a4ce6e7020647143c2812be9eef (patch)
tree322c2d3d67fee06b32e252034506c20edab949bb /ld/testsuite/ld-srec
parent60938e80e69ba5182cdd924b757d783c43637104 (diff)
downloadgdb-907dcf3f87a51a4ce6e7020647143c2812be9eef.zip
gdb-907dcf3f87a51a4ce6e7020647143c2812be9eef.tar.gz
gdb-907dcf3f87a51a4ce6e7020647143c2812be9eef.tar.bz2
* ld-srec/srec.exp (run_srec_test): Deal with ProPolice on
*-*-openbsd*.
Diffstat (limited to 'ld/testsuite/ld-srec')
-rw-r--r--ld/testsuite/ld-srec/srec.exp9
1 files changed, 8 insertions, 1 deletions
diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp
index b610baa..55bca29 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