aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-12-21 18:24:50 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-12-22 13:17:20 +1100
commitd45b9bc4f98dfeac3ce6ee906948b56944f6aa6b (patch)
tree5b33b90a51110e34050df9ec8f808030b374549d /Makefile.main
parent55af871041a4b09e53013671450980bdb36f91e3 (diff)
downloadskiboot-d45b9bc4f98dfeac3ce6ee906948b56944f6aa6b.zip
skiboot-d45b9bc4f98dfeac3ce6ee906948b56944f6aa6b.tar.gz
skiboot-d45b9bc4f98dfeac3ce6ee906948b56944f6aa6b.tar.bz2
Makefile: Use -ffixed-r13
We use r13 for our own stuff, make sure it's properly fixed Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index a2b0bcd..238a1e9 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -70,6 +70,7 @@ endif
CFLAGS := -fno-strict-aliasing -pie -mbig-endian -m64
CFLAGS += -Wl,--oformat,elf64-powerpc
+CFLAGS += -ffixed-r13
CFLAGS += $(call try-cflag,$(CC),-mabi=elfv1)
CFLAGS += $(call try-cflag,$(CC),-std=gnu11)