mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 08:43:23 +00:00
e7a629c851
Reduce the number of md5c.c between the three of these from two to one
by just reaching into the kernel build for both userland builds. The
precedent for this already exists for sha2 in both cases.
_libmd_ symbol privatization bits have been moved to sys/md5.h and
md5.h remains to #include <sys/md5.h> for compatibility.
This stops exporting MD5Pad() in the process because the kernel stopped
exporting it in 502a35d60f
. soversion is bumped accordingly.
This also renames the libc version of stack_protector.c; it previously
only worked by coincidence because .PATH ordering worked out such that
we got the right one, but this is not the case anymore. Remove the
landmine.
PR: 280784 (exp-run)
Reviewed by: allanjude, delphij
Differential Revision: https://reviews.freebsd.org/D34497
22 lines
674 B
Makefile
22 lines
674 B
Makefile
#
|
|
# libc sources related to security
|
|
|
|
.PATH: ${LIBC_SRCTOP}/secure
|
|
|
|
# _FORTIFY_SOURCE
|
|
SRCS+= fgets_chk.c memcpy_chk.c memmove_chk.c mempcpy_chk.c memset_chk.c \
|
|
snprintf_chk.c sprintf_chk.c stpcpy_chk.c stpncpy_chk.c \
|
|
strcat_chk.c strcpy_chk.c strlcat_chk.c strncat_chk.c strlcpy_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+= libc_stack_protector.c \
|
|
stack_protector_compat.c
|
|
|
|
SYM_MAPS+= ${LIBC_SRCTOP}/secure/Symbol.map
|