diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2007-07-16 02:38:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:37 -0400 |
commit | 86277d594926f3ae4f50ac0fcd9e2fa3cc28a774 (patch) | |
tree | 95f2cc09b1255b21ece840fd2a596d4c8a9d676c /arch/h8300/boot | |
parent | f79224ca2754e903b695bd91176a9bedbb306324 (diff) |
h8300 zImage support update
- Add missing files
- Add Makefile target
- Change image base
- Style fix
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/h8300/boot')
-rw-r--r-- | arch/h8300/boot/compressed/Makefile | 4 | ||||
-rw-r--r-- | arch/h8300/boot/compressed/head.S | 2 | ||||
-rw-r--r-- | arch/h8300/boot/compressed/vmlinux.lds | 32 | ||||
-rw-r--r-- | arch/h8300/boot/compressed/vmlinux.scr | 9 |
4 files changed, 44 insertions, 3 deletions
diff --git a/arch/h8300/boot/compressed/Makefile b/arch/h8300/boot/compressed/Makefile index 71aac82a8ae0..d6189e057ed3 100644 --- a/arch/h8300/boot/compressed/Makefile +++ b/arch/h8300/boot/compressed/Makefile | |||
@@ -15,10 +15,10 @@ OBJECTS = $(obj)/head.o $(obj)/misc.o | |||
15 | # in order to suppress error message. | 15 | # in order to suppress error message. |
16 | # | 16 | # |
17 | CONFIG_MEMORY_START ?= 0x00400000 | 17 | CONFIG_MEMORY_START ?= 0x00400000 |
18 | CONFIG_BOOT_LINK_OFFSET ?= 0x00400000 | 18 | CONFIG_BOOT_LINK_OFFSET ?= 0x00140000 |
19 | IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)]) | 19 | IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)]) |
20 | 20 | ||
21 | LDFLAGS_vmlinux := -T $(obj)/vmlinux.lds | 21 | LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -estartup $(obj)/vmlinux.lds |
22 | 22 | ||
23 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE | 23 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE |
24 | $(call if_changed,ld) | 24 | $(call if_changed,ld) |
diff --git a/arch/h8300/boot/compressed/head.S b/arch/h8300/boot/compressed/head.S index b8e90d12d19e..985a81a2435a 100644 --- a/arch/h8300/boot/compressed/head.S +++ b/arch/h8300/boot/compressed/head.S | |||
@@ -4,7 +4,7 @@ | |||
4 | * Copyright (C) 2006 Yoshinori Sato | 4 | * Copyright (C) 2006 Yoshinori Sato |
5 | */ | 5 | */ |
6 | 6 | ||
7 | .h8300h | 7 | .h8300h |
8 | #include <linux/linkage.h> | 8 | #include <linux/linkage.h> |
9 | 9 | ||
10 | #define SRAM_START 0xff4000 | 10 | #define SRAM_START 0xff4000 |
diff --git a/arch/h8300/boot/compressed/vmlinux.lds b/arch/h8300/boot/compressed/vmlinux.lds new file mode 100644 index 000000000000..65e2a0d1ae39 --- /dev/null +++ b/arch/h8300/boot/compressed/vmlinux.lds | |||
@@ -0,0 +1,32 @@ | |||
1 | SECTIONS | ||
2 | { | ||
3 | .text : | ||
4 | { | ||
5 | __stext = . ; | ||
6 | __text = .; | ||
7 | *(.text.startup) | ||
8 | *(.text) | ||
9 | __etext = . ; | ||
10 | } | ||
11 | |||
12 | .rodata : | ||
13 | { | ||
14 | *(.rodata) | ||
15 | } | ||
16 | .data : | ||
17 | |||
18 | { | ||
19 | __sdata = . ; | ||
20 | ___data_start = . ; | ||
21 | *(.data.*) | ||
22 | } | ||
23 | .bss : | ||
24 | { | ||
25 | . = ALIGN(0x4) ; | ||
26 | __sbss = . ; | ||
27 | *(.bss*) | ||
28 | . = ALIGN(0x4) ; | ||
29 | __ebss = . ; | ||
30 | __end = . ; | ||
31 | } | ||
32 | } | ||
diff --git a/arch/h8300/boot/compressed/vmlinux.scr b/arch/h8300/boot/compressed/vmlinux.scr new file mode 100644 index 000000000000..a0f6962736e9 --- /dev/null +++ b/arch/h8300/boot/compressed/vmlinux.scr | |||
@@ -0,0 +1,9 @@ | |||
1 | SECTIONS | ||
2 | { | ||
3 | .data : { | ||
4 | _input_len = .; | ||
5 | LONG(_input_data_end - _input_data) _input_data = .; | ||
6 | *(.data) | ||
7 | _input_data_end = .; | ||
8 | } | ||
9 | } | ||