make sure uninitialized vars doesnt end up on COMMON_section
This commit is contained in:
committed by
Philippe Teuwen
parent
ac29f16529
commit
e19e01a6a6
@@ -20,7 +20,7 @@ endif
|
|||||||
#in the next section to remove that particular feature from compilation.
|
#in the next section to remove that particular feature from compilation.
|
||||||
# NO space,TABs after the "\" sign.
|
# NO space,TABs after the "\" sign.
|
||||||
APP_CFLAGS = $(PLATFORM_DEFS) \
|
APP_CFLAGS = $(PLATFORM_DEFS) \
|
||||||
-ffunction-sections -fdata-sections
|
-ffunction-sections -fdata-sections -fno-common
|
||||||
|
|
||||||
SRC_LF = lfops.c lfsampling.c pcf7931.c lfdemod.c lfadc.c
|
SRC_LF = lfops.c lfsampling.c pcf7931.c lfdemod.c lfadc.c
|
||||||
SRC_ISO15693 = iso15693.c iso15693tools.c
|
SRC_ISO15693 = iso15693.c iso15693tools.c
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ VERSIONSRC = version.c
|
|||||||
# stdint.h provided locally until GCC 4.5 becomes C99 compliant
|
# stdint.h provided locally until GCC 4.5 becomes C99 compliant
|
||||||
APP_CFLAGS = -I. -ffunction-sections -fdata-sections
|
APP_CFLAGS = -I. -ffunction-sections -fdata-sections
|
||||||
|
|
||||||
# stack-protect , no-pie reduces size on Gentoo Hardened 8.2 gcc
|
# stack-protect , no-pie reduces size on Gentoo Hardened 8.2 gcc, no-common makes sure uninitalized vars doesn't end up in COMMON area
|
||||||
APP_CFLAGS += -fno-stack-protector -fno-pie
|
APP_CFLAGS += -fno-stack-protector -fno-pie -fno-common
|
||||||
|
|
||||||
|
|
||||||
# Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC
|
# Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC
|
||||||
|
|||||||
Reference in New Issue
Block a user