1# 2# libc sources related to security 3 4.PATH: ${LIBC_SRCTOP}/secure 5 6# _FORTIFY_SOURCE 7SRCS+= fgets_chk.c memcpy_chk.c memmove_chk.c memset_chk.c \ 8 snprintf_chk.c sprintf_chk.c stpcpy_chk.c stpncpy_chk.c \ 9 strcat_chk.c strcpy_chk.c strncat_chk.c strncpy_chk.c \ 10 vsnprintf_chk.c vsprintf_chk.c 11 12CFLAGS.snprintf_chk.c+= -Wno-unused-parameter 13CFLAGS.sprintf_chk.c+= -Wno-unused-parameter 14CFLAGS.vsnprintf_chk.c+= -Wno-unused-parameter 15CFLAGS.vsprintf_chk.c+= -Wno-unused-parameter 16 17# Sources common to both syscall interfaces: 18SRCS+= stack_protector.c \ 19 stack_protector_compat.c 20 21SYM_MAPS+= ${LIBC_SRCTOP}/secure/Symbol.map 22