2
0
mirror of https://frontier.innolan.net/github/amigaos-binutils.git synced 2025-11-22 19:54:20 +00:00

Accept additional hunk types containing raw relocation data at two places

missed before.

* bfd/amigaos.c (parse_archive_units): Handle HUNK_RELRELOC32, HUNK_ABSRELOC16
  and HUNK_RELRELOC26.
  (amiga_handle_rest): Likewise.
This commit is contained in:
Gunther Nikl
2015-04-29 19:07:20 +00:00
parent ddc877b3d3
commit e2b5906c8a

View File

@ -604,6 +604,9 @@ parse_archive_units (abfd, n_units, filesize, one, syms, symcount)
case HUNK_DREL32:
case HUNK_DREL16:
case HUNK_DREL8:
case HUNK_RELRELOC32:
case HUNK_ABSRELOC16:
case HUNK_RELRELOC26:
for (;;) {
/* read offsets count */
if (!get_long (abfd, &no))
@ -1116,6 +1119,9 @@ amiga_handle_rest (abfd, current_section, isload)
case HUNK_DREL16:
case HUNK_DREL8:
case HUNK_RELOC32SHORT:
case HUNK_RELRELOC32:
case HUNK_ABSRELOC16:
case HUNK_RELRELOC26:
/* count and skip relocs */
relp = (raw_reloc_type *) bfd_alloc (abfd, sizeof (*relp));
relp->next = asect->relocs;