public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [COMMIT] Deal with ProPolice on OpenBSD for ld-srec tests
@ 2005-04-26 21:06 Mark Kettenis
  2005-04-27  8:45 ` Thorsten Glaser
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2005-04-26 21:06 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [COMMIT] Deal with ProPolice on OpenBSD for ld-srec tests
  2005-04-26 21:06 [COMMIT] Deal with ProPolice on OpenBSD for ld-srec tests Mark Kettenis
@ 2005-04-27  8:45 ` Thorsten Glaser
  0 siblings, 0 replies; 2+ messages in thread
From: Thorsten Glaser @ 2005-04-27  8:45 UTC (permalink / raw)
  To: binutils

Mark Kettenis dixit:

>ProPolice causes undefined reference to __guard and
>__stack_smash_handler which are normally satisfied by libc.a or ld.so.

Can you check the __SSP__ preprocessor symbol etoh@ added
at least to the standalone propolice patch, too? Quite some
other (BSD and GNU) operating systems are using ProPolice
as well.

//mirabile
-- 
> Hi, does anyone sell openbsd stickers by themselves and not packaged
> with other products?
No, the only way I've seen them sold is for $40 with a free OpenBSD CD.
	-- Haroon Khalid and Steve Shockley in gmane.os.openbsd.misc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-27  6:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-26 21:06 [COMMIT] Deal with ProPolice on OpenBSD for ld-srec tests Mark Kettenis
2005-04-27  8:45 ` Thorsten Glaser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).