* ld-srec/srec.exp (run_srec_test): Deal with ProPolice on

*-*-openbsd*.
This commit is contained in:
Mark Kettenis 2005-04-26 18:56:50 +00:00
parent 60938e80e6
commit 907dcf3f87
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-04-26 Mark Kettenis <kettenis@gnu.org>
* ld-srec/srec.exp (run_srec_test): Deal with ProPolice on
*-*-openbsd*.
2005-04-25 H.J. Lu <hongjiu.lu@intel.com>
* ld-discard/extern.d: Expect error.

View file

@ -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