mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user