* bfd/amigaoslink.c (amiga_update_target_section): New function, broken out
of amiga_perform_reloc.
(amiga_perform_reloc): Use it.
(aout_update_target_section): New function, broken out of aout_perform_reloc.
(aout_perform_reloc): Use it.
This check was already present for references from hunk objects.
* bfd/amigaoslink.c (aout_perform_reloc): For pc-relative references only
references to the same output section are permitted.
requested in that mask either signed or unsigned.
(amiga_perform_reloc): Test final relocation always signed. Request reading
the addend of baserel relocations as unsigned value. Note that this is not
always correct but should only be done for symbols that came from the same
unit as the relocation.
(aout_perform_reloc): Likewise.
Change p from "signed char" to "bfd_byte" to avoid warnings. Always read
addends as a signed value (this is not always correct and will be fixed
with a later change).
(amiga_perform_reloc): Adapt arguments to new world order.
(aout_perform_reloc): Likewise.
(aout_perform_reloc): Do not adjust relocation with r->address, but use the
value the assembler left at *r->address. This fixes the relocation values
for mc68020+ instructions with an extension word and obsoletes the kludge
for 8bit pcrel relocations.
Reduce differences to aout_perform_reloc (more verbose return debug).
(aout_perform_reloc): Use a single debug statement to print reloc type.
Reduce differences to amiga_perform_reloc (enhanced/added comments).