Commit Graph

321 Commits

Author SHA1 Message Date
Steve Chamberlain da6745fd68 * coff-m88k.c, targets.c: change name of m88k_bcs to m88kbcs 1991-10-28 01:18:01 +00:00
Steve Chamberlain 01dd1b2b47 Sun Oct 27 16:56:58 1991 Steve Chamberlain (steve at cygnus.com)
* configure.in: add motorola delta88 cases
	* libbfd.h, libbfd-in.h, archive.c, ieee.c, elf.c, srec.c: fix
	write_armap prototype
	* libbfd.c: add doc on bfd_write_bigendian_4byte_int
1991-10-28 01:08:51 +00:00
Steve Chamberlain 2f192e9b95 Initial revision 1991-10-28 01:00:06 +00:00
John Gilmore 156e38523a * Rename COFF-related files in `coff-ARCH.c' form.
coff-a29k.c, coff-i386.c, coff-i960.c, coff-m68k.c, coff-m88k.c,
coff-mips.c, coff-rs6000.c to be exact.
1991-10-25 10:17:52 +00:00
John Gilmore 4a29cb1e7e * Makefile.in: Only supply TARGET_DEFAULTS to targets.c, reducing
make output clutter.
1991-10-25 09:49:37 +00:00
John Gilmore db138ce2a7 Update doc on how to define an architecture for "mh" change. 1991-10-25 08:03:08 +00:00
John Gilmore cc97dfbba7 RS/6000 support 1991-10-25 07:16:59 +00:00
John Gilmore ba9137fe2d Initial revision 1991-10-25 07:16:56 +00:00
John Gilmore cbdc790909 RS/6000 support, by Metin G. Ozisik, Mimi Phûông-Thåo Võ, and John Gilmore. 1991-10-25 07:06:02 +00:00
John Gilmore ae9cce45ff Updates to h-vaxult.h from David Taylor. 1991-10-25 02:21:52 +00:00
Steve Chamberlain 7e993cab28 Removed some debug 1991-10-25 02:13:56 +00:00
Steve Chamberlain 4b39ad32c1 Now uses mt- and mh- rather than tmake and hmake files 1991-10-24 21:36:40 +00:00
Fred Fish e0796d2213 Add partial support for ELF format corefiles. Still needs code to extract
register values from corefiles and make them available to bfd clients.
1991-10-24 10:26:26 +00:00
Fred Fish 7b71de814a In config/t-m68k-elf, set DEFAULT_VECTOR to elf_big_vec. 1991-10-24 09:16:41 +00:00
Fred Fish dcc23cb9aa Document changes to some bfd config files. 1991-10-24 09:06:06 +00:00
John Gilmore 30ff2d72e0 Remove malloc/free decls covered in stdlib.h. From David Taylor. 1991-10-22 00:49:54 +00:00
Steve Chamberlain 33a782f1d2 * coffcode.h (coff_compute_section_file_positions): make it pad
section size out if there are alignment restrictions so that the
	image will be ok on a system where section positions are worked
	out by accumulating sizes rather than from the section headers.
1991-10-21 23:58:49 +00:00
Steve Chamberlain 14dd454bea Changed minimum section alignment 1991-10-21 22:55:06 +00:00
Steve Chamberlain f58809fd41 * targets.c (proto write_armap). Changed orl_count to unsigned.
* opncls.c (bfd_close_all_done). Added so that generative
	programs like gas can close a bfd without causing bfd confusion.
	* libbfd.h (changed becuase of protos)
	* amdcoff.c: messed with the way that jmp displacements are
	calcualated. This may not yet be totally correct.
	* archive.c (coff_write_armap): rewrote the way that ranlibs are
	written out.
	* coffcode.h (fixup_symbol_value): now doesn't core dump if a non
	abs symbol has no section (like a register symbol).
	(coff_write_symbol) now zeros auxent before filling it up to help
	with sensitive applications.
	* libbfd.c (bfd_write_bigendian_4byte_int): added.
1991-10-21 16:42:54 +00:00
Per Bothner 35c90743a0 Make perror arg be CONST to avoid warning,
and remove duplicate declaration of perror.
1991-10-17 22:31:26 +00:00
John Gilmore b271fff21f * hosts/h-tahoe.h: Add FASCIST_FDOPEN and NO_CORE_COMMAND; revamp HOST_*, etc.
* hosts/h-i386v.h:  Use <utime.h>, not <sys/utime.h>, unlike POSIX.
1991-10-17 06:04:35 +00:00
John Gilmore a3ae208f8a sparc-64 to sparc-ll 1991-10-16 21:41:27 +00:00
Per Bothner 314f3eeda3 * archive.c (bsd_write_argmap): The size of the ranlib structures
should not include teh size field itself.
	* aoutx.h, libaout.h (NAME(aout, sizeof_headers)):  Use
	adata(abfd)->exec_bytes_size field instead of constant macro,
	because aoutx.h compiles to a simple .o file shared by
	all 32-bits a.out targets.
1991-10-16 19:50:08 +00:00
John Gilmore 282effc79f Allow i386-sco-sysv.
Updates from my internet testing for gdb-4.2.
1991-10-16 18:59:59 +00:00
John Gilmore 0fa4f690d6 * host-aout.c: New strategy. We use common code, include files,
and data structures to handle the file, but set a few parameters
from the host's config file (page size, text start addr, etc).
* libaout.h:  Define HP BSD machine types.
1991-10-16 18:57:16 +00:00
John Gilmore 637942e4db * trad-core.c: Pass the u.u_ar0 value as the negative of the
virtual-memory-address of the .reg section.  We can't just make a
section for "all the regs and nothing else" because only GDB knows
exactly where the regs are (scattered around the upage and stack).
Clean up memory allocation.  Remove big- and little-endian
vectors, replace with single vector; this only runs on the host,
in host byte order.  Replace byteswap routines with aborts in case
anyone calls them.
* targets.c:  There's only one trad_core_vec now.
* aoutf1.h (sunos_core_file_p):  VMA of .reg* now needs to be 0.
1991-10-16 18:56:07 +00:00
John Gilmore 52bcb9e3ca sparc-64 to sparc-ll 1991-10-16 01:45:32 +00:00
John Gilmore a928109bf0 Convert dec3100 to decstation. 1991-10-16 01:10:42 +00:00
John Gilmore 7b02b4ed6f * hosts/h-amix.h (free): Fix prototype.
* aoutx.h:  Don't use NULL as an integer, for braindead systems
that declare it as (void *)0.  (From Peter Schauer.)
1991-10-15 23:41:17 +00:00
John Gilmore 8c8af913b2 * hosts/h-amix.h (free): Fix prototype. 1991-10-15 21:52:18 +00:00
Per Bothner 90c7c72088 Add hosts directory. 1991-10-15 07:29:13 +00:00
Per Bothner fd671dc421 * aoutx.h (NAME(aout,set_section_contents)): Try to handle the
various kinds of alignments for the various kinds of
	magic numbers.
1991-10-15 00:24:03 +00:00
John Gilmore a7a7b848a5 Don't assume . is on the path. 1991-10-14 21:23:05 +00:00
John Gilmore fa744079c1 Update for new bfd/hosts. 1991-10-12 07:38:07 +00:00
John Gilmore f02be00a6d * Makefile.in: Avoid Sun Make VPATH bugs.
* targets.c:  Declare trad_core vectors extern.
1991-10-12 05:45:57 +00:00
Per Bothner 71fa3b0161 * coffcode.h: Moved ALIGN macro to libbfd.h. Removed i960_align.
* libbfd.h: Moved ALIGN macro here.
	* bout.c (b_out_callback): Replace i960_align by align_power.

	* libaout.h (struct aoutdata):  Added fields page_size,
	segment_size and exec_bytes_size.  These help generic code
	(in aoutx.h and libaout.h) to figure out where to align
	the various segments in a demand paged file.
	* libaout.h (WRITE_HEADER):  Use new (struct aoutdata) fields
	to decide if the exec header counts in a_text (text segment size).
	Also, assume D_PAGED flag is set; don't set it here.
	* bout.c (b_out_callback): Add initialization of
	adata fields page_size, segment_size, and exec_bytes_size.
	* host-aout.c (NAME(host_aout, callback) and
	NAME(host_aout,mkobject): Ditto.
	* i386aout.c (aout386_callback) and new aout386_mkobject): Ditto.
	* newos3.c (newsos3_callback) and new newsos_mkobject): Ditto.
	* aoutf1.c (sunos4_callback) and new sunos_mkobject): Ditto.
	* aoutx.h (NAME(aout,some_aout_object_p)): Don't subtract
	EXEC_BYTES_SIZE from the a_test size; this is only appropriate
	for some systems (mainly sunos), so do it in the callback instead.
	Same routine: Add stuff to the THIS_IS_ONLY_DOCUMENTATION comment.
	* aoutx.h (NAME(aout,set_section_contents): Change the way
	filepos and size of sections are carried out to support
	older styles of demand paged executables.
1991-10-11 20:45:29 +00:00
Steve Chamberlain 0d74098420 * bfd-in.h: Added more macros to COFF_SWAP_TABLE.
* bfd.c: Added macros to enable gas to swap coff records.
	* coffcode.h: Make the coff_swap_*_out routines return the number
	of bytes swapped, and cleaned up their prototypes.
	* configure.in: Added ebmon/coff support
	* ecoff.c: Changed null definitions of coff_swap_*_out to conform
	to new prototypes
	* targets.c: Added new entry points for coff swapping
1991-10-11 19:39:29 +00:00
John Gilmore 23d44ec958 Remove refs to ../include/sysdep.h. 1991-10-11 12:48:25 +00:00
John Gilmore 2c3f93e56d Initial revision 1991-10-11 10:45:56 +00:00
John Gilmore 5b2765bf13 Restructure configuration scheme for bfd, binutils, ld.
* include/sys/h-*.h:  Move to bfd/hosts/h-*.h.
* configure.in:  Revise to symlink sysdep.h to hosts/h-xxx.h.
Change some config names to match other dirs.
* *.c:  Include bfd.h before sysdep.h, so ansidecl and PROTO()
get defined first.
* Makefile.in:  Use -I. to get sysdep.h.
* trad-core.c:  Don't disable the whole file if SUN4_SYS.
* config/:  Rename some config files to match up h-*.h names.
Remove all the HOST_SYS definitions from the config files.
* hosts/h-amix.h, h-i386v.h:  Define POSIX_UTIME, not USG.
* hosts/h-hp9000.h:  Remove USG comment.
* hosts/h-rs6000.h:  Include <stdlib.h> for malloc.
* hosts/h-news.h, h-sparc-64.h:  New config files that had
previously been kludged in the <sysdep.h> file.
1991-10-11 10:43:34 +00:00
John Gilmore 06d0bdef53 * hosts/h-amix.h, h-i386v.h: Define POSIX_UTIME, not USG.
* hosts/h-hp9000.h:  Remove USG comment.
* hosts/h-rs6000.h:  Include <stdlib.h> for malloc.
* hosts/h-news.h, h-sparc-64.h:  New config files that had
previously been kludged in the <sysdep.h> file.
1991-10-11 10:41:22 +00:00
John Gilmore 239326c84f Restructure configuration scheme for bfd, binutils, ld.
Use -I. to get sysdep.h.
1991-10-11 10:29:54 +00:00
John Gilmore bbc8d4849f Include bfd.h before sysdep.h, so ansidecl and PROTO() get defined first. 1991-10-11 10:11:37 +00:00
John Gilmore 600d486408 Remove dead N_TXTOFF override.
Include bfd.h before sysdep.h, so ansidecl and PROTO() get defined first.
1991-10-11 10:09:28 +00:00
John Gilmore dd4646ca3a Include bfd.h before sysdep.h, so ansidecl and PROTO() get defined first.
Don't ever call trad_unix_core_file_p from here.
1991-10-11 10:08:58 +00:00
John Gilmore 6a46902732 * Makefile.in: Rename XDEPFILES.
* trad-core.c:  Document how to use it nowadays.
* i386aout.c, newsos3.c:  Clean up.
* i386coff.c:  Allow 386 coff files to be used as core files too
(for reading core files from embedded systems).
1991-10-11 04:51:42 +00:00
John Gilmore b7de6963d4 Add i386aout.c 1991-10-08 22:31:52 +00:00
Per Bothner 569ef29be1 Added MISSING_VFPRINTF 1991-10-08 22:30:57 +00:00
John Gilmore 243f4d0af1 Add errno, for binutils. 1991-10-08 22:28:10 +00:00
Roland Pesch a6fe7eeb1e doc/Makefile: stop hiding complaints from makeinfo. 1991-10-08 19:20:58 +00:00