If we are using SSP, compile in a separate copy of the stack protector
functions so that we don't end up calling syslog_ss() which drags in a large portion of libc. Found by skrll...
This commit is contained in:
parent
c04093ea93
commit
2cce1500a2
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: Makefile,v 1.79 2007/05/18 21:44:08 christos Exp $
|
# $NetBSD: Makefile,v 1.80 2007/09/27 17:51:40 christos Exp $
|
||||||
|
|
||||||
.include <bsd.own.mk> # for OBJECT_FMT definition
|
.include <bsd.own.mk> # for OBJECT_FMT definition
|
||||||
.include <bsd.shlib.mk> # for SHLINKINSTALLDIR definition
|
.include <bsd.shlib.mk> # for SHLINKINSTALLDIR definition
|
||||||
@ -36,6 +36,11 @@ CLIBOBJ!= cd ${NETBSDSRCDIR}/lib/libc && ${PRINTOBJDIR}
|
|||||||
SRCS+= rtld.c reloc.c symbol.c malloc.c xmalloc.c xprintf.c debug.c \
|
SRCS+= rtld.c reloc.c symbol.c malloc.c xmalloc.c xprintf.c debug.c \
|
||||||
map_object.c load.c search.c headers.c paths.c expand.c
|
map_object.c load.c search.c headers.c paths.c expand.c
|
||||||
|
|
||||||
|
.if ${USE_SSP:Uno} == "yes"
|
||||||
|
.PATH.c: ${NETBSDSRCDIR}/lib/libc/sys
|
||||||
|
SRCS+= stack_protector.c
|
||||||
|
.endif
|
||||||
|
|
||||||
BINDIR= ${SHLINKINSTALLDIR}
|
BINDIR= ${SHLINKINSTALLDIR}
|
||||||
|
|
||||||
CPPFLAGS+= -DLIBDIR=\"${LIBDIR}\" -D_PATH_RTLD=\"${BINDIR}/${PROG}\"
|
CPPFLAGS+= -DLIBDIR=\"${LIBDIR}\" -D_PATH_RTLD=\"${BINDIR}/${PROG}\"
|
||||||
|
Loading…
Reference in New Issue
Block a user