Skip to content

Commit

Permalink
sh: Fix up link error on SH-2 zImage with older binutils.
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Yoshinori Sato authored and Paul Mundt committed Jul 28, 2008
1 parent f2fb4e4 commit f12ae6b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
5 changes: 2 additions & 3 deletions arch/sh/boot/compressed/Makefile_32
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ $(obj)/vmlinux.bin: vmlinux FORCE
$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
$(call if_changed,gzip)

LDFLAGS_piggy.o := -r --format binary --oformat elf32-sh-linux -T
OBJCOPYFLAGS += -R .empty_zero_page

$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
$(call if_changed,ld)
$(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE
$(call if_changed,as_o_S)
5 changes: 2 additions & 3 deletions arch/sh/boot/compressed/Makefile_64
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ $(obj)/vmlinux.bin: vmlinux FORCE
$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
$(call if_changed,gzip)

LDFLAGS_piggy.o := -r --format binary --oformat elf32-sh64-linux -T
OBJCOPYFLAGS += -R .empty_zero_page

$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
$(call if_changed,ld)
$(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE
$(call if_changed,as_o_S)
8 changes: 8 additions & 0 deletions arch/sh/boot/compressed/piggy.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.global input_len, input_data
.data
input_len:
.long input_data_end - input_data
input_data:
.incbin "arch/sh/boot/compressed/vmlinux.bin.gz"
input_data_end:
.end
9 changes: 0 additions & 9 deletions arch/sh/boot/compressed/vmlinux.scr

This file was deleted.

0 comments on commit f12ae6b

Please sign in to comment.