Jeremy Kerr | fb3f016 | 2015-03-27 10:14:50 +0800 | [diff] [blame] | 1 | From ec49ccee122c1be9b0d90c0f810a8964575bd57f Mon Sep 17 00:00:00 2001 |
| 2 | From: Jeremy Kerr <jk@ozlabs.org> |
| 3 | Date: Wed, 11 Feb 2015 15:47:17 +0800 |
| 4 | Subject: [PATCH] Makefile: specify -mbig-endian in link flags |
| 5 | |
| 6 | Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
| 7 | --- |
| 8 | Makefile.main | 2 +- |
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/Makefile.main b/Makefile.main |
| 12 | index 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 | -- |
| 25 | 1.9.1 |
| 26 | |