]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
Don't build kernel-level sources with stack protector.
authorAntti Kantee <pooka@iki.fi>
Tue, 21 Apr 2015 15:58:13 +0000 (15:58 +0000)
committerAntti Kantee <pooka@iki.fi>
Tue, 21 Apr 2015 15:58:13 +0000 (15:58 +0000)
Technically we should, but since __stack_chk_fail() currently always
comes from libc, things get a bit weird.

lib/libbmk_core/Makefile
lib/libbmk_rumpuser/Makefile

index 3e8c8c7aed049d2f49860c1d06e6dfba284cbf5d..23127f4a299ad4c943b162524e578f88ca15656d 100644 (file)
@@ -3,6 +3,9 @@ LIBISPRIVATE=   # defined
 
 SRCS=          init.c bmk_string.c memalloc.c sched.c subr_prf.c
 
+# kernel-level source code
+CFLAGS+=       -fno-stack-protector
+
 CPPFLAGS+=     -I${.CURDIR}/../../include
 
 .include "${.CURDIR}/arch/${MACHINE}/Makefile.inc"
index 78da6acec448703b43dbf183059e58c23a5a314b..0920f62ed3acfc76f006d21cfc1bdeaaaa4d8481 100644 (file)
@@ -1,6 +1,9 @@
 LIB=           bmk_rumpuser
 LIBISPRIVATE=  # defined
 
+# kernel-level source code
+CFLAGS+=        -fno-stack-protector
+
 SRCS=          rumpuser_base.c
 SRCS+=         rumpuser_clock.c
 SRCS+=         rumpuser_cons.c