mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
blueswirl sparc32 -17 (without romvec.c changes)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@32 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -65,6 +65,7 @@ int aout_load(struct sys_info *info, const char *filename, const char *cmdline)
|
||||
goto out;
|
||||
|
||||
for (offset = 0; offset < 16 * 512; offset += 512) {
|
||||
file_seek(offset);
|
||||
if (lfile_read(&ehdr, sizeof ehdr) != sizeof ehdr) {
|
||||
debug("Can't read a.out header\n");
|
||||
retval = LOADER_NOT_SUPPORT;
|
||||
@@ -72,8 +73,6 @@ int aout_load(struct sys_info *info, const char *filename, const char *cmdline)
|
||||
}
|
||||
if (!N_BADMAG(ehdr))
|
||||
break;
|
||||
|
||||
file_seek(offset);
|
||||
}
|
||||
|
||||
if (N_BADMAG(ehdr)) {
|
||||
|
||||
Reference in New Issue
Block a user