Commit Graph

57 Commits

Author SHA1 Message Date
Ken Raeburn 634233a31b * configure.in: Eliminated all targets using obj-coff but not defining
BFD_ASSEMBLER; I think all such targets that are supported will be matched by
real CPU-OS combinations earlier in the case statement.

(targets *-*-coff*, *-sysv*, *-*-sco*, *-*-sysv32): Deleted.  Made some
comments about the dpx2 configuration, but left it disabled, since it couldn't
be reached before.
(target a29k-amd-ebmonold): Deleted.
1994-03-19 01:24:19 +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 3dcd9356fa Should've got checked in with i386-mach3 config changes.
(Already in change log.)
1994-02-22 17:57:35 +00:00
Ken Raeburn 9e0cbfbbe3 First cut at i386-mach3 support. 1994-02-18 20:08:11 +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
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
Ken Raeburn 34de45f9a6 Enable alpha-*-osf* configuration. 1994-02-07 21:12:55 +00:00
Jeff Law f8693e71a7 * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP. 1994-02-07 00:34:59 +00:00
Ian Lance Taylor 1c11ab0e7f * configure.in (rs6000*): Use cpu_type ppc.
(ppc-*-aix*): New target; use coff and force bfd_gas.
1994-02-05 05:38:24 +00:00
Ken Raeburn 5677c0288d * configure.in: Handle host vax-*-ultrix* like vax-*-bsd*. Don't bother with
*-*-ultrix or *-*-sysv*, except *-*-sysv, since only the last has an existing
host support file.  Do handle vax-bsd and vax-ultrix targets.
1994-01-30 23:31:44 +00:00
Ken Raeburn 69ecc03f3d Oops. Didn't mean to change reject_dev_configs. 1994-01-14 01:55:59 +00:00
Ken Raeburn 420065a54e * configure.in (i386-*-netbsd*): New target, using te-netbsd.h.
(i386-*-netbsd0.8): New target, like 386bsd.

* configure.in: Set BFDDEF in Makefile to "define" or "undef".
* Makefile.in (config.h): Protect against multiple inclusions.  Define or undef
BFD_ASSEMBLER as specified by $(BFDDEF).
(ALL_CFLAGS): Omit $(BFDDEF).
1994-01-13 21:24:27 +00:00
Steve Chamberlain 816153a3e3 Recognise SH. 1993-12-11 19:21:19 +00:00
Ian Lance Taylor 00f4e65966 * configure.in (mips-*-irix5*): New target. Use elf and mips-big. 1993-11-17 23:26:43 +00:00
David Henkel-Wallace 5f8a378823 netware target support. 1993-11-08 14:22:06 +00:00
Ken Raeburn 8cac6ca6e2 Set bfd_gas for all sparc targets. Added facility for keeping or rejecting
configurations still under development; default is to assume production
environment, and reject configs still being worked on.  Mark Elf configurations
(except sparc and i386) as developmental.  Deleted cases matching some generic
names in favor of more specific names.  (E.g., when we get Alpha
support, we'll still only support VMS for Vax.)
1993-10-21 19:50:06 +00:00
David D. Zuhn 84873870d7 add i386-lynx support 1993-07-20 19:18:13 +00:00
Ian Lance Taylor c978e704a9 * Preliminary support for m88k-coff.
* configure.in (m88k-*-coff*): New target.  Use coffbfd and
	m88kcoff.
	* config/m88kcoff.mt: New file.
	* read.c (lex_type): New macro LEX_AT to set lex type of '@'.
	(pseudo_set): Handle difference of symbols in different fragments
	by saving the entire expression as the value of the symbol.
	* symbols.c (resolve_symbol_value): Resolve difference
	expressions.
	* config/obj-coffbfd.c (obj_pseudo_table): If TC_M88K, accept
	"sdef" as a synonym for "def".
	* config/obj-coffbfd.h: If TC_M88K, include coff/m88k.h and set
	TARGET_FORMAT.
	(S_IS_LOCAL): Any symbol which includes \001 in the name is local.
	* config/tc-m88k.c, config/tc-m88k.h: Numerous changes to bring
	m88k port up to date, and to add COFF support.
1993-07-15 16:02:21 +00:00
David Edelsohn 07ef2075f5 Recognize h8300h.
Make sparc64-*-aout* use bfd gas.
1993-07-14 16:35:04 +00:00
David D. Zuhn 00a737d37c put CROSS definition into the Makefile 1993-07-08 19:19:31 +00:00
David D. Zuhn 8f4b91429e define CROSS is cross compilation 1993-07-08 03:15:36 +00:00
David D. Zuhn a828550492 fix HPUX hosting problems 1993-06-29 17:22:03 +00:00
Steve Chamberlain cb0b800b0e Added alpha as host. 1993-06-04 23:02:19 +00:00
Ian Lance Taylor 47fcc4f54a * configure.in (mips-*-ecoffl*): New target; use ecoff and
mips-lit.
	(mips-*-ecoff*): Added trailing '*'.
1993-06-04 19:39:20 +00:00
Ken Raeburn 7cf4d7ff1a hp300 support. Emulation mode fix for 386bsd and linux.
Reworded some messages.
Warn if bfd-assembler explicit selection on command line is overridden by
target requiring it be set.  (No targets override to clear currently.)
1993-05-05 20:50:53 +00:00
Ian Lance Taylor ed364bb694 * config/ho-irix.h: New file; if not gcc, define BROKEN_ASSERT.
* configure.in (mips-sgi-irix*): Set gas_host to irix.
1993-04-02 16:57:17 +00:00
Ken Raeburn f70a4714c9 First crack at a test suite. 1993-03-29 13:27:13 +00:00
David D. Zuhn 2a697fa47f consistent use of -solaris2* 1993-03-13 02:52:21 +00:00
Ken Raeburn 4f6f4aa873 accept m683??, not just m683?2 1993-03-12 03:04:32 +00:00
Ian Lance Taylor 85825401dc Wed Dec 30 10:18:57 1992 Ian Lance Taylor (ian@cygnus.com)
* app.c, config/tc-*.c: Don't include read.h, since it is already
	included by as.h.

	* These are based on patches from Minh Tran-le
	<mtranle@paris.intellicorp.com>.
	* configure.in (i[34]86-ibm-aix*): Accept i486 for host.  Use
	obj_format coffbfd and gas_target i386coff for target.
	(i[34]86-*-isc*): New host (uses sysv).
	* config/i386aix.mt: Removed (no longer used).
	* config/mh-i386aix (RANLIB): Use true rather than /bin/true.
	(MINUS_G): Removed.
	(LDFLAGS): Added, defined as -shlib.
	* config/te-i386aix.h (REVERSE_SORT_RELOCS): Undefine.
	* config/te-sco386.h (LOCAL_LABEL): Don't define.
	(DOT_LABEL_PREFIX): Define.
	* expr.c (operand): If DOT_LABEL_PREFIX, use .L0\001 as a label
	name rather than L0\001.
	* read.c (s_lcomm): Make a frag in SEG_BSS rather than using
	local_bss_counter.
	* symbols.c, symbols.h (local_bss_counter): Removed.
	* write.c (write_object_file): bss no longer uses
	local_bss_counter.  Pass correct data and bss size to
	VMS_write_object_file.
	* config/obj-vms.c (VMS_write_object_file): Accept bss size as
	argument, rather than using local_bss_counter.
	* config/tc-m88k.c (s_bss): Don't use local_bss_counter.
	* config/tc-sparc.c (s_reserve): Don't use local_bss_counter.
	* config/obj-coffbfd.c (had_lineno, had_reloc): Removed.
	(size_section): Restored sanity check.
	(do_relocs_for): Base section address on s_paddr rather than
	computing it.  Adjust a29k R_IHIHALF special case to account for
	section paddr (used to require paddr to be zero).  If there are no
	reclos, set s_relptr to 0.  Set relocation size in object_headers.
	(fill_section): Always set s_vaddr here, removing
	ZERO_BASED_SEGMENTS case.  Force s_scnptr for bss to 0.  Don't set
	NOLOAD for i386 .bss, because it confuses the SVR3 native linker.
	Set STYP_INFO for .comment.
	(coff_header_append): Use object headers and H_{SET,GET}_* macros.
	Make aouthdr writing depend on OBJ_COFF_OMIT_OPTIONAL_HEADER.
	(crawl_symbols): Handle 8 character section name correctly.  Use
	H_{SET,GET}_* macros.
	(do_linenos_for): Set lineno size in object_headers.
	(write_object_file): Use H_{SET,GET}_* macros.  Don't bother to
	set s_vaddr here.  If string_byte_count remains 4, set it back to
	0, and only write strings out if there are some.  Call
	fill_section before do_relocs_for and do_linenos_for.
	(obj_coff_section): Handle optional quoted second argument giving
	section characteristics.
	(obj_coff_bss): Added to handle .bss.
	(obj_coff_ident): Added to handle .ident (puts string in .comment
	section).
	(obj_coff_lcomm): Put common symbols in .bss, not .data.
	(fixup_mdeps): Change to segment.  Call frag_wane after
	md_convert_frag.
	(fixup_segment): Explicitly check S_IS_COMMON before making 386
	adjustment (already happened only for common symbols, but this is
	clearer).
	* config/obj-coffbfd.h (OBJ_COFF_OMIT_OPTIONAL_HEADER): Define.
	* config/tc-i386.c (s_bss): Don't use if I386COFF.
	(md_pseudo_table): Ignore .optim and .noopt.
	(tc_coff_sizemachdep): New function.
	* config/tc-i386.h (REVERSE_SORT_RELOCS): Undef, for SVR3
	compatibility.
	(LOCAL_LABEL): Removed definition.
	(DOT_LABEL_PREFIX): Defined.
1992-12-30 20:34:14 +00:00
Ken Raeburn 6efd877de5 Ran "indent", for GNU coding style; some code & comments still need fixup.
Removed some unneeded files.

configure.in: Don't look for te-386bsd.h, which doesn't exist...
1992-11-23 20:39:57 +00:00
Mark Eichin 6ea6d0e3c1 add sparclite-fujitsu-none, since it was only getting set via the default
branch in the old configure.in
1992-11-12 12:55:48 +00:00
Ian Lance Taylor 653912459d Tue Oct 20 12:18:08 1992 Ian Lance Taylor (ian@cygnus.com)
* configure.in: i386-sysv and i386-sco use coffbfd.
1992-10-20 20:09:45 +00:00
David D. Zuhn 0f8b9790a1 use sysv config for solaris2 hosting 1992-10-12 02:10:51 +00:00
Mark Eichin 984cf2d71a support 386bsd target, from p3 1992-10-05 08:33:10 +00:00
Steve Chamberlain 28c8c50b43 Support for 386 coff 1992-09-11 17:23:31 +00:00
Ian Lance Taylor b53ccaacae Wed Sep 9 11:06:25 1992 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in: use gas_target instead of modifying target_cpu.
	From Steve Chamberlain:
	Makefile.in: Handle m68*-*-coff*.
	read.c, read.h: add mult argument to s_space
1992-09-09 18:37:27 +00:00
Steve Chamberlain ab737e518d * listing.c (buffer_line): rewind to the start of include
files, they might be included twice.
1992-08-25 22:16:39 +00:00
Ian Lance Taylor afba2b2286 Renamed OSE configuration to ose. 1992-08-24 22:32:46 +00:00
Ian Lance Taylor 4b85771064 Moved in from p3:
Tue Aug 18 14:16:38 1992  Ian Lance Taylor  (ian@cygnus.com)

	* Makefile.in: always create installation directories.  Removed
	MINUS_G, set CFLAGS to default to -g, added FLAGS_TO_PASS, passed
	FLAGS_TO_PASS to recursive makes.
1992-08-18 21:24:59 +00:00
Ken Raeburn 03bb29bf79 (&!@# CVS breakage...)
* configure.in (mips host): Accept "ultrix" with version number.

        * expr.c (floating_constant): Separate "=-" to avoid confusing
        ancient or broken compilers.
1992-08-01 02:15:14 +00:00
Jim Wilson dfd53fe988 Recognize sparclite as a sparc variant. 1992-05-28 18:22:42 +00:00
Steve Chamberlain 4ca727c45f Added h8300xray target 1992-05-01 22:02:21 +00:00
K. Richard Pixley 8c1b25e4b1 * configure.in: vxworks68 gets te-sun3.h.
* expr.c: remove limitation that local_labels_dollar or
	  local_labels_fb must be < 10.

	* symbols.c: remove local_labels_dollar, replace with a function
	  interface for a sparse array.  All users adjusted.
1992-03-12 12:47:36 +00:00
K. Richard Pixley 6d5460ab89 changes from Minh Tran-Le <TRANLE@INTELLICORP.COM> to support i386
coff as it appears to be used on aix386.
1992-02-21 11:04:51 +00:00
K. Richard Pixley 79a54a5b52 doc. bring it in, use it. 1992-02-21 09:05:26 +00:00
K. Richard Pixley 8b228fe958 force all files to end in "/* end of filename" 1992-02-13 09:13:54 +00:00
K. Richard Pixley 1058238c60 Fri Dec 6 23:16:43 1991 K. Richard Pixley (rich at rtl.cygnus.com)
* Makefile.in: install using INSTALL_DATA and INSTALL_PROGRAM.
	  correct include directory locations. added standards.text
	  support.

	* configure.in: mark this directory as target dependent.

Thu Dec  5 22:46:23 1991  K. Richard Pixley  (rich at rtl.cygnus.com)

	* Makefile.in: idestdir and ddestdir go away.  Added
	  copyrights and shift gpl to v2.  Added ChangeLog if it
	  didn't exist. docdir and mandir now keyed off datadir by
	  default.
1991-12-07 07:19:08 +00:00
Steve Chamberlain ada269da87 Made ebmon29k use coff-bfd backend 1991-11-29 01:03:25 +00:00
Steve Chamberlain ace68c4ed9 Mon Nov 25 17:26:22 1991 Steve Chamberlain (sac at cygnus.com)
* as.c: (perform_an_assembly_pass): moved declaration of i to
	avoid a syntax error. Now always create the three default
	sections when in MANY_SEGMENTS mode.
	* as.h: New improved way of specifying MANY_SEGMENTS
	* configure.in: hds object format is now coff-bfd
	* subsegs.h: add line numbers and section stuff to the
	segment_info structure. (But go back later and fix.. this is
	COFF specific)
1991-11-26 02:15:13 +00:00