]> 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)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 15 Mar 2011 17:50:27 +0000 (18:50 +0100)
commitad62fbf988d4060a98fdd2f9767eceb9c0b3a565
treef609c28199c4e69f0c47b29c26d2891afa1af660
parent17b97aab069b12483086f7d185e57ce2c57efba3
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