Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Building evbarm with USE_SSP fails



In article <k0ahnd$vp$1%dough.gmane.org@localhost>,
Pierre Pronchery  <khorben%defora.org@localhost> wrote:
>               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?

Please do. We should come up with a better way to protect all stand dirs.

christos



Home | Main Index | Thread Index | Old Index