[OpenBIOS] [PATCH] a.out header copy

Olivier Danet odanet at caramail.com
Sat Feb 1 21:54:50 CET 2014


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 at 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);
===================================================================




More information about the OpenBIOS mailing list