Commit Graph

683 Commits

Author SHA1 Message Date
Steve Chamberlain 1728686e66 cvs core dumps again... 1993-07-13 19:13:18 +00:00
Steve Chamberlain 489a93f3c3 * config/tc-h8500.c (line_comment_chars): Add hash.
(parse_exp, skip_colonthing, build_bytes): Add support for
	R_H8500_HIGH16 relocation type.
1993-07-13 19:12:10 +00:00
Mark Eichin 025b030243 fix definitions of md_create_long_jump, md_create_short_jump,
md_number_to_chars, and md_section_align to correctly use valueT and addressT
1993-07-12 19:42:32 +00:00
Mark Eichin c463189d53 update use of valueT and addressT 1993-07-12 18:58:50 +00:00
Ken Raeburn 5d4ef2968b config/obj-elf.c (obj_elf_section): Allow `@' to introduce an attribute name.
Handle `execinstr' attribute.
1993-07-12 15:17:10 +00:00
Ian Lance Taylor 99c24539c5 * config/tc-mips.c (mips_ip): Don't warn on 'i' or 'j' mismatch if
there is another alternative for the instruction.
1993-07-12 14:24:20 +00:00
Roland Pesch ec1c752b34 doc/as.texinfo 1993-07-10 00:32:18 +00:00
Roland Pesch 8d8ddccbe0 Updates for Hitachi H8/300H 1993-07-10 00:31:03 +00:00
Ian Lance Taylor 332fc09ff0 Clean up some of the obvious m88k bitrot.
It still doesn't actually compile, though.
1993-07-09 18:31:36 +00:00
David D. Zuhn 00a737d37c put CROSS definition into the Makefile 1993-07-08 19:19:31 +00:00
Ken Raeburn b25654337a Oops, not all of the tc-sparc.c change was format-independent.
Still handles both syntaxes independent of format.
1993-07-08 19:09:19 +00:00
Mark Eichin d358969d94 changelog for tc-i960 change 1993-07-08 18:50:43 +00:00
Mark Eichin c47d388b75 Thu Jul 8 14:41:43 1993 Mark Eichin (eichin@cygnus.com)
* config/tc-i960.c (md_create_short_jump, md_create_long_jump,
	md_number_to_chars, md_section_align): Adjusted to use valueT,
	addressT, to match tc.h.
1993-07-08 18:44:32 +00:00
Ken Raeburn ff4cac3854 config/tc-sparc.c (s_common): Revamp to handle both syntaxes, and not be
target-specific.
1993-07-08 18:40:50 +00:00
David Edelsohn 422069965b config/tc-h8300.h (TC_CONS_RELOC): Use R_RELLONG if h8/300h. 1993-07-08 14:26:17 +00:00
David D. Zuhn 8f4b91429e define CROSS is cross compilation 1993-07-08 03:15:36 +00:00
David D. Zuhn e9baeb4606 define CROSS is cross compilation 1993-07-08 02:55:22 +00:00
Ian Lance Taylor e154ecf4ab * symbols.c (fb_label_instance, fb_label_instance_inc): Don't dump
core just because somebody uses a label before it is defined.
1993-07-07 20:07:12 +00:00
Ian Lance Taylor 4e2e8744c5 This file was not removed last time. Why?? 1993-07-07 17:29:12 +00:00
Ian Lance Taylor 918692a5cc * config/mips-opcode.h: Moved to opcode/mips.h.
* config/tc-mips.c: Include opcode/mips.h rather than
	mips-opcode.h.
	(append_insn): An extra NOP is only needed after instructions
	which set HI or LO, not after instructions which read it.
	(macro_build, mips_ip): Support new 'E', 'G' and 'B' arguments.
	(macro): cfc1 and ctc1 now take "t,G" rather than "t,d".
	* config/tc-mips.h (struct mips_opcode): Don't define.
	* config/mips-big.mt, config/mips-lit.mt (TARG_CPU_DEPENDENTS):
	Set to $(srcdir)/../include/opcode/mips.h.

	Get the MIPS assembler up to speed with other gas changes:

	* config/obj-ecoff.c (ecoff_set_vma, ecoff_frob_symbol):
	Removed; don't change the symbol value.
	(ecoff_build_symbols, ecoff_build_procs, ecoff_frob_file): Use
	bfd_asymbol_value rather than S_GET_VALUE to include section
	vma in symbol value.
	(ecoff_frob_file): Ignore BSF_SECTION_SYM symbols, since ECOFF
	doesn't output them.  Set the vma of sections.
	* config/obj-ecoff.h: Don't define obj_frob_symbol.
	* config/tc-mips.c (tc_gen_reloc): Adjustment by section vma is no
	longer necessary.
	(various): use valueT rather than long.
1993-07-07 17:23:39 +00:00
Ian Lance Taylor 76c64db09f Various entries. 1993-07-07 17:22:56 +00:00
Ken Raeburn e28e0b95ed Typedef changes. V9 work. 1993-07-07 17:16:02 +00:00
Ken Raeburn 125f0b0d84 (sparc_ip): Initialize `len' variable to make gcc shut up.
(md_create_short_jump, md_create_long_jump, md_number_to_chars,
md_section_align): Adjusted for new interface.

(s_reserve): Permit use for other than a.out format.
(s_common): Handle Solaris-2 version.

(s_xword): For numbers, call big_cons.
(sparc_ip, md_apply_fix, tc_gen_reloc): Handle some sparc64 reloc types.
(md_number_to_chars): Handle 8-byte values.
1993-07-07 16:58:29 +00:00
Ken Raeburn 3c8df4ba76 (md_create_short_jump, md_create_long_jump,
md_number_to_chars, md_section_align): Adjusted for new interface.
1993-07-07 16:56:24 +00:00
Ken Raeburn 6e3785155d Change various calls (e.g., to symbol_new, md_number_to_chars) to cast
valueT or addressT arguments to correct types.
1993-07-07 16:40:30 +00:00
Ken Raeburn 039d8f7350 (struct fix): Fields fx_offset and fx_addnumber are now type valueT.
(fix_new): Argument offset is now type offsetT.
1993-07-07 16:39:13 +00:00
Ken Raeburn d536474829 (write_object_file): Locals from_addr, to_addr, table_addr are now addressT.
Supply prototype for bfd_alloc for now.
(fixup_segment): Local add_number is now valueT.  Fix some range-checking bugs.
(relax_align): Type `int' should be sufficient for the exponent.
(fix_new): Argument offset is offsetT.  Locals size and newsize are valueT.
1993-07-07 16:33:38 +00:00
Ken Raeburn 2b68b820a9 * symbols.c (symbol_new): Symbol value is type valueT.
(S_SET_VALUE, S_GET_VALUE): Likewise.
(S_IS_*): Specify int return type explicitly.
* symbols.h (symbol_new, S_GET_VALUE, S_SET_VALUE): Fixed prototypes.
1993-07-07 16:25:37 +00:00
Ken Raeburn bd4d4b8aca (obj_elf_frob_symbol, elf_frob_file, elf_file_symbol): Declare.
(elf_symbol): For sparc v9, use 64-bit symbol type.
1993-07-07 16:22:12 +00:00
Ken Raeburn dee576a0a7 clean v9 from obj-elf.h 1993-07-07 16:19:59 +00:00
Ken Raeburn 25c09bbf44 Define ENV64 for sparc v9. 1993-07-07 16:17:29 +00:00
Ken Raeburn 7d0ed38fc3 (free): Returns void if __STDC__. 1993-07-07 16:14:44 +00:00
Ken Raeburn 4032436291 (s_comm): Values read are type valueT. 1993-07-07 12:37:58 +00:00
Ken Raeburn 2fe8b7b003 (expressionS): Field X_add_number is an offsetT. 1993-07-07 12:36:51 +00:00
Ken Raeburn dae92eaba0 (integer_constant, floating_constant): Now return void. 1993-07-07 12:35:48 +00:00
Ken Raeburn b17c891e58 move valueT typedef to as.h from struc-symbol.h 1993-07-07 12:33:43 +00:00
Ken Raeburn f520031860 localize a conditionally used variable 1993-07-07 12:33:11 +00:00
David D. Zuhn bb554e9423 fix decls 1993-07-02 01:33:33 +00:00
Ian Lance Taylor 267389df6d * read.c (cons): Conditionalize parsing of expression. Move
putting value into object file into separate function.  Separate
	out MRI and WANT_BITFIELDS cases into separate functions.
	(emit_expr): New function to write data into object file.
	Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on
	processor types.
	(parse_bitfield_cons): New function to parse bitfield expressions
	as used by i960 assemblers.  Only compiled if
	BITFIELD_CONS_EXPRESSIONS is defined.
	(parse_mri_cons): New function to parse MRI style strings.  Only
	compiled if MRI is defined.
	(parse_repeat_cons): New function to parse repeat counts.  Only
	compiled if REPEAT_CONS_EXPRESSIONS is defined.
	* read.h (emit_expr): Added declaration of new function.
	* config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32.
	* config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD.
	* config/tc-hppa.c (parse_cons_expression_hppa): New function to
	parse a HPPA expression, rather than special case in cons
	function.
	(cons_fix_new_hppa): New function to emit an HPPA fixup, rather
	than special case in emit_expr function.
	* config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW):
	Define to use new functions from tc-hppa.c.
	* config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define.
	(WANT_BITFIELDS): Removed; now obsolete.
	* config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define.
	* config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an
	NS32K fixup, rather than special case in emit_expr function.
	* config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be
	cons_fix_new_ns32k.  Also use PARAMS rather than checking
	__STDC__.
	* config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32.

	* write.c (relax_and_size_seg, adjust_reloc_syms, write_contents):
	Don't core dump if gas has no information about a section.
1993-06-30 18:27:41 +00:00
Ken Raeburn 41532f54c6 sparc64 changes 1993-06-30 10:34:32 +00:00
Ken Raeburn d4ac2d09fd New files for sparc64 cpu. 1993-06-30 10:30:54 +00:00
David D. Zuhn a828550492 fix HPUX hosting problems 1993-06-29 17:22:03 +00:00
David Edelsohn 83f26cee7b * config/sparc.c (sparc_ip): Remove support for %d/%q fp regs.
All fp regs are now specified as %f.
(priv_reg_table): fpq -> fq.
1993-06-25 17:50:22 +00:00
Ken Raeburn ed9638af53 (tc_gen_reloc): Handle BFD_RELOC_SPARC_WDISP22 relocation.
(s_local) [OBJ_ELF]: New function.
(md_pseudo_table) [OBJ_ELF]: Call it for "local".
(s_common): Rearrange to handle Solaris .common pseudo, which may sometimes use
bss space instead of common.
(md_parse_option) [OBJ_ELF]: Print version id for -V.  Ignore -Q and -s options
for now.
1993-06-25 09:51:47 +00:00
Ken Raeburn 50fccebe22 (INCLUDES): Look in ../bfd, not ../include, for bfd.h. 1993-06-20 22:25:46 +00:00
Ken Raeburn 17145ba27a Sun Jun 20 02:34:04 1993 Ashley Saulsbury (ans@sics.se)
* m88k-opcode.h : fixed tiny tiny mistake - xcr was incorrectly
	specified, should have both S1 and S2 fields identical
	If only finding the problem was as fast as fixing the bug !!!!
1993-06-20 21:56:23 +00:00
Steve Chamberlain a3a0a4d0a5 Look in the right place for bfd.h. 1993-06-18 21:08:36 +00:00
David D. Zuhn 5ebaf24b77 single-quote $program_transform_name 1993-06-18 19:25:38 +00:00
David D. Zuhn 9126738c04 canonicalize install.sh location 1993-06-17 23:56:08 +00:00
Steve Chamberlain 115147fbb0 * config/obj-coffbfd.c (fill_section): Don't allow fills backwards.
* config/tc-sh (get_specific, md_convert_frag,
	md_estimate_size_before_relax): Add support for rest of opcodes.
1993-06-17 21:58:28 +00:00