|
@@ -1,6 +1,6 @@
|
|
|
-From 6c3b05b74ccd49d8ba246bfef0c2e549b9f2bf7b Mon Sep 17 00:00:00 2001
|
|
|
|
|
|
|
+From ba71b50bef042ed404759a8d48bef1f779cec6d6 Mon Sep 17 00:00:00 2001
|
|
|
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
-Date: Tue, 29 Oct 2019 16:14:18 +0100
|
|
|
|
|
|
|
+Date: Tue, 16 Dec 2025 15:02:28 +0100
|
|
|
Subject: [PATCH] Makefile: unconditionally disable SSP
|
|
Subject: [PATCH] Makefile: unconditionally disable SSP
|
|
|
|
|
|
|
|
Though -nostdlib is passed in $(CFLAGS), -fno-stack-protector must also be
|
|
Though -nostdlib is passed in $(CFLAGS), -fno-stack-protector must also be
|
|
@@ -11,25 +11,28 @@ passed to avoid linking errors related to undefined references to
|
|
|
Fixes:
|
|
Fixes:
|
|
|
- http://autobuild.buildroot.net/results/3a3a21f3c35ea025e9b93e09c2454aed0ad31034
|
|
- http://autobuild.buildroot.net/results/3a3a21f3c35ea025e9b93e09c2454aed0ad31034
|
|
|
|
|
|
|
|
|
|
+Upstream: N/A Buildroot specific
|
|
|
|
|
+
|
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
|
|
+Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
|
|
|
---
|
|
---
|
|
|
Makefile | 3 ++-
|
|
Makefile | 3 ++-
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
diff --git a/Makefile b/Makefile
|
|
|
-index c3ec071..5226006 100644
|
|
|
|
|
|
|
+index 3f27be4dff4f..52423507f50b 100644
|
|
|
--- a/Makefile
|
|
--- a/Makefile
|
|
|
+++ b/Makefile
|
|
+++ b/Makefile
|
|
|
@@ -16,7 +16,8 @@ INCLUDES = $(SRCDIR)/include
|
|
@@ -16,7 +16,8 @@ INCLUDES = $(SRCDIR)/include
|
|
|
- CFLAGS =-march=armv7-m -mcpu=cortex-m3 -mthumb -nostdlib -Wall -Wundef \
|
|
|
|
|
|
|
+ CFLAGS =-march=armv7-m -mcpu=cortex-m3 -mthumb -nostdlib -ffreestanding -Wall -Wundef \
|
|
|
-Werror-implicit-function-declaration -Wstrict-prototypes \
|
|
-Werror-implicit-function-declaration -Wstrict-prototypes \
|
|
|
-Wdeclaration-after-statement -fno-delete-null-pointer-checks \
|
|
-Wdeclaration-after-statement -fno-delete-null-pointer-checks \
|
|
|
-- -Wempty-body -fno-strict-overflow -g -I$(INCLUDES) -O2
|
|
|
|
|
|
|
+- -Wempty-body -fno-strict-overflow -g -I$(INCLUDES) -O2 -MD
|
|
|
+ -Wempty-body -fno-strict-overflow -fno-stack-protector \
|
|
+ -Wempty-body -fno-strict-overflow -fno-stack-protector \
|
|
|
-+ -g -I$(INCLUDES) -O2
|
|
|
|
|
|
|
++ -g -I$(INCLUDES) -O2 -MD
|
|
|
LDFLAGS =-nostartfiles -fno-exceptions -Tfirmware.ld
|
|
LDFLAGS =-nostartfiles -fno-exceptions -Tfirmware.ld
|
|
|
|
|
|
|
|
EXECUTABLE=am335x-pm-firmware.elf
|
|
EXECUTABLE=am335x-pm-firmware.elf
|
|
|
--
|
|
--
|
|
|
-2.23.0
|
|
|
|
|
|
|
+2.43.0
|
|
|
|
|
|