[Skiboot] [PATCH] Makefile: Use -ffixed-r13

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Dec 21 18:24:50 AEDT 2016


We use r13 for our own stuff, make sure it's properly fixed

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 Makefile.main | 1 +
 1 file changed, 1 insertion(+)

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)
 



More information about the Skiboot mailing list