Commit Graph

3067 Commits

Author SHA1 Message Date
Fred Fish
5cf4e55e7b * NEWS: Note BeOS support.
* configure.in: (ppc-*-beos): New target, use coff as object format.
	* configure: Regenerate with autoconf.
1997-03-16 03:28:53 +00:00
Ian Lance Taylor
18f7e3dc7f * config/tc-mips.c (md_apply_fix): Improve error message for out
of range branch.
1997-03-16 00:16:52 +00:00
Ian Lance Taylor
9591ad402a * Makefile.in: Add dependencies on obstack.h where needed. 1997-03-16 00:15:01 +00:00
Ian Lance Taylor
46a92fde53 * config/tc-mips.c (md_estimate_size_before_relax): Handle the
case of a symbol equated to another symbol when using SVR4_PIC.
1997-03-15 02:14:44 +00:00
Ian Lance Taylor
ef014e090f * Makefile.in (TARG_CPU_DEP_sparc): Add opcode/sparc.h. 1997-03-14 20:34:08 +00:00
Ian Lance Taylor
d428c89fdf * read.c (read_a_source_file): Call LISTING_NEWLINE before
HANDLE_CONDITIONAL_ASSEMBLY when handling an MRI line label.
PR 11746.
1997-03-13 20:19:43 +00:00
Ian Lance Taylor
2e9974a450 * config/obj-elf.c (obj_elf_data): Call md_flush_pending_output
and md_elf_section_change_hook if they are defined.
	(obj_elf_text, obj_elf_previous): Likewise.
1997-03-13 16:21:34 +00:00
Ian Lance Taylor
80633e8e2a * doc/as.texinfo (bss): Improve description of .bss section. In
ELF or COFF, you are permitted to switch into the section.
	(Comm): Rewrite description of common symbols.
	(Lcomm): Mention that some targets permit a third argument.
1997-03-12 16:41:26 +00:00
Ian Lance Taylor
9be8c0f160 * config/tc-ppc.c (ppc_elf_lcomm): Don't call S_CLEAR_EXTERNAL.
PR 11847.
1997-03-12 01:39:00 +00:00
Ian Lance Taylor
92b7bfb7b6 * symbols.c (colon): Change type of local to int. From Alan Modra
<alan@spri.levels.unisa.edu.au>.
1997-03-11 20:12:37 +00:00
Ian Lance Taylor
e053e8c1e5 * config/tc-m88k.c (m88k_do_align): Don't use a special nop
alignment if a zero fill pattern was explicitly specified.
	* config/tc-sh.c (sh_do_align): Likewise.
1997-03-11 20:10:20 +00:00
Ian Lance Taylor
842b6b062d * read.c (equals): Always permit register names to be redefined.
PR 11787.
1997-03-11 18:30:11 +00:00
Ian Lance Taylor
ee2c03edf3 * config/tc-mips.c (mips_fix_adjustable): Permit a reloc against a
mips16 symbol to be adjusted if a symbol is being subtracted from
	it.
1997-03-11 18:16:59 +00:00
Ian Lance Taylor
6d8dfa04d4 From Eric Youngdale <eric@andante.jic.com>:
* config/obj-elf.c (obj_elf_symver): Check for duplicate or
	illegal symbol version names.
	(elf_frob_symbol): Check for external default versions.
1997-03-11 06:14:44 +00:00
Ian Lance Taylor
d88cc85dbb From Eric Youngdale <eric@andante.jic.com>:
* config/obj-elf.h (struct elf_obj_sy): Define.
	(OBJ_SYMFIELD_TYPE): Define to elf_obj_sy struct.  Change all
	users.
	* config/obj-elf.c (obj_elf_symver): Just record the name.
	(obj_symbol_new_hook): Initialized versioned_name field.
	(elf_frob_symbol): If there is a versioned_name, either rename the
	symbol, or add an alias with that name.
1997-03-10 04:53:55 +00:00
Jeff Law
ef03fee0e0 * config/tc-mn10300.c (md_relax_table): Define.
(md_convert_frag): Implement.
        (md_assemble): Handle relaxable operands/instructions correctly.
        (md_estimate_size_before_relax): Implement.
        * config/tc-mn10300.h (TC_GENERIC_RELAX_TABLE): Define.
Branch relaxing for the mn10300.  Reduces the code size of our libraries by
about 11%.
1997-03-07 01:16:33 +00:00
Jeff Law
27103699a9 * config/tc-mn10200.c (md_relax_table): Fix typos.
Somthing I noticed while working on mn10300 relaxing code.
1997-03-07 00:04:57 +00:00
Jeff Law
a405bb3eb0 * config/tc-mn10300.c (md_assemble): Don't use any MN10300 specific
relocs anymore.  Tweak fx_offset for pc-relative relocs.
Cleanup/simplification of mn10300 port.  Bring over changes from mn10200 port.
1997-03-06 20:58:22 +00:00
Ian Lance Taylor
d6545e3fc3 * cond.c (s_ifc): Call mri_comment_field and mri_comment_end when
in MRI mode.
PR 11788
1997-03-05 23:48:08 +00:00
Jeff Law
a76daba13d * gas/all/gas.exp: xfail a couple tests for the mn10300. 1997-03-05 20:02:27 +00:00
Fred Fish
1ea5264653 * config/tc-tic80.c (md_pseudo_table): Add "sect" and "section"
pseudo-ops.
1997-03-05 06:18:28 +00:00
Fred Fish
e74539b876 * config/tc-tic80.c (md_begin): Declare external variable
coff_flags and insert an F_AR32WR bit into it.
1997-03-05 02:35:36 +00:00
Fred Fish
64c21d14eb * gas/tic80/{add.d, float.d, regops2.d, relocs1.d, relocs1b.d,
relocs2.d, relocs2b.d}: Adjust to objdump format tweaks.
1997-03-03 18:41:28 +00:00
Ian Lance Taylor
a941619c0b * config/tc-mips.c (mips16_extended_frag): Don't assume that we
can rely on the frag address to determine whether a frag is
	earlier or later.
1997-03-01 06:10:58 +00:00
Ian Lance Taylor
2360492176 * write.h (LOCAL_LABEL): Only define if not BFD_ASSEMBLER.
(S_LOCAL_NAME): Likewise.
	(FAKE_LABEL_NAME): Define unconditionally.
	* symbols.c (colon): Call bfd_is_local_label, not LOCAL_LABEL, if
	BFD_ASSEMBLER.
	(S_IS_LOCAL): Call bfd_is_local_label_name, not LOCAL_LABEL.
	* config/tc-*.h: Only define LOCAL_LABEL if not BFD_ASSEMBLER.
	Don't define FAKE_LABEL_NAME.
	* config/te-ic960.h: Likewise.
	* config/tc-mips.h (tc_frob_file_before_adjust): Define.
	(mips_frob_file_before_adjust): Declare.
	* config/tc-mips.c (mips_frob_file_before_adjust): New function.
	(mips_local_label): Remove.
1997-02-28 20:04:39 +00:00
Ian Lance Taylor
e691320ea4 * config/te-sco386.h: Remove; not used. 1997-02-28 19:42:04 +00:00
Ian Lance Taylor
8a683c6720 remove d10v sanitization 1997-02-27 23:34:14 +00:00
Fred Fish
a88ce21e33 * config/tc-tic80 (md_pseudo_table): Add align pseudo op to do
byte alignment rather than power-of-two alignment that is the
	GAS default.
1997-02-27 22:55:12 +00:00
Fred Fish
99cd62ed9c * gas/tic80/{align.d, align.lst, align.s} New test for the
".align" pseudop.
	* gas/tic80/tic80.exp: Run the align test.
1997-02-27 22:29:33 +00:00
Ian Lance Taylor
f396c4ef4c * config/tc-m68k.c (md_assemble): Handle a reloc width of 'W'.n 1997-02-27 19:57:10 +00:00
Angela Marie Thomas
54d5e0fb22 fix random missing Sanitize bits 1997-02-27 18:59:07 +00:00
Ian Lance Taylor
0f68bf0a91 * gasp.c (hash_add_to_string_table): Correct misspelling in error
message, and add newline.
	(process_file): Don't process assignments in the label if this is
	a equ or assign pseudo-op.
	(process_pseudo_op): Swap first argument to do_assign for K_ASSIGN
	and K_EQU, to match documentation.
1997-02-27 18:30:47 +00:00
Michael Meissner
0fe302aced Add "r" section attribute to denote read-only sections 1997-02-27 17:01:21 +00:00
Ian Lance Taylor
35c64f24d1 * config/obj-elf.c (obj_elf_common): Set BSF_OBJECT in flags.
* config/tc-sparc.c (s_common): Likewise, if BFD_ASSEMBLER.
1997-02-27 06:31:12 +00:00
Ian Lance Taylor
30d0557caa * expr.c (operand): Simplify 0b handling. Don't treat 0b as a
binary number if the next character is '+' or '-'.
1997-02-27 05:28:17 +00:00
Fred Fish
1e12595d64 * config/tc-tic80.c (FLT_CHARS): Change from "dD" to "fF".
(find_opcode): Match operands that can be floats.
	(build_insn): Handle O_big (float) expressions and build
	correct opcode.
1997-02-27 04:05:18 +00:00
Fred Fish
cf502a8d9b * gas/tic80/{float.d, float.lst, float.s}: New tests for
simple floating point operands.
	* gas/tic80/tic80.exp: Run the float test.
1997-02-27 03:39:10 +00:00
Stan Shebs
d3ecee3912 always keep te-lnews.h 1997-02-27 02:42:38 +00:00
Stan Shebs
af942793a8 * configure.in (mips*-*-lnews*): New target, also make empty
emulation list for this target.
	* configure: Update.
	* tc-mips.c (ECOFF_LITTLE_FORMAT): Define.
	(mips_target_format): Use.
	* te-lnews.h: New file.
1997-02-27 02:40:44 +00:00
Martin Hunt
9a18fe60f7 Sanitize out D30V stuff. 1997-02-27 01:55:05 +00:00
Fred Fish
f92f247b2d * config/tc-tic80.c (find_opcode, build_insn): Changes to match
operands with :m or :s modifiers and generate the right opcodes
	for them.
1997-02-26 22:42:51 +00:00
Fred Fish
6c24f9c190 * gas/tic80/{regops2.d, regops2.lst, regops2.s, regops3.d,
regops3.lst, regops3.s, regops4.d, regops4.lst, regops4.s}:
	New tests for :m and :s operand modifiers.
	* gas/tic80/tic80.exp: Run the regops2, regops3, and regops4 tests.
1997-02-26 22:24:38 +00:00
Ian Lance Taylor
7a5157080c * Makefile.in (itbl-parse.c itbl-parse.h): Use $(BISON) and
$(BISONFLAGS), not $(YACC) and $(YACCFLAGS).
1997-02-26 16:57:38 +00:00
Ian Lance Taylor
034988c662 Based on patches from Robert Lipe <robertl@dgii.com>:
* configure.in: Add i386coff and i386elf to emulation list.
	* configure: Rebuild.
	* as.c (i386coff, i386elf): Declare.
	* obj.h (coff_format_ops): Declare.
	* config/obj-coff.c (OBJ_HEADER): Define.
	(coff_obj_symbol_new_hook): Rename from obj_symbol_new_hook.
	(coff_obj_read_begin_hook): Rename from obj_read_begin_hook.
	(obj_pseudo_table): Add "version".
	(coff_pop_insert): New static function.
	(coff_sec_sym_ok_for_reloc): New static function.
	(no_func): New static function.
	(coff_format_ops): New variable.
	* config/obj-coff.h (coff_obj_symbol_new_hook): Declare.
	(obj_symbol_new_hook): Define.
	(coff_obj_read_begin_hook): Declare.
	(obj_read_begin_hook): Define.
	* config/tc-i386.h (i386_target_format): Declare.
	* config/tc-i386.c: Check OBJ_MAYBE_ELF as well as OBJ_ELF; check
	OUTPUT_FLAVOR when appropriate.
	(i386_target_format): New function.
	* Makefile.in (obj-coff.o): New target.
	(e-i386coff.o, e-i386elf.o): New targets.
1997-02-26 04:33:08 +00:00
Ian Lance Taylor
55be99d643 Tue Feb 25 22:02:23 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* config/tc-m68k.c (instring): Useless local declaration of
	crack_operand removed.
	* expr.h (expressionS): Changed type of X_op field to operatorT if
	__GNUC__.
1997-02-26 03:04:05 +00:00
Ian Lance Taylor
a0c4a2413e From Stephen Williams <steve@icarus.icarus.com>:
* config/tc-i960.h (TC_SYMFIELD_TYPE): Define if OBJ_COFF.
	(_tc_get_bal_of_call): Don't declare.
	(tc_get_bal_of_call): Declare as function, don't define as macro.
	* config/tc-i960.c (tc_set_bal_of_call): If OBJ_COFF, store balP
	in sy_tc field, not x_balntry field.
	(tc_get_bal_of_call): Rename from _tc_get_bal_of_call.  Change
	return type to symbolS *.  If OBJ_COFF, retrieve value from sy_tc
	field, not x_balntry field.
1997-02-26 02:55:31 +00:00
Ian Lance Taylor
7a9756bcc2 tweak for alignment 1997-02-25 19:47:05 +00:00
Ian Lance Taylor
a90512ade8 * Makefile.in ($(OBJS)): Don't depend upon $(IT_HDRS).
(TARG_CPU_DEP_mips): Depend upon $(srcdir)/itbl-ops.h.
	(itbl-lex.o): Depend upon itbl-parse.h.

	* itbl-parse.y (yyerror): Change return type to int.  Change to
	use old style function declaration.
1997-02-25 19:36:18 +00:00
Ian Lance Taylor
ee5cb7fe02 * Makefile.in (itbl-lex.o): Remove -Wall.
(itbl-parse.o): Likewise.
1997-02-25 19:28:05 +00:00
Ian Lance Taylor
b1a8b4d814 * gas/macros/semi.s: Force the final alignment to use a fill value
of 0.
1997-02-25 18:56:14 +00:00