mirror of
https://frontier.innolan.net/github/amigaos-binutils.git
synced 2026-09-12 14:11:38 +00:00
(amiga_handle_rest): Tolerate a missing HUNK_END. Apparently the AmigaDOS
loader accepts such files which are created by broken crunchers.
This commit is contained in:
@@ -1174,6 +1174,12 @@ amiga_handle_rest (abfd, current_section, isload)
|
||||
break;
|
||||
|
||||
default: /* error */
|
||||
bfd_seek (abfd, -4, SEEK_CUR);
|
||||
bfd_msg ("missing HUNK_END: unexpected hunktype %ld(0x%lx) at offset 0x%lx",
|
||||
hunk_type, hunk_type, bfd_tell (abfd));
|
||||
hunk_type = HUNK_VALUE(hunk_type);
|
||||
if (hunk_type == HUNK_CODE || hunk_type == HUNK_DATA || hunk_type == HUNK_BSS)
|
||||
return TRUE;
|
||||
bfd_set_error (bfd_error_wrong_format);
|
||||
return FALSE;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user