summaryrefslogtreecommitdiff
path: root/arch/h8300/boot/compressed/Makefile
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2015-05-31 14:42:37 (GMT)
committerYoshinori Sato <ysato@users.sourceforge.jp>2015-11-08 13:44:39 (GMT)
commit78f02cac9515127efd7dc45e82bbbdb969b3302a (patch)
tree0417d911b99883d9d2770c42bf06e4e1b0c5d8e3 /arch/h8300/boot/compressed/Makefile
parent780ffcd51cb287174e2d5cfe5ece2a7e73db6f37 (diff)
downloadlinux-78f02cac9515127efd7dc45e82bbbdb969b3302a.tar.xz
h8300: zImage fix
- stack fix - configure base address Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'arch/h8300/boot/compressed/Makefile')
-rw-r--r--arch/h8300/boot/compressed/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/h8300/boot/compressed/Makefile b/arch/h8300/boot/compressed/Makefile
index 87d03b7..d7bc3fa 100644
--- a/arch/h8300/boot/compressed/Makefile
+++ b/arch/h8300/boot/compressed/Makefile
@@ -14,11 +14,12 @@ OBJECTS = $(obj)/head.o $(obj)/misc.o
# in order to suppress error message.
#
CONFIG_MEMORY_START ?= 0x00400000
-CONFIG_BOOT_LINK_OFFSET ?= 0x00140000
+CONFIG_BOOT_LINK_OFFSET ?= 0x00280000
IMAGE_OFFSET := $(shell printf "0x%08x" $$(($(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET))))
LIBGCC := $(shell $(CROSS-COMPILE)$(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
-LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -estartup $(obj)/vmlinux.lds
+LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -estartup -T $(obj)/vmlinux.lds \
+ --defsym output=$(CONFIG_MEMORY_START)
$(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE
$(call if_changed,ld)