blob: f5f174c3ebcb16f3249aaf47bfde0ae4b5b46b28 [file] [log] [blame]
Jeremy Kerrfb3f0162015-03-27 10:14:50 +08001From ec49ccee122c1be9b0d90c0f810a8964575bd57f Mon Sep 17 00:00:00 2001
2From: Jeremy Kerr <jk@ozlabs.org>
3Date: Wed, 11 Feb 2015 15:47:17 +0800
4Subject: [PATCH] Makefile: specify -mbig-endian in link flags
5
6Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
7---
8 Makefile.main | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/Makefile.main b/Makefile.main
12index b5376fc..0fca221 100644
13--- a/Makefile.main
14+++ b/Makefile.main
15@@ -64,7 +64,7 @@ CFLAGS += $(CWARNS) $(OPTS) $(DBG)
16
17 LDFLAGS := -m64 -static -nostdlib -Wl,--gc-sections -pie
18 LDFLAGS += -Wl,-Ttext-segment,$(LD_TEXT) -Wl,-N -Wl,--build-id=none
19-LDFLAGS += -Wl,--no-multi-toc
20+LDFLAGS += -Wl,--no-multi-toc -mbig-endian -Wl,--oformat,elf64-powerpc
21 LDRFLAGS=-melf64ppc
22 # Debug stuff
23 #LDFLAGS += -Wl,-v -Wl,-Map,foomap
24--
251.9.1
26