aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-06-05 16:42:45 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-05 16:42:45 +1000
commitb87df85899b9a8e176a5fe083dbf13ad259465ae (patch)
tree6d7771875b250786c63a985f7f716c8d58cbedbb /Makefile.main
parent06e3461a975578c61c7cdb87a3f18acf3100e736 (diff)
downloadskiboot-b87df85899b9a8e176a5fe083dbf13ad259465ae.zip
skiboot-b87df85899b9a8e176a5fe083dbf13ad259465ae.tar.gz
skiboot-b87df85899b9a8e176a5fe083dbf13ad259465ae.tar.bz2
force elf64-powerpc output format and big endian for linker
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index 7924cf6..1fc00cd 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -51,6 +51,7 @@ CPPFLAGS += -DBITS_PER_LONG=64 -DHAVE_BIG_ENDIAN
CPPFLAGS += -ffreestanding
CFLAGS := -fno-strict-aliasing -fstack-protector-all -pie -mbig-endian -m64
+CFLAGS += -Wl,--oformat,elf64-powerpc
ifeq ($(SKIBOOT_GCOV),1)
CFLAGS += -fprofile-arcs -ftest-coverage -DSKIBOOT_GCOV=1
@@ -69,6 +70,8 @@ CFLAGS += $(CWARNS) $(OPTS) $(DBG)
LDFLAGS := -m64 -static -nostdlib -pie
LDFLAGS += -Wl,-Ttext-segment,$(LD_TEXT) -Wl,-N -Wl,--build-id=none
LDFLAGS += -Wl,--no-multi-toc
+LDFLAGS += -mbig-endian -Wl,--oformat,elf64-powerpc
+
LDRFLAGS=-melf64ppc
# Debug stuff
#LDFLAGS += -Wl,-v -Wl,-Map,foomap