This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[COMMIT] Deal with ProPolice on OpenBSD for ld-srec tests
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: binutils at sourceware dot org
- Date: Tue, 26 Apr 2005 20:57:08 +0200 (CEST)
- Subject: [COMMIT] Deal with ProPolice on OpenBSD for ld-srec tests
ProPolice causes undefined reference to __guard and
__stack_smash_handler which are normally satisfied by libc.a or ld.so.
Follow precedent by defining these using --defsym.
Committed as obvious,
Mark
Index: testsuite/ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* ld-srec/srec.exp (run_srec_test): Deal with ProPolice on
*-*-openbsd*.
Index: testsuite/ld-srec/srec.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-srec/srec.exp,v
retrieving revision 1.20
diff -u -p -r1.20 srec.exp
--- testsuite/ld-srec/srec.exp 3 Mar 2005 11:52:12 -0000 1.20
+++ testsuite/ld-srec/srec.exp 26 Apr 2005 18:52:54 -0000
@@ -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