File tree Expand file tree Collapse file tree 5 files changed +14
-0
lines changed Expand file tree Collapse file tree 5 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ OLD_USEPKG := $(sort $(USEPKG))
19
19
include $(RIOTBASE)/sys/Makefile.dep
20
20
include $(RIOTBASE)/drivers/Makefile.dep
21
21
22
+ ifeq (,$(RIOTNOSSP))
23
+ USEMODULE += ssp
24
+ endif
25
+
22
26
ifneq (,$(filter ndn-riot,$(USEPKG)))
23
27
USEMODULE += gnrc
24
28
USEMODULE += xtimer
Original file line number Diff line number Diff line change @@ -9,4 +9,7 @@ USEMODULE += avr_libc_extra
9
9
PSEUDOMODULES += atmega_pcint
10
10
PSEUDOMODULES += atmega_pcint%
11
11
12
+ # avr-gcc does not support -fstack-protector
13
+ RIOTNOSSP = 1
14
+
12
15
include $(RIOTMAKE)/arch/atmega.inc.mk
Original file line number Diff line number Diff line change @@ -4,3 +4,6 @@ INCLUDES += -I$(RIOTCPU)/mips_pic32_common/include
4
4
5
5
USEMODULE += mips_pic32_common
6
6
USEMODULE += mips_pic32_common_periph
7
+
8
+ # compiler does not support -fstack-protector
9
+ RIOTNOSSP = 1
Original file line number Diff line number Diff line change @@ -9,5 +9,8 @@ export USEMODULE += msp430_common msp430_common_periph msp430_malloc
9
9
10
10
DEFAULT_MODULE += oneway_malloc
11
11
12
+ # compiler does not support -fstack-protector
13
+ RIOTNOSSP = 1
14
+
12
15
# include the msp430 common Makefile
13
16
include $(RIOTMAKE)/arch/msp430.inc.mk
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export APPDEPS # Files / Makefile targets that need to be created
28
28
export RIOTBASE # The root folder of RIOT. The folder where this very file lives in.
29
29
export RIOTCPU # For third party CPUs this folder is the base of the CPUs.
30
30
export RIOTBOARD # This folder is the base of the riot boards.
31
+ export RIOTNOSSP # Disable stack smash protections. NOT RECOMMENDED.
31
32
export BOARDSDIR # For third party BOARDs this folder is the base of the BOARDs.
32
33
export RIOTPKG # For overriding RIOT's pkg directory
33
34
export RIOTTOOLS # Location of host machine tools
You can’t perform that action at this time.
0 commit comments