mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 15:57:05 -05:00
compiled with stack protector. Use libssp_nonshared library to pull __stack_chk_fail_local symbol into each library that needs it instead of pulling it from libc. GCC generates local calls to this function which result in absolute relocations put into position-independent code segment, making dynamic loader do extra work every time given shared library is being relocated and making affected text pages non-shareable. Reviewed by: kib Approved by: re (kib)
18 lines
364 B
Makefile
18 lines
364 B
Makefile
# $FreeBSD$
|
|
|
|
GCCDIR= ${.CURDIR}/../../../../contrib/gcc
|
|
GCCLIB= ${.CURDIR}/../../../../contrib/gcclibs
|
|
|
|
.PATH: ${GCCLIB}/libssp ${GCCLIB}/libssp/ssp
|
|
|
|
LIB= ssp_nonshared
|
|
NO_PIC=
|
|
NO_PROFILE=
|
|
|
|
SRCS= ssp-local.c
|
|
|
|
CFLAGS+= -DHAVE_CONFIG_H
|
|
CFLAGS+= -I${.CURDIR}/.. -I${GCCLIB}/libssp -I${GCCLIB}/include
|
|
CFLAGS+= -fPIC -DPIC -fvisibility=hidden
|
|
|
|
.include <bsd.lib.mk>
|