Skip to content

Commit

Permalink
Makefile: Use -ffixed-r13
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ozbenh authored and stewartsmith committed Dec 22, 2016
1 parent 55af871 commit d45b9bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.main
Expand Up @@ -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)

Expand Down

0 comments on commit d45b9bc

Please sign in to comment.