34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From f49499c7c3a6791249588ab4863d6e9eb1ba1010 Mon Sep 17 00:00:00 2001
|
|
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
Date: Sat, 28 Feb 2009 13:32:45 +0100
|
|
Subject: [PATCH 04/18] Build some files without stack-protector
|
|
|
|
---
|
|
Makefile | 4 ++++
|
|
1 files changed, 4 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index dc23d1a..ec97fe9 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -129,6 +129,8 @@ LIBPTHREAD_OBJS=$(patsubst libpthread/%.c,$(OBJDIR)/%.o,$(shell ./threadsafe.sh)
|
|
|
|
LIBGMON_OBJS=$(OBJDIR)/__mcount.o $(OBJDIR)/monitor.o $(OBJDIR)/profil.o
|
|
|
|
+NO_STACK_PROTECTOR=stackgap.o __get_elf_aux_value.o
|
|
+
|
|
include $(ARCH)/Makefile.add
|
|
|
|
LIBMATHOBJ=$(patsubst %,$(OBJDIR)/%,$(LIBMATH))
|
|
@@ -177,6 +179,8 @@ $(OBJDIR)/pthread_%.o: libpthread/pthread_%.c $(OBJDIR)/.dirstamp
|
|
$(OBJDIR)/%.o: %.c $(OBJDIR)/.dirstamp
|
|
$(CROSS)$(CC) $(INC) $(CFLAGS) -c $< -o $@ -D__dietlibc__
|
|
$(COMMENT) -$(STRIP) -x -R .comment -R .note $@
|
|
+
|
|
+$(addprefix $(OBJDIR)/,$(NO_STACK_PROTECTOR)): XCFLAGS+=-fno-stack-protector
|
|
endif
|
|
|
|
ifeq ($(shell $(CC) -v 2>&1 | grep "gcc version"),gcc version 4.0.0)
|
|
--
|
|
1.6.2.5
|
|
|