Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Building evbarm with USE_SSP fails
Hi current-users@,
I just tried to compile an evbarm distribution with USE_SSP=yes in /etc/
mk.conf, and it fails in sys/arch/evbarm/stand/gzboot, where it fails
with "undefined reference to `__stack_chk_guard'".
The following patch fixes it:
Index: Makefile.gzboot
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/stand/gzboot/Makefile.gzboot,v
retrieving revision 1.19
diff -p -u -r1.19 Makefile.gzboot
--- Makefile.gzboot 6 Aug 2012 02:14:15 -0000 1.19
+++ Makefile.gzboot 13 Aug 2012 09:27:30 -0000
@@ -49,6 +49,7 @@ CPPFLAGS+= -DMAXIMAGESIZE=${MAXIMAGESIZE
CPPFLAGS+= -DLOADADDR=${LOADADDR}
COPTS+= -ffreestanding
+COPTS+= -fno-stack-protector
CWARNFLAGS+= -Werror
CWARNFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-
arith
Ok to commit?
Cheers,
--
khorben
Home |
Main Index |
Thread Index |
Old Index