On 30/12/13 3:13 PM, Pascal Stumpf wrote:
On Mon, 30 Dec 2013 11:56:16 -0800, Matthew Dempsky wrote:
On Mon, Dec 30, 2013 at 9:47 AM, Christian Weisgerber
<na...@mips.inka.de> wrote:
math/octave undefined reference to `__guard'
That's odd. Can you send me the build logs from this (or put them
somewhere I can access them)?
I don't have logs, but the problem is that lang/g77 still emits
references go __guard. The following diff should fix it (currently
compiling math/octave).
Well it's the same as what went into the GCC 3 stack protector code.
Ok from me if it builds ok.
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/g77/Makefile,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile
--- Makefile 9 Aug 2013 11:02:28 -0000 1.24
+++ Makefile 30 Dec 2013 20:12:34 -0000
@@ -2,7 +2,7 @@
V = 3.3.6
PKGNAME = g77-$V
-REVISION = 2
+REVISION = 3
EPOCH = 1
DISTFILES = g77-openbsd-3.3.6.tgz
Index: patches/patch-gcc_protector_c
===================================================================
RCS file: patches/patch-gcc_protector_c
diff -N patches/patch-gcc_protector_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-gcc_protector_c 30 Dec 2013 20:12:34 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- gcc/protector.c.orig Mon Dec 30 18:54:07 2013
++++ gcc/protector.c Mon Dec 30 18:54:17 2013
+@@ -867,7 +867,7 @@ rtl_prologue (insn)
+
+ start_sequence ();
+
+- _guard = gen_rtx_MEM (GUARD_m, gen_rtx_SYMBOL_REF (Pmode, "__guard"));
++ _guard = gen_rtx_MEM (GUARD_m, gen_rtx_SYMBOL_REF (Pmode, "__guard_local"));
+ emit_move_insn ( guard_area, _guard);
+
+ _val = get_insns ();
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.