|
|
@@ -157,17 +157,6 @@ SP_FLAGS := $(shell $(SP_TEST) && $(ECHO) '-fno-stack-protector')
|
|
157
|
157
|
WORKAROUND_CFLAGS += $(SP_FLAGS)
|
|
158
|
158
|
endif
|
|
159
|
159
|
|
|
160
|
|
-# Some widespread patched versions of gcc include -fPIE -Wl,-pie by
|
|
161
|
|
-# default. Note that gcc will exit *successfully* if it fails to
|
|
162
|
|
-# recognise an option that starts with "no", so we have to test for
|
|
163
|
|
-# output on stderr instead of checking the exit status.
|
|
164
|
|
-#
|
|
165
|
|
-ifeq ($(CCTYPE),gcc)
|
|
166
|
|
-PIE_TEST = [ -z "`$(CC) -fno-PIE -nopie -x c -c /dev/null -o /dev/null 2>&1`" ]
|
|
167
|
|
-PIE_FLAGS := $(shell $(PIE_TEST) && $(ECHO) '-fno-PIE -nopie')
|
|
168
|
|
-WORKAROUND_CFLAGS += $(PIE_FLAGS)
|
|
169
|
|
-endif
|
|
170
|
|
-
|
|
171
|
160
|
# gcc 4.4 generates .eh_frame sections by default, which distort the
|
|
172
|
161
|
# output of "size". Inhibit this.
|
|
173
|
162
|
#
|