On 01/02/14 20:54, Olivier Danet wrote:
NextSTEP's bootloader for Sparc32 expects that the 32 bytes a.out header is copied just before the start address.
Signed-off-by: Olivier Danet odanet@caramail.com
--- libopenbios/aout_load.c (révision 1257) +++ libopenbios/aout_load.c (copie de travail) @@ -139,6 +139,8 @@ goto out; } }
- seek_io(fd, offset);
- read_io(fd, (char *)(start-0x20), 0x20);
debug("Loaded %lu bytes\n", size); debug("entry point is %#lx\n", start); ===================================================================
Hmmmm I'm not sure that anything below load-base is supposed to be mapped. Is it possible to load the header at start, and then simply add N_TXTOFF(ehdr) to the read_io() destination offsets? Or are the addresses in the a.out binary absolute?
ATB,
Mark.