more moderate memory consumption of BSD - Why do they break the a.out

headers?


git-svn-id: svn://coreboot.org/openbios/openbios-devel@59 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-06-10 01:41:02 +00:00
parent ad26a9b752
commit 9448a7cffb

View File

@@ -81,6 +81,9 @@ int aout_load(struct sys_info *info, const char *filename, const char *cmdline)
goto out;
}
if (ehdr.a_text == 0x30800007)
ehdr.a_text=64*1024;
if (N_MAGIC(ehdr) == NMAGIC) {
size = addr_fixup(N_DATADDR(ehdr)) + addr_fixup(ehdr.a_data);
} else {
@@ -90,6 +93,7 @@ int aout_load(struct sys_info *info, const char *filename, const char *cmdline)
if (size < 7680)
size = 7680;
start = 0x4000; // N_TXTADDR(ehdr);
if (!check_mem_ranges(info, start, size))