aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/Makefile
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-05-09 11:25:08 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-05-09 11:25:08 -0400
commit7b022d07a0fd2ce02d4456b732c674ff1d16f5ce (patch)
tree02bd8fccea476085e5184f413d4210695f83c88b /arch/sh/Makefile
parentdce97c8cb2ad365fa87dc6924d99528c21c63912 (diff)
sh: Tidy up the ldscript output format specifier.
Tie this in to the Makefile directly, where we already know what we are running on. This tidies up the linker script a bit, and is prep work for unifying the arch/sh/boot/compressed linker scripts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r--arch/sh/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index 68348e700288..b941dc9b20f4 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -100,13 +100,17 @@ LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \
100endif 100endif
101 101
102ifdef CONFIG_CPU_LITTLE_ENDIAN 102ifdef CONFIG_CPU_LITTLE_ENDIAN
103LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' 103ld-bfd := elf32-$(UTS_MACHINE)-linux
104LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' --oformat $(ld-bfd)
104LDFLAGS += -EL 105LDFLAGS += -EL
105else 106else
106LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64+4' 107ld-bfd := elf32-$(UTS_MACHINE)big-linux
108LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64+4' --oformat $(ld-bfd)
107LDFLAGS += -EB 109LDFLAGS += -EB
108endif 110endif
109 111
112export ld-bfd
113
110head-y := arch/sh/kernel/init_task.o 114head-y := arch/sh/kernel/init_task.o
111head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o 115head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o
112head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o 116head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o