diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-12-21 18:24:50 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-12-22 13:31:40 +1100 |
commit | 837035828978d1b1d7b504a18db7b6ee08aaefbe (patch) | |
tree | 6ab0b535db33f46abbc0328990e75ab12f77128a | |
parent | f258a2972422e10b521d3e87b18a3a6d6dd02acf (diff) | |
download | skiboot-837035828978d1b1d7b504a18db7b6ee08aaefbe.zip skiboot-837035828978d1b1d7b504a18db7b6ee08aaefbe.tar.gz skiboot-837035828978d1b1d7b504a18db7b6ee08aaefbe.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>
(cherry picked from commit d45b9bc4f98dfeac3ce6ee906948b56944f6aa6b)
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | Makefile.main | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main index 34591be..ec5a3c4 100644 --- a/Makefile.main +++ b/Makefile.main @@ -62,6 +62,7 @@ CPPFLAGS += -ffreestanding CFLAGS := -fno-strict-aliasing -fstack-protector-all -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) |