Commit Graph

32 Commits

Author SHA1 Message Date
bebbo b34e726222 ignore .type stuff 2018-05-12 22:32:35 +02:00
bebbo 9271de17ff be nice to Eclipse 2018-03-11 20:00:45 +01:00
bebbo 146f10290b fix archive scanning, linking and support more amiga mem types 2017-12-21 19:15:35 +01:00
bebbo d2608e1f74 linking with .stab/.stabstr seems to work 2017-12-14 16:10:00 +01:00
bebbo b381f24187 @B fix linking common symbols, @I cleanup 2017-03-14 00:10:57 +01:00
bebbo b914ad8df0 @M added devel1 modifications to starting base 2017-03-13 21:19:09 +01:00
bebbo 7ee448c941 @N treat .gcc_except_table as .data 2017-02-14 15:02:25 +01:00
bebbo 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
bebbo fd791101b6 @B fix last merge 2016-12-01 12:55:03 +01:00
bebbo 54cef86a35 @R support newer asm directives 2016-11-30 23:54:44 +01:00
bebbo 590f1f95a2 @R changes to work with gcc-6.2.0 2016-11-28 22:19:06 +01:00
Gunther Nikl 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
Gunther Nikl 681f013ef9 Override m68k_aout_machtype value when building an amiga target.
* gas/config/tc-m68k.c (TE_AMIGA): Provide a zero default.
  (FRAME): Check TE_AMIGA for zero/non-zero value.
  (m68k_init_after_args): Tweak m68k_aout_machtype for TE_AMIGA case.
2015-03-27 17:17:52 +00:00
Jens Maus 5c77c5df76 - checkin of certain files being automatically generated with newer version of flex/bison&co. 2015-03-26 08:15:01 +00:00
Gunther Nikl a8d9343dc8 Use FLAG_SMALL_CODE at all places.
* gas/config/tc-m68k.c (md_estimate_size_before_relax): Use FLAG_SMALL_CODE.
2015-03-08 20:37:47 +00:00
Gunther Nikl 3e83a383d7 Consistently disable small-code checks.
* gas/config/tc-m68k.c (FLAG_SMALL_CODE): New define.
  (m68k_ip): Replace checking of flag_small_code with FLAG_SMALL_CODE.
  (md_convert_frag_1): Likewise.
  (md_estimate_size_before_relax): Likewise.
2015-03-08 20:17:32 +00:00
Gunther Nikl f25adb075e Remove N_TEXT usage.
* gas/config/tc-m68k.c (N_TEXT): Delete.
  (md_convert_frag_1): Replace S_GET_TYPE check for N_TEXT with a check of
  S_GET_SEGMENT for text_segment.
2015-03-08 20:12:47 +00:00
Gunther Nikl a7120aeaef Fix N_WARNING .stabs handling.
* gas/config/obj-aout.h (N_REGISTER): Use 18 as fake N_TYPE for SEG_REGISTER.
* gas/config/obj-aout.c (N_TYPE_seg): Move SEG_REGISTER to its new position.
* gas/symbols.h (N_REGISTER): Do not redefine if already present.
2015-03-08 20:02:08 +00:00
Gunther Nikl c1f1f943e1 Backport fixes for PR gas/3041 (bfd assembler):
[gas]
2010-09-09  Gunther Nikl  <gnikl@users.sourceforge.net>

	* gas/config/tc-m68k.c (tc_gen_reloc): Handle references to defined
	weak symbols first if generating an a.out object.

2009-10-013  Vincent Riviere  <vincent.riviere@freesbee.fr>

	PR gas/3041
	* config/tc-m68k.c (tc_gen_reloc): Fix addend for relocations
	located in data section an referencing a weak symbol.

2007-05-15  Vincent Riviere  <vincent.riviere@freesbee.fr>

	PR gas/3041
	* config/tc-m68k.c (relaxable_symbol): Make sure that the correct
	addend is stored for relocs against weak symbols.
	(md_apply_fix): So not loose track of addend for relocs against
	weak symbols.

2007-05-03  Vincent Riviere  <vincent.riviere@freesbee.fr>
	    Nick Clifton  <nickc@redhat.com>

	PR gas/3041
	* config/tc-m68k.c (relaxable_symbol): Do not relax weak symbols.
	(tc_gen_reloc): Adjust the addend of relocs against weak symbols.
	(md_apply_fix): Put zero values into the frags referencing weak
	symbols.

[bfd]
2007-05-03  Vincent Riviere  <vincent.riviere@freesbee.fr>
	    Nick Clifton  <nickc@redhat.com>

	PR gas/3041
	* aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols
	in the same way as relocs against external symbols.


Weak fixes for the non-bfd assembler:

* gas/config/tc-m68k.h (S_IS_WEAK): Define for !BFD_ASSEMBLER.
* gas/config/tc-m68k.c (tc_aout_fix_to_chars): Check weak symbol state.
* gas/write.c (fixup_segment): Treat a weak symbol as undefined.
2014-11-17 20:24:28 +00:00
Gunther Nikl bc58512a28 The upper bits of some instruction data should be zero.
* gas/config/tc-m68k.c (m68k_ip): Sanitize opcode data.
2014-11-17 19:42:40 +00:00
Gunther Nikl c796c52d23 Fix assembler output of the non-bfd version when running on a 64bit host.
* gas/config/aout_gnu.h (BYTES_IN_WORD): New define.
  (struct exec_bytes): Use it.
  (EXEC_BYTES_SIZE): Likewise.
* gas/config/obj-aout.c (CROSS_COMPILE): Convert to a compile time constant
  of 0 or 1.
  (obj_header_append): Use "struct exec_bytes" when cross compiling.
  (obj_symbol_to_chars): Output symbol data with a local "struct nlist_bytes"
  utilizing BYTES_IN_WORD.
  (obj_crawl_symbol_chain): Ignore symbols without a valid name like BFD.
  (obj_emit_strings): Use BYTES_IN_WORD to output string table size when
  cross compiling.
  Suppress symbols without a valid name like BFD.
* gas/write.c (write_object_file): Replace "sizeof (string_byte_count)" with
  BYTES_IN_WORD.
2014-11-16 18:42:30 +00:00
Gunther Nikl aeb7e01420 (fixup_segment): Move baserel adjustment for non-BFD _before_ md_apply_fix3.
Do not modify add_number for relocations against undefined symbols.
2008-12-23 16:49:46 +00:00
Gunther Nikl 18829e7a7a * (md_apply_fix3): Remove broken OBJ_AMIGAHUNK specific code.
* (md_pcrel_from): Only use adjust when generating a hunk object.

This reverts r184. Afterall the old code was correct...
2008-12-07 18:44:12 +00:00
Gunther Nikl 9483f19ebf * (md_estimate_size_before_relax): Disable small-code checks. 2008-11-20 17:10:34 +00:00
Gunther Nikl 2d9409254e * (md_pcrel_from): Remove broken OBJ_AMIGAHUNK specific code.
* (md_apply_fix3): Do not emit fix value for a pcrel fix when generating
a hunk object.
2008-11-20 17:07:25 +00:00
Gunther Nikl d05ef800d5 * (md_relax_table): Fix formatting of AmigaOS additions.
* (m68k_ip): Likewise.
* (md_convert_frag_1): Likewise.
2008-11-20 16:54:18 +00:00
Gunther Nikl 4909643937 (md_estimate_size_before_relax): Use relaxable_symbol on fragP->fr_symbol for
TAB (ABSREL, SZ_UNDEF). Remove obsolete fr_var adjustments.
2008-11-20 16:47:02 +00:00
Jens Maus 5954d73061 - resync with HEAD of CVS repo 2006-03-16 10:00:58 +00:00
Jens Maus d6af3b0691 applied patch to bring it in sync with latest CVS head 2006-03-16 00:07:44 +00:00
Jens Maus ec42187c38 applied binutils-20041204 patch 2006-03-15 23:38:39 +00:00
Jens Maus 8c09c6eb7c applied BUTILS_2_14->BUTILS_AMIGA_20031201 patch 2006-03-15 23:35:05 +00:00
Jens Maus 7d10307602 - importing initial 2.14 binutiles vendor version. 2006-03-15 23:16:57 +00:00