blob: 66bc026358380a73ebd9aaaeee805af022103868 [file] [log] [blame]
Andrew Geissler9abfef92015-02-20 09:42:50 -06001From 005cac73915ee6f6b67e9b01ae840b798c1fc80e Mon Sep 17 00:00:00 2001
2From: Andrew Geissler <andrewg@us.ibm.com>
3Date: Mon, 16 Feb 2015 13:43:51 -0600
Patrick Williams9b4d80d2016-03-25 14:15:35 -05004Subject: [PATCH] GCC 4.9: Make compiler use ELFv1 ABI.
Andrew Geissler9abfef92015-02-20 09:42:50 -06005
6GCC4.9 defaults to ELFv2 ABI support but we do not have all
7of the needed tools to suppor this.
Andrew Geissler9abfef92015-02-20 09:42:50 -06008
9Change-Id: Iacf49c46b1fb25776ba60d6506ccadff7b46bf60
10RTC: 123430
11---
12 src/build/mkrules/cflags.env.mk | 9 ++++++---
13 1 files changed, 6 insertions(+), 3 deletions(-)
14
15diff --git a/src/build/mkrules/cflags.env.mk b/src/build/mkrules/cflags.env.mk
16index 8ca32b1..c729341 100644
17--- a/src/build/mkrules/cflags.env.mk
18+++ b/src/build/mkrules/cflags.env.mk
Andrew Geissler9abfef92015-02-20 09:42:50 -060019@@ -36,10 +37,12 @@ CFLAGS += -D__HOSTBOOT_MODULE=$(MODULE)
20 endif
21
22 COMMONFLAGS += $(OPT_LEVEL) -nostdlib
23+# TODO RTC: 123994 - ELFv2 ABI support (-mabi=elfv1)
24 CFLAGS += $(COMMONFLAGS) -mcpu=power7 -nostdinc -g -mno-vsx -mno-altivec\
25 -Wall -Werror -mtraceback=no -pipe \
26- -ffunction-sections -fdata-sections -ffreestanding -mbig-endian
27-ASMFLAGS += $(COMMONFLAGS) -mcpu=power7 -mbig-endian
28+ -ffunction-sections -fdata-sections -ffreestanding -mbig-endian \
29+ -mabi=elfv1
30+ASMFLAGS += $(COMMONFLAGS) -mcpu=power7 -mbig-endian -mabi=elfv1
31 CXXFLAGS += $(CFLAGS) -nostdinc++ -fno-rtti -fno-exceptions -Wall \
32 -fuse-cxa-atexit
33 LDFLAGS += --nostdlib --sort-common -EB $(COMMONFLAGS)
34--
351.7.4.1
36