|
@@ -134,6 +134,16 @@ SP_FLAGS := $(shell $(SP_TEST) && $(ECHO) '-fno-stack-protector')
|
134
|
134
|
CFLAGS += $(SP_FLAGS)
|
135
|
135
|
endif
|
136
|
136
|
|
|
137
|
+# gcc 4.4 generates .eh_frame sections by default, which distort the
|
|
138
|
+# output of "size". Inhibit this.
|
|
139
|
+#
|
|
140
|
+ifeq ($(CCTYPE),gcc)
|
|
141
|
+CFI_TEST = $(CC) -fno-dwarf2-cfi-asm -x c -c /dev/null \
|
|
142
|
+ -o /dev/null >/dev/null 2>&1
|
|
143
|
+CFI_FLAGS := $(shell $(CFI_TEST) && $(ECHO) '-fno-dwarf2-cfi-asm')
|
|
144
|
+CFLAGS += $(CFI_FLAGS)
|
|
145
|
+endif
|
|
146
|
+
|
137
|
147
|
# Some versions of gas choke on division operators, treating them as
|
138
|
148
|
# comment markers. Specifying --divide will work around this problem,
|
139
|
149
|
# but isn't available on older gas versions.
|