On Mon, Dec 09, 2002 at 11:09:42PM +0100, Herbert Valerio Riedel wrote:
> in the meantime I figured out, that the problem lays in 0.7's loadelf.c
> which causes sections of the ELF kernel to be written to memory starting
> from address 0 ... which caused the firmware to halt...
That was fixed long ago - Thats a bug in the binutils which got a
workaround in a debian patch:
--- loader/copyelf.c
+++ loader/copyelf.c
@@ -42,7 +42,7 @@
shdr->sh_offset, shdr->sh_size);
#endif
- if (shdr->sh_size <= 0)
+ if (shdr->sh_size <= 0 || shdr->sh_addr == 0)
continue;
if (shdr->sh_type == SHT_PROGBITS) {
Anyway - This code is obsolete with Thiemo's patches as it was my
misdesign to load sections not segments.
Flo
--
Florian Lohoff flo@rfc822.org +49-5201-669912
Heisenberg may have been here.
Attachment:
pgpOKeMSBZleN.pgp
Description: PGP signature