mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
8b0682644e
We haven't exposed gets(3) in a long time, rip out __gets_chk before it's too late and something builds a gets(3) user with it enabled.
22 lines
627 B
Makefile
22 lines
627 B
Makefile
#
|
|
# libc sources related to security
|
|
|
|
.PATH: ${LIBC_SRCTOP}/secure
|
|
|
|
# _FORTIFY_SOURCE
|
|
SRCS+= fgets_chk.c memcpy_chk.c memmove_chk.c memset_chk.c \
|
|
snprintf_chk.c sprintf_chk.c stpcpy_chk.c stpncpy_chk.c \
|
|
strcat_chk.c strcpy_chk.c strncat_chk.c strncpy_chk.c \
|
|
vsnprintf_chk.c vsprintf_chk.c
|
|
|
|
CFLAGS.snprintf_chk.c+= -Wno-unused-parameter
|
|
CFLAGS.sprintf_chk.c+= -Wno-unused-parameter
|
|
CFLAGS.vsnprintf_chk.c+= -Wno-unused-parameter
|
|
CFLAGS.vsprintf_chk.c+= -Wno-unused-parameter
|
|
|
|
# Sources common to both syscall interfaces:
|
|
SRCS+= stack_protector.c \
|
|
stack_protector_compat.c
|
|
|
|
SYM_MAPS+= ${LIBC_SRCTOP}/secure/Symbol.map
|