2
0
mirror of https://frontier.innolan.net/github/amigaos-binutils.git synced 2025-11-19 21:39:46 +00:00
Commit Graph

140 Commits

Author SHA1 Message Date
d2608e1f74 linking with .stab/.stabstr seems to work 2017-12-14 16:10:00 +01:00
36fefa9200 @B fix stabs handling - subtract vma from entries 2017-07-06 23:33:18 +02:00
4c5b7af9c9 @B restore 0e9acdc7ec 2017-05-29 17:08:11 +02:00
738025ab43 Merge branch 'pcrel' into devel2 2017-05-19 17:20:25 +02:00
59d796ee98 @R support pcrelative linking 2017-05-19 17:16:45 +02:00
e25d2e608b @R added a hack to search loaded libraries/files multiple times. 2017-05-07 17:39:14 +02:00
179513c0a0 @R devel snapshot 2017-05-06 20:07:18 +02:00
0e9acdc7ec @B fix bit test for BSF_GLOBAL 2017-03-22 23:40:36 +01:00
5781371c30 @B fix possible buffer overrun 2017-03-22 21:51:10 +01:00
771f273346 @B display correct symbols for .data/.bss refs.
If a reloc is present it is used to lookup the correct symbol.
2017-03-20 10:53:30 +01:00
d1a6d29461 @V bump version to 2.14b 2017-03-14 21:39:21 +01:00
8744207006 @R be more tolerant and accept "ARFILENAMES/ " or "ARFILENAMES/" 2017-03-14 00:50:02 +01:00
e9935d1863 @I use BSF_GLOBAL instead of hard coded 2 2017-03-14 00:41:37 +01:00
fa841cf819 @N new m68k specific option: -M a4 to display symbols for baserel offsets in the disassmble dump 2017-03-14 00:27:46 +01:00
b381f24187 @B fix linking common symbols, @I cleanup 2017-03-14 00:10:57 +01:00
b914ad8df0 @M added devel1 modifications to starting base 2017-03-13 21:19:09 +01:00
246f5351b2 @B undo of some recent bogus changes 2017-02-23 12:52:35 +01:00
9cb231643d @B write "ARFILENAMES/ " instead of "ARFILENAMES/" 2017-02-22 14:33:58 +01:00
5856b5a4cc @V version reports now 2.14a instead 2.14 2017-02-18 20:18:12 +01:00
d3818bb045 @I add #include "config.h" and add an explicit void to remove warnings
with some compilers
2017-02-18 11:33:19 +01:00
7ee448c941 @N treat .gcc_except_table as .data 2017-02-14 15:02:25 +01:00
742d6bb698 @R with multiple defined symbols now the first definition is retained (was: last definition), thus object file definition have precedence over libs 2017-02-13 18:59:08 +01:00
6372b0a52e @R new approach to fix the offsets relative to a4. 2017-02-13 01:28:22 +01:00
bc877e33c6 @B fix linking with baserel32 mode 2017-02-06 21:44:29 +01:00
1d7d87ecf0 @D remove debug output 2017-02-06 15:12:01 +01:00
f474743b90 @B fix #ifdef DEBUGPRINT 2017-02-06 15:10:05 +01:00
bb6ad09703 @B fix compatibilty issues for VC 2017-02-06 15:08:28 +01:00
b9511c9413 @B fix compatibilty issues for VC 2017-02-06 15:04:37 +01:00
78fa84d0b7 @D added more debug output, @B reintroduced an old bug to make the
linker work again!?!
2017-01-31 20:18:46 +01:00
fd791101b6 @B fix last merge 2016-12-01 12:55:03 +01:00
54cef86a35 @R support newer asm directives 2016-11-30 23:54:44 +01:00
590f1f95a2 @R changes to work with gcc-6.2.0 2016-11-28 22:19:06 +01:00
ce410ad89a @I add eclipse .project file 2016-11-22 19:27:18 +01:00
2a89d7fe20 Fix m68k_aout_machtype setting for TE_AMIGA.
* gas/config/tc-m68k.c (m68k_init_after_args): Use m68020up for architecture
  check.
2015-11-28 13:44:40 +00: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
5959708977 Rename a helper macro to better reflect what the macro is used for.
* bfd/amigaos.c (bfd_is_bfd_section): Rename from this ...
  (bfd_is_special_section): ... to this.
2015-06-16 17:40:36 +00:00
d2bd053001 Simplify logic dealing with RELOC32SHORT data from an executable.
* bfd/amigaos.c (howto_for_raw_reloc): New parameter indicating file type.
  Use it for mapping HUNK_DREL32 to ABS32 or SD32.
  (amiga_handle_rest): Remove special handling of HUNK_DREL32.
  (read_raw_relocs): Likewise.
2015-06-03 18:03:28 +00:00
75ee6e77cc In an object file a HUNK_RELRELOC32 has 32bit data.
* bfd/amigaos.c (parse_archive_units): Read contents of HUNK_RELRELOC32 as
  32bit words.
2015-06-03 17:55:47 +00:00
33dc868cd6 Move check of on-disk size of relocation data into a separate function.
* bfd/amigaos.c (amiga_reloc_long_p): New function checking a hunk type for
  on-disk size of relocation data.
  (amiga_handle_rest): Use new function.
  (amiga_write_section_contents): Likewise.
  (read_raw_relocs): Likewise.
2015-06-03 17:11:42 +00:00
eb89bd3709 Minor style correction.
* bfd/amigaos.c (howto_for_raw_reloc): Remove parameter name from prototype.
  (howto_for_reloc): Likewise.
2015-06-03 16:18:00 +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
4e19233665 Add support for relocation hunks with short (16bit) data.
* bfd/amigaos.c (write_words): Add protototype.
  (write_words): New function to write 16bit words.
  (amiga_write_section_contents): Use write_words to write 16bit relocs.
2015-05-15 19:35:50 +00:00
0c09613c8f Fix RELRELOC32 reading and decoding. AmigaOS 3.x expects short data.
* bfd/amigaos.c (parse_archive_units): Add support for HUNK_RELOC32SHORT.
  Parse HUNK_RELRELOC32 the same way.
  (amiga_handle_rest): Check for HUNK_RELRELOC32 when reading short data.
  (read_raw_relocs): Likewise.
2015-05-15 19:22:06 +00:00
5df18f43a6 Merge normal RELOC32 and RELOC32SHORT howto selection.
* bfd/amigaos.c (R_ABS32SHORT): Remove.
  (howto_table): Remove H_ABS32SHORT entry.
  (howto_for_raw_reloc): Use R_ABS32 entry for HUNK_RELOC32SHORT.
2015-05-15 18:53:34 +00:00
179c404953 Change HOWTO enumeration.
* bfd/libamiga.h (H_PC32SHORT): New enum value.
  (H_PC26): Moved to end of enumeration.
2015-05-15 18:45:53 +00:00
39cb210148 Fix behaviour of a core bfd function generating sections.
For details check https://sourceware.org/ml/binutils/2003-07/msg00077.html
about the patch.

* bfd/section.c (bfd_make_section): Return NULL for existing section.
2015-05-05 19:01:47 +00:00
e2b5906c8a 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.
2015-04-29 19:07:20 +00:00
ddc877b3d3 Minor white space changes.
* bfd/amigaos.c (amiga_handle_rest): Use TABs.
  (amiga_write_object_contents): Likewise.
  (read_raw_relocs): Likewise.
2015-04-29 18:52:24 +00:00
f723c5d6ef Unify relocation read logic.
* bfd/amigaos.c (read_raw_relocs): Replace switch with an if test.
2015-04-29 18:48:43 +00:00