Commit Graph

1251 Commits

Author SHA1 Message Date
Stan Shebs
623d4854fc a belated reflection of changed MPW files 1994-03-09 20:32:48 +00:00
Ken Raeburn
9e12fbbc67 alpha, coff, i386 changes 1994-03-09 02:45:29 +00:00
Ken Raeburn
40cd35fffd Handle Alpha load-immediate-FP pseudo-instructions:
* config/alpha-opcode.h (ldif, ldig, ldis, ldit): New patterns.
* config/tc-alpha.c (lit8_sec, lit4_sec, lit8_sym, lit4_sym): New variables.
(create_literal_section): New function.
(create_lita_section): Now a macro.
(get_lit8_offset, get_lit4_offset): New functions.
(maybe_set_gp): New function.
(select_gp_value): Call it.
(load_expression): Preserve addend if symbol is a section symbol.
(alpha_ip): Handle new operand type `F' for floating-point constants; store
them in .lit{4,8} sections.
(alpha_ip, case 'G'): Emit LITUSE relocations for symbol exprs.
1994-03-09 02:44:00 +00:00
Ken Raeburn
055a75ef75 * config/obj-coff.c: Minor formatting/stylistic changes, plus:
(obj_coff_section): Declare.
(obj_pseudo_table): Make it available only if MANY_SECTIONS.
(obj_symbol_to_chars) [CROSS_COMPILE]: Some attemps to make this work.  It
still doesn't.  It now fails to compile, instead of silently compiling to do
nothing.
* config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define only if MANY_SECTIONS.
(OBJ_PROCESS_STAB) [! MANY_SECTIONS]: New macro, just emits a warning.
1994-03-09 02:42:57 +00:00
Steve Chamberlain
2bac8c544f * config/obj-coffbfd.c (w_strings): Only copy strings out if
their symbols are going to be written.
1994-03-08 22:30:58 +00:00
Ian Lance Taylor
33e61c95a2 Set Emacs local variables to never use version control. 1994-03-08 19:16:31 +00:00
Ian Lance Taylor
d16938f52e * messages.c (as_perror): Declare arguments const.
* as.h (as_perror): Change declaration.
1994-03-08 16:51:28 +00:00
Ian Lance Taylor
8ea7f4e854 * config/tc-mips.c (load_address): When calling frag_grow, allow
for the (up to) two nops which may be inserted by append_insn if
	mips_optimize is 0.
	(macro): Likewise.
1994-03-07 21:12:26 +00:00
David Edelsohn
fa47b47eee * config/atof-ieee.c (make_invalid_floating_point_number):
Add cast to avoid warning from gcc.
1994-03-03 19:39:12 +00:00
Ken Raeburn
1535ff15c7 Removed comment about internals documentation in as.texi; just say that the
internals need documenting.
1994-03-03 02:31:21 +00:00
Ken Raeburn
74a88e8b27 Add some notes from tege on .align for alpha and i386 that I want to deal with
sometime, when I've got time.
1994-03-02 22:43:28 +00:00
Jeff Law
fb338f1d79 * config/tc-hppa.c: Add a few casts to make HP C compiler happy.
* config/obj-som.c (obj_som_version, obj_som_copyright): Be prepared
        to handle an error from bfd_som_attach_aux_hdr.
1994-03-02 20:02:17 +00:00
Jeff Law
34b1685053 * config/tc-hppa.h: Wrap ELF specific decls inside an ifdef. 1994-03-02 18:31:57 +00:00
Rob Savoye
d8e882a899 Change "error" to "perror". 1994-03-02 05:00:26 +00:00
Rob Savoye
6e2194f077 Change "error" to "perror" everywhere. 1994-03-02 02:59:43 +00:00
Ken Raeburn
994fde6d80 960-coff, alpha changes 1994-02-28 21:15:06 +00:00
Ken Raeburn
30869211ae (md_atof): Omit warning about FP values.
(line_comment_chars): Add ! to list.
(md_apply_fix): Do process 32- and 64-bit relocations.
1994-02-28 21:13:23 +00:00
Ken Raeburn
c535f6bca6 * configure.in (i960-*-coff, i960-*-vxworks5.*): Use coffbfd, and gas_target
ic960coff.
* config/ic960coff.mt: New file.
* config/obj-coffbfd.h [TC_I960]: Include coff/i960.h.
(TARGET_FORMAT) [TC_I960]: Use coff-Intel-little.
* config/te-ic960.h (CROSS_COMPILE): Don't undef this.  We'll always build
little-endian object files.
* config/tc-i960.c (md_reloc_size): Don't define at all if BFD or
BFD_ASSEMBLER is defined.
(mem_fmt): Since COFF doesn't handle callx relocations yet, treat them like
normal 32-bit relocations.
(md_apply_fix): For callx relocations, store zero.
(tc_bout_fix_to_chars): Store symbol idx for all callx relocations, regardless
of link-relax setting.
(tc_coff_fix2rtype, tc_coff_sizemachdep): New functions.
(i960_handle_align) [! OBJ_BOUT]: If link-relax option is selected, print an
error message and clear it.
* config/tc-i960.h (BFD_ARCH, COFF_FLAGS, COFF_MAGIC, TC_COUNT_RELOC,
TC_COFF_FIX2RTYPE, TC_COFF_SIZEMACHDEP, tc_fix_adjustable): New macros.
(tc_coff_fix2rtype, tc_coff_sizemachdep): Declare.
1994-02-28 21:11:17 +00:00
Ken Raeburn
442f17dc56 (obj_coff_lcomm): Put "#if 0" around the unused parts (most of the function).
(obj_coff_init_stab_section): Cast alloca result.
1994-02-28 21:06:26 +00:00
Ken Raeburn
d193d76268 * lib/gas-defs.exp (objdump): New proc.
(objdump_start): Deleted unused proc.
(objdump_start_common): Merged into objdump_start_no_subdir.

* gas/alpha/fp.exp: Use objdump instead of objdump_start_no_subdir, since the
former actually waits for objdump to finish.  Specify .rdata section only.
Make comment indicate Alpha architecture rather than SPARC.
* gas/alpha/fp.d: Omit .reginfo patterns.  Just use "." to match
against ASCII code 0x2a ("*", special in regexp).
* gas/sun4/addend.exp: Use objdump instead of objdump_start_no_subdir.
1994-02-28 20:00:10 +00:00
Stan Shebs
edd9075caf Sat Feb 26 13:23:06 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (install): Moved here from mpw-build.in.
	* mpw-build.in: Removed, functionality in mpw-make.in
1994-02-26 21:25:10 +00:00
Jeff Law
e03095c9bb * config/tc-hppa.c (hppa_tc_symbol): Call PA ELF BFD version.
(hppa_tc_make_sections): Likewise.
        (pa_build_symextn_section): Delete unused function.
        (hppa_tc_make_symextn_section): Likewise.
        (pa_export): Delete call to pa_build_symextn_section.

        * config/tc-hppa.h (hppa_tc_symbol): Add extern decl.
        (elf_hppa_final_processing): Delete extern decl.
        (hppa_tc_symbol): Delete extern decl.
1994-02-26 04:57:57 +00:00
Ian Lance Taylor
3919ffeb06 * config/obj-coffbfd.c (fill_section): Correct test for whether to
fill a section (from Minh Tran-Le <TRANLE@intellicorp.com>).
1994-02-25 21:16:56 +00:00
Ken Raeburn
f95de5d9fd * read.c (potable): Added ".this_GCC_requires_the_GNU_assembler", which is
ignored by gas, but will cause other assemblers to choke.  Intended for use by
gcc ports that require gas instead of native assemblers.
1994-02-24 16:38:42 +00:00
Jeff Law
2563162846 * gas/hppa/more.parse/parse.exp (no subspace test): Only expect
a failure if gas is not producing an ELF object.
1994-02-24 15:12:50 +00:00
Jeff Law
cb6af92833 * config/ho-hppaosf.h: Fix braino in test for ANSI-C. 1994-02-24 15:11:19 +00:00
Jeff Law
08c5812ce1 * write.c (write_contents): Give the user a reasonable error
message rather than "assertion failed" if bfd_set_section_contents
        fails.
1994-02-24 00:53:24 +00:00
Ken Raeburn
c9c45af14e this is i386-mach3 *host* support (not target like in last mistaken msg)... 1994-02-22 18:09:19 +00:00
Ken Raeburn
75ec0c908b keep te-mach.h 1994-02-22 17:57:49 +00:00
Ken Raeburn
3dcd9356fa Should've got checked in with i386-mach3 config changes.
(Already in change log.)
1994-02-22 17:57:35 +00:00
Ian Lance Taylor
2e5fdb1db0 * ecoff.c (ecoff_build_debug): Don't set hdr->magic here. It is
now set in bfd/ecofflink.c:ecoff_write_symhdr.
1994-02-22 04:30:14 +00:00
Ian Lance Taylor
380fa957e5 * config/obj-coffbfd.c (write_object_file): use bfd_get_error (),
not bfd_error.
	* config/obj-elf.c (elf_frob_file): Likewise.
1994-02-22 03:49:59 +00:00
Ian Lance Taylor
9d90491e82 * read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm
variables.
1994-02-22 03:49:42 +00:00
Ian Lance Taylor
254f845017 PowerPC ELF is now in BFD; fix comment claiming otherwise. 1994-02-22 00:14:02 +00:00
Ian Lance Taylor
c8d02404ea * config/ho-hpux.h (BROKEN_ASSERT): Define if not __GNUC__. 1994-02-21 23:17:59 +00:00
Ian Lance Taylor
9eb5f4b8c6 * read.c (read_a_source_file): Use correct arguments to memcpy
(broken 19 Jul 1993).  From kjd@pescadero.stanford.edu (Kenneth
	Duda).
1994-02-21 19:44:01 +00:00
Ian Lance Taylor
4d88d6dcb3 * config/obj-coff.h (obj_coff_section): Declare.
* config/obj-coff.c (obj_pseudo_table): For "section", use
	obj_coff_section.
	(obj_coff_section): Rewrite.
1994-02-21 02:06:52 +00:00
Ken Raeburn
3eacff1741 update -- keep more stuff recently added 1994-02-18 22:09:23 +00:00
Ken Raeburn
5efa30faad keep new te-mach.h 1994-02-18 22:04:40 +00:00
Ken Raeburn
9e0cbfbbe3 First cut at i386-mach3 support. 1994-02-18 20:08:11 +00:00
Ken Raeburn
06471862ca First attempt at i386-mach3 support.
te-mach.h: New file.
obj-aout.c (obj_aout_frob_file): New function.
obj-aout.h (obj_aout_frob_file): Declare it.
(frob_file): New macro.
tc-i386.c (md_apply_fix_1) [TE_Mach]: Don't adjust pcrel32 relocations.
tc-i386.h (TARGET_FORMAT) [TE_Mach]: Use a.out-mach3.
1994-02-18 19:57:35 +00:00
Ken Raeburn
741f4d6676 write.c (write_object_file): Removed register declarations. 1994-02-18 19:53:26 +00:00
Ken Raeburn
04bde70d04 missed atof-generic log entry last time 1994-02-18 19:41:53 +00:00
Roland Pesch
673b162c1a Correct info about evaluating macro args (distinct from evaluating preprocessor
vars); add version number (1); formatting improvements.
1994-02-18 01:10:24 +00:00
Ian Lance Taylor
5e65fbc84b Some support for PowerPC ELF, although it isn't in BFD yet.
* configure.in: If cpu is powerpc*, use ppc.
	(ppc-*-sysv4*): Use object format elf.
	* config/tc-ppc.h: Only declare a number of things if OBJ_COFF is
	defined.
	(TARGET_ARCH): Make it call ppc_arch.
	(ppc_arch): Declare.
	(TARGET_FORMAT): Set based on OBJ_COFF or OBJ_ELF.
	(NO_STRING_ESCAPES): Define.
	(LOCAL_LABEL, FAKE_LABEL_NAME): Define for OBJ_ELF.
	* config/tc-ppc.c: Only define a number of functions of OBJ_COFF
	is defined.
	(md_pseudo_table): Most pseudo-ops are OBJ_COFF specific.  Added
	OBJ_COFF specific "bi" and "ei".
	(md_parse_option): Fix handling of -u.  Make -m601 set
	PPC_OPCODE_601.  If OBJ_ELF, accept -V and -Q.
	(ppc_set_cpu): New function.
	(ppc_arch): New function.
	(md_begin): Call ppc_set_cpu.
	(ppc_insert_operand): For a signed operand accept an unsigned
	value, for IBM compatibility.
	(ppc_byte): Don't call stringer for strings; instead, treat two
	double quotes as a single double quote.
	(ppc_comm): Set sy_tc.output for a .lcomm symbol.
	(ppc_biei): New function.
	(ppc_tc): If not OBJ_COFF, ignore first argument.
	(ppc_fix_adjustable): Call as_bad_where, not as_bad.
	(ppc_is_toc_sym): New function.
	(md_apply_fix): Use ppc_is_toc_sym.  Handle BFD_RELOC_16 and
	BFD_RELOC_8.
1994-02-17 21:37:32 +00:00
David MacKenzie
f61b81b7c1 * messages.c (as_perror) [BFD_ASSEMBLER]: Use bfd_get_error and
bfd_set_error and new error names.
1994-02-17 18:14:04 +00:00
Roland Pesch
dd565f85bf (1) remove dangling references to old internal sections (pass1, difference)
(2) move explanation of new MIPS options from summary section to MIPS-options
    section; add summaries in appropriate spots.
(3) usual minor rephrasing in passing.
1994-02-16 01:52:25 +00:00
Ken Raeburn
c25be7f4e9 * configure.in: Support i960-vxworks versions > 5.0 as coff.
Default is still bout if no version is specified.
1994-02-16 01:28:59 +00:00
Jeff Law
1e95993e94 * gas/hppa/basic/fmemLRbug.s: New test.
* gas/hppa/basic/basic.exp: Run it.
1994-02-14 17:25:25 +00:00
Roland Pesch
71165d7698 Formatting improvements from first eyeball once-over. 1994-02-12 07:12:40 +00:00