]> rtime.felk.cvut.cz Git - sysless.git/commit
h8300: Make bloader work with ELF toolchain
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 15 Mar 2011 17:50:27 +0000 (18:50 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 16 Mar 2011 16:00:13 +0000 (17:00 +0100)
commit45d71724eb4d4c8c6d52b7e0721c39b7560a8a30
tree6e856fad80db529b7372cf2511d962619788567a
parent998bdc6985740eb34d4410dc9e290c42939732f3
h8300: Make bloader work with ELF toolchain

Do not use PIC (position independent code) hacks in boot loader. Compile
it for fixed address and use different LMA and VMA in the linker scripts.
So far, only linker script for h8eurobot board was updated!

Bootstraping was tested with both 32 and 64 bit hosts and it works, despite
that 64 bit compiler produces a lot of warnings such as:
/tmp/cco5hbea.s:1218: Warning: operand #0xffffffffffffffef out of range.
arch/h8300/generic/bloader/Makefile.omk
arch/h8300/generic/bloader/bloader.c
arch/h8300/generic/libs/boot/Makefile.omk
arch/h8300/generic/libs/boot/boot_fn.c
arch/h8300/generic/tools/tohit/tohit_fn.c
board/h8300/h8eurobot/libs/h8canusb.ld-boot