2
0
mirror of https://github.com/bebbo/amigaos-binutils-2.14.git synced 2025-12-08 22:18:25 +00:00
Commit Graph

34 Commits

Author SHA1 Message Date
7f1f4229f1 patch also the stab generated offsets 2018-03-11 20:35:56 +01:00
e35204ad1d internal cleanup 2018-03-11 19:59:33 +01:00
eb800e9744 create one debug hunk for loadables and make objdump work again 2018-02-07 23:14:14 +01:00
865eab8d8c removed reference to ld stuff 2018-01-19 11:44:41 +01:00
e0a36d46fa exclude aout format from pcrel long jumps 2018-01-18 20:58:49 +01:00
764e92f27f added long jump insertion for small code model 2018-01-18 20:15:55 +01:00
146f10290b fix archive scanning, linking and support more amiga mem types 2017-12-21 19:15:35 +01:00
e5ab1ffedf remove superfluous/duplicate code 2017-12-16 22:26:54 +01:00
29668310c7 seems wotking 2017-12-15 23:11:48 +01:00
7a008400e0 ALIAS (indirect) seems to work 2017-12-15 19:12:53 +01:00
d2608e1f74 linking with .stab/.stabstr seems to work 2017-12-14 16:10:00 +01:00
4c5b7af9c9 @B restore 0e9acdc7ec 2017-05-29 17:08:11 +02:00
59d796ee98 @R support pcrelative linking 2017-05-19 17:16:45 +02:00
0e9acdc7ec @B fix bit test for BSF_GLOBAL 2017-03-22 23:40:36 +01:00
e9935d1863 @I use BSF_GLOBAL instead of hard coded 2 2017-03-14 00:41:37 +01:00
b914ad8df0 @M added devel1 modifications to starting base 2017-03-13 21:19:09 +01:00
374b9faeb4 Factor out common code for processing a.out and hunk relocations.
* 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.
2015-07-03 12:02:29 +00:00
c49e1d0d04 Minor cleanup.
* bfd/amigaoslink.c (amiga_perform_reloc): Remove UNUSED from abfd argument.
  (aout_perform_reloc): Reformat debug statements for clarity.
2015-07-03 10:01:50 +00:00
3da84a8d63 Add missing sanity check for pc-relative references from a.out objects.
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.
2015-05-25 12:39:35 +00:00
3d7cf01998 (amiga_perform_reloc): Catch baserelative relocations against code symbols.
(aout_perform_reloc): Likewise.
2009-03-07 19:28:21 +00:00
b0b16e9038 * amigaos.c (parse_archive_units): Strip final \n from bfd_msg format string.
(amiga_read_load): Likewise.
(amiga_handle_rest): Likewise.
(amiga_write_object_contents): Likewise.
(amiga_write_section_contents): Likewise.
(amiga_write_symbols): Likewise.
(amiga_slurp_armap): Likewise.
* amigaoslink.c (amiga_perform_reloc): Likewise.
(aout_perform_reloc): Likewise.
(amiga_final_link): Likewise.
2009-01-05 12:48:24 +00:00
895c223cb3 (my_add_to): Replace boolean argument with a flags mask. Read addends as
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.
2008-12-23 16:09:09 +00:00
cdc68c3310 (my_add_to): Replace offset and size arguments with an arelent argument.
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.
2008-12-23 16:04:08 +00:00
5de376a191 (amiga_perform_reloc): Use size from r->howto.
(aout_perform_reloc): Likewise.
2008-12-23 16:02:43 +00:00
f741547ded (my_set_to): Remove dead function.
(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.
2008-12-23 16:01:55 +00:00
73d923df29 (amiga_perform_reloc): Use a single debug statement to print reloc type.
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).
2008-12-23 15:58:48 +00:00
98df952a7e (amiga_perform_reloc): Use reloc size from arelent.
(aout_perform_reloc): Likewise.
2008-12-23 15:57:42 +00:00
598ece60e9 (aout_amiga_final_link): Declare.
(get_relocated_section_contents): Use bfd_get_flavour.
(amiga_perform_reloc): Likewise.
(amiga_final_link): Likewise.
2008-12-07 18:46:58 +00:00
6e32e92ebf (get_relocated_section_contents): Merge changes of generic function between
2.9.1 and 2.14.
(amiga_final_link): Likewise.
(amiga_reloc_link_order): Likewise.
2008-12-07 18:45:56 +00:00
24c5353b1a (aout_perform_reloc): Resolve undefined weak symbols against the absolute
section.
2008-11-25 20:45:59 +00:00
22ac4a8137 * amigaos.c (bfd_is_bfd_section): New macro.
(determine_datadata_relocs): Use section_ptr macros.
(amiga_write_object_contents): Likewise.
(amiga_write_symbols): Likewise.
(amiga_get_symbol_info): Likewise.
* amigaoslink.c (amiga_perform_reloc): Use section_ptr macros.
(aout_perform_reloc): Likewise.
2008-11-25 20:39:10 +00:00
cb64fb89dd (amiga_perform_reloc): Always use cached value of sym->section.
(aout_perform_reloc): Likewise.
2008-11-25 20:37:30 +00:00
d6af3b0691 applied patch to bring it in sync with latest CVS head 2006-03-16 00:07:44 +00:00
8c09c6eb7c applied BUTILS_2_14->BUTILS_AMIGA_20031201 patch 2006-03-15 23:35:05 +00:00