Skip to contentSkip to conversation

sandbox: disable fortification

PATCH New Mike Frysinger 2 participants 2 messages Feb 26, 2012 – Feb 27, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sandbox: disable fortification

Since we provide all our own library calls, the fortification from glibc just gets in our way (which some distros enable by default).

---
 arch/sandbox/config.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sandbox/config.mk +1 -1
index 2ec1bb7..02ce4a4 100644
@@ -17,5 +17,5 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 
-PLATFORM_CPPFLAGS += -DCONFIG_SANDBOX -D__SANDBOX__
+PLATFORM_CPPFLAGS += -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE
 PLATFORM_LIBS += -lrt
Signature · 1 line
1.7.8.4
#1 lore raw

PATCH 1/1 sandbox: disable fortification

Quoted 4 lines · Mike Frysinger

Since we provide all our own library calls, the fortification from glibc just gets in our way (which some distros enable by default).

Quoted 22 lines

---
?arch/sandbox/config.mk | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)

arch/sandbox/config.mk +0 -0
index 2ec1bb7..02ce4a4 100644
@@ -17,5 +17,5 @@
 ?# Foundation, Inc., 59 Temple Place, Suite 330, Boston,

?# MA 02111-1307 USA

arch/sandbox/config.mk +1 -1
-PLATFORM_CPPFLAGS += -DCONFIG_SANDBOX -D__SANDBOX__
+PLATFORM_CPPFLAGS += -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE

?PLATFORM_LIBS += -lrt
--
1.7.8.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot