opnsense-src/gnu/lib/libssp/libssp_nonshared/Makefile
Alexander Kabaev 2286fe7635 Second attempt at eliminating .text relocations in shared libraries
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)
2009-07-14 21:19:13 +00:00

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>