mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Exclude routines from fortification
Since the _FORTIFY_SOURCE feature uses some routines of Glibc, they need to be excluded from the fortification. On top of that: - some tests explicitly verify that some level of fortification works appropriately, we therefore shouldn't modify the level set for them. - some objects need to be build with optimization disabled, which prevents _FORTIFY_SOURCE to be used for them. Assembler files that implement architecture specific versions of the fortified routines were not excluded from _FORTIFY_SOURCE as there is no C header included that would impact their behavior. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
@ -304,6 +304,10 @@ tests-nolibpthread += \
|
||||
CFLAGS-tst-cleanup2.c += -fno-builtin
|
||||
CFLAGS-tst-cleanupx2.c += -fno-builtin
|
||||
|
||||
# Disable fortification due to sprintf(NULL,...)
|
||||
CFLAGS-tst-cleanup2.c += $(no-fortify-source)
|
||||
CFLAGS-tst-cleanupx2.c += $(no-fortify-source)
|
||||
|
||||
tests += \
|
||||
tst-cancelx2 \
|
||||
tst-cancelx3 \
|
||||
|
Reference in New Issue
Block a user