Commit Graph

984 Commits

Author SHA1 Message Date
Per Bothner
df6dfda7fb * elf32-hppa.c (elf_hppa_reloc_type_lookup): Cast enums to
int, for the sake of the old Portable C Compiler.
1993-05-05 23:12:11 +00:00
Fred Fish
cc8e9e5b5f * trad-core.c (NO_SIGNED_GET): New macro.
* trad-core.c (trad_core_vec):  Use new NO_SIGNED_GET instead of
	signed NO_GET, where appropriate.
1993-05-02 21:53:13 +00:00
Fred Fish
772b5e9b59 * configure.in (i[34]86-*-linux*): Add; bfd_target = i386-linux.
* configure.in (*-*-linux*):  Remove until linux port for a
	non-i386/i486 system is actually available.
1993-05-02 18:43:09 +00:00
Stu Grossman
b2057735d8 * libhppa.h: #undef e_* symbols which come from <machine/som.h>
when compiling under HPUX.
1993-05-01 03:05:18 +00:00
Stu Grossman
d325e28cfd * The following patches are from Jeffrey Law <law@cs.utah.edu>.
* hppa.c (hppa_core_file_p): Provide a temporary dummy routine
	for HOST_HPPABSD.
	* bfd/hosts/hppabsd.h: Fix declarations of malloc and free.
	* bfd/libhppa.h: Include sysdep here.  Conditionalize
	includes based on HOST_HPPAHPUX or HOST_HPPABSD.
	Provide definitions for MAXCOMLEN and _PA_RISC_ID suitable
	for BSD.
1993-05-01 00:57:03 +00:00
Ken Raeburn
89c88702c0 Don't include system a.out.h in elf32-hppa.c.
Apparently include/aout/*.h isn't needed either, so just omit it.
Should compile on Solaris now...
1993-04-30 21:49:02 +00:00
Jim Kingdon
9e768fa213 * coffcode.h: use dummy_reloc16_extra_cases rather than casting abort. 1993-04-30 17:22:39 +00:00
Ken Raeburn
19e0e2211c Log for changes already checked in today.
(Yes, this changelog entry is well tested and reasonably localized. :-)
1993-04-29 22:05:53 +00:00
Ken Raeburn
c268b400ad keep hp300hpux and hppa-elf files 1993-04-29 16:10:34 +00:00
Ken Raeburn
18f81c053a hppaosf target support 1993-04-29 15:59:58 +00:00
Ken Raeburn
8ddd7ab3a9 fixed up to use elf32-target.h 1993-04-29 15:48:49 +00:00
Ken Raeburn
fb6e80d50b hppa support, initial linker support 1993-04-29 15:48:35 +00:00
Ken Raeburn
8568acaa92 new reloc enum types 1993-04-29 15:38:41 +00:00
Ken Raeburn
db232882e0 copyright; gas changes 1993-04-29 15:36:54 +00:00
David MacKenzie
9773646c14 Fix an unclear sentence. 1993-04-29 05:49:07 +00:00
David MacKenzie
20a9ac229e Clean up English and Texinfo usage. 1993-04-29 03:45:24 +00:00
Ken Raeburn
bafe0602a0 checkpoint hp300hpux code from HP; needs cleanup before using 1993-04-28 22:56:31 +00:00
Ken Raeburn
4c85cbfac5 checkpoint hppa-elf code from Utah (Sanitize out until it's cleaned up & working) 1993-04-28 22:55:25 +00:00
Ken Raeburn
9eb73722ae add new field for subformat (for hp300 work) 1993-04-28 22:52:50 +00:00
Ken Raeburn
ae06054e4b allow overrides of armap defaults 1993-04-28 22:49:48 +00:00
Steve Chamberlain
9faacb925f Support for Hitachi SH 1993-04-27 01:17:32 +00:00
Jim Kingdon
31568a6f41 * trad-core.c (trad_unix_core_file_p): Check the file size. 1993-04-26 21:03:35 +00:00
Ian Lance Taylor
e5351028c7 * sco-core.c (sco_core_vec): Add initializers for new target
fields.
1993-04-26 18:27:40 +00:00
Jim Kingdon
35d835c405 * coffcode.h [_LIT]: Recognize .lit section. 1993-04-25 04:45:31 +00:00
Steve Chamberlain
5f8f6d56f2 Support for the alpha 1993-04-24 02:10:09 +00:00
Stu Grossman
9a5e3a9ac5 * Merge in HPPA/BSD changes from Utah.
* hppa.c:  Use this for both HPUX & BSD.
	* targets.c:  Enable hppa_vec for both HPUX & BSD.
	* config/hppabsd.mt:  TDEFINES => TDEFAULTS.
	* hosts/hppabsd.h:  #define HOST_HPPABSD.
1993-04-24 00:00:41 +00:00
John Gilmore
5e6d9f49be * libbfd.c: Whitespace changes around byteswap macros.
* libbfd-in.h:  Whitespace changes around byteswap declarations.
1993-04-21 09:31:42 +00:00
Stu Grossman
d4152352a8 * aoutf1.h (sunos4_core_file_p): Don't default bfd_error to
system_error anymore.  It confuses bfd_check_format().
1993-04-20 23:00:58 +00:00
Stu Grossman
8171711b53 * bfd.c: Add sgi_core_data to tdata union.
* coff-mips.c:  Add Irix 4.x core file support.
	* hosts/irix4.h:  #define HOST_IRIX4.
1993-04-20 06:11:51 +00:00
Ken Raeburn
0f213cc206 a.out string table reduction code, take two.
Also fixed a bug in reading symbol tables on some systems...
1993-04-20 02:00:01 +00:00
Fred Fish
d9fc59c93f * trad-core.c (trad_core_vec): Add 6 new initializers to match
new signed get/put fields.  Minor reformatting to label
	  some fields.
1993-04-19 23:56:57 +00:00
Jim Kingdon
3f06498af4 changes for SVR3.2 1993-04-19 18:34:55 +00:00
Jim Kingdon
7e4db2548b * libbfd.c: bfd_put*: Remove casts to bfd_vma. 1993-04-19 13:35:48 +00:00
Jim Kingdon
250351fc75 * aoutf1.h (internal_sunos_core): Make c_stacktop a bfd_vma.
(swapcore_sparc): Make sp a bfd_vma.
1993-04-17 01:44:18 +00:00
Jim Kingdon
14e3c2e47d * libbfd.c: Add signed versions of bfd_{h_,}{get,put}_signed_<size>.
libbfd.c, libbfd-in.h: Add _do*signed*.
	targets.c, all targets: Add bfd*signed*.
	bfd-in.h: Add bfd_signed_vma.  Add comments.
1993-04-17 00:39:36 +00:00
Jim Kingdon
34b6a8c305 Thu Apr 15 09:09:18 1993 Jim Kingdon (kingdon@cygnus.com)
* bfd-in.h (bfd_error), bfd.c (bfd_errmsgs): Add file_truncated.

	* format.c (bfd_check_error): Check error return from
	_bfd_check_format routines.

Wed Apr 14 23:48:25 1993  Jim Kingdon  (kingdon@cygnus.com)

	* rs6000-core.c (rs6000coff_core_p): Improve error checking and
	recognize .data section if present.
1993-04-15 19:29:51 +00:00
John Gilmore
a99c3d7094 * aoutx.h (aout_*_adjust_sizes_and_vmas): Avoid `sanity'
check for the case where the user sets the address of the BSS
section (and the file header can't specify this).  Let the user
set it wherever they want, regardless of what goes in the header.

Fixes #ld/1826 (the fix was never checked in by Steve or Ken).
1993-04-15 08:44:58 +00:00
John Gilmore
b07d03ba16 Fix minor merge botch in prev change. 1993-04-15 08:19:43 +00:00
John Gilmore
7185848601 * ieee.c (ieee_slurp_sections): Pass all ieee section names
straight through into BFD sections.  Add comments.
1993-04-15 08:05:31 +00:00
John Gilmore
b6090f4d65 Cleanup in preparation for better 64-bit host support.
* bfd-in.h (bfd_64_type):  Remove.
* libbfd.c (_do_getb64, _do_putb64):  Use bfd_vma, not bfd_64_type.

* bfd-in.h (bfd_size):  Remove.

* bfd-in.h (bfd_offset):  Remove, after fixing ld/ldlang.[ch].

* bfd-in.h (bfd_word):  Remove.
* reloc.c (reloc_howto_type):  Replace bfd_word with bfd_vma.

* bfd-in.h (rawdata_offset):  Remove.
* reloc.c (arelent):  Replace rawdata_offset with bfd_size_type.
(bfd_perform_relocation):  Lint.
(enum bfd_reloc_status):  Comment cleanup.
1993-04-15 04:53:14 +00:00
John Gilmore
8f8fefccf5 * aout-adobe.c, cpu-h8300.c, mipsbsd.c, srec.c: lint -Wall. 1993-04-15 04:52:32 +00:00
Ken Raeburn
79f1d6a385 kill it dead 1993-04-13 05:32:52 +00:00
John Gilmore
d0b09ced76 Clean up old comments 1993-04-12 21:18:31 +00:00
Ian Lance Taylor
36c0a1ec22 * config/sun3.h: String argument to fprintf is const. 1993-04-09 18:50:36 +00:00
Ian Lance Taylor
032250cda4 * coff-mips.c: Renamed PAGE_SIZE to ROUND_SIZE, to avoid confusion
on systems which define PAGE_SIZE in <limits.h>.
1993-04-09 17:48:10 +00:00
Peter Schauer
98a445b0fa * trad-core.c (trad_unix_core_file_failing_signal): Use new macro
TRAD_UNIX_CORE_FILE_FAILING_SIGNAL to allow host files to specify
        the core file failing signal.
        * hosts/decstation.h (TRAD_UNIX_CORE_FILE_FAILING_SIGNAL): Define
        to supply the core file failing signal.
1993-04-08 17:30:28 +00:00
Ian Lance Taylor
a6235cbbc2 * coff-mips.c (PAGESIZE): Correct value.
With the wrong PAGESIZE everything worked just fine, with one
exception: emacs couldn't dump itself.
1993-04-07 18:34:25 +00:00
Ian Lance Taylor
46bc1bf6ba These changes make shared library support work again on 386 COFF
systems.

	* coffcode.h (styp_to_sec_flags): Set SEC_SHARED_LIBRARY for a
	STYP_NOLOAD | STYP_BSS section.  Don't set SEC_NEVER_LOAD for a
	STYP_INFO section.
	(coff_compute_section_file_positions): Force vma and lma of _LIB
	section to be zero.
	(coff_set_section_contents): Count number of entries in new lma
	field, not in vma.
	* coffgen.c (make_a_section_from_file): Force lineno_count of
	SEC_SHARED_LIBRARY section to be zero, since it is non-zero on the
	SCO 3.2v4 shared library.
	* seclet.c (rel): Copy over any section with contents, not just
	loadable sections.

	* coff-mips.c (ecoff_make_empty_symbol): Zero out newly allocated
	symbol.
1993-04-06 00:53:41 +00:00
Ian Lance Taylor
3cb4caa6b5 This makes ld -r work for i386-coff targets.
* coff-i386.c (coff_i386_reloc): New function, to generate
	relocateable output correctly.
	(howto_table): Use coff_i386_reloc for all reloc types.
	(CALC_ADDEND): Use a more efficient hack to get the correct addend
	for a common symbol.
	(i386comm_value): Removed; no longer needed.
1993-04-05 20:09:58 +00:00
Steve Chamberlain
77f31b05cc *** empty log message *** 1993-04-04 22:12:22 +00:00
Steve Chamberlain
55c95b041a * coffcode.h (coff_set_section_contents): Don't write out
> >> 	* coffcode.h (coff_set_section_contents): Don't write out sections without a filepos.
1993-04-04 22:12:06 +00:00
Ian Lance Taylor
b580c2b543 * seclet.c (seclet_dump_seclet): Correct SEC_HAS_CONTENTS test. 1993-04-02 22:36:04 +00:00
Steve Chamberlain
21c7770362 * aoutx.h (translate_from_native_sym_flags): Now handles indirect
symbols in a better way. (translate_to_native_sym_flag): Set the
	N_INDR bit when necessary. (aout<>slurp_symbol_table): Maintain
	indirect state.
	* section.c: Added BFD_IND_SECTION_NAME and bfd_ind_section.
	(bfd_make_section): Cope with new builtin section.
	* syms.c (bfd_decode_symclass): Can now print indirect section
	info.
1993-03-30 17:40:51 +00:00
Per Bothner
f20c07d975 CVS botch. Add MACHTYPE_OK to mipsbsd.c; re-remove aout-mipsbsd.c. 1993-03-26 00:38:09 +00:00
Per Bothner
796dc40d63 * aout-target.h (MY(object_p)): Fail if MACHTYPE_OK is
defined, and yields false.
	* aout-mipsbsd.c, i386bsd.c:  Define MACHTYPE_OK appropriately.

	* archive.c (snarf_ar_hdr):  Add support for reading (only,
	so far) BSD-4.4-style extended headers.
	* archive.c:  Some more comments.
1993-03-24 21:47:14 +00:00
David D. Zuhn
f2681266a7 update dvi & info targets 1993-03-24 10:34:02 +00:00
Ken Raeburn
828e987e6b mipsbsd renaming, libbfd optimization fixes 1993-03-24 08:18:16 +00:00
Ken Raeburn
550fb7afd3 turn on file-position optimizations again 1993-03-24 08:01:07 +00:00
Ken Raeburn
a33a2b65c5 disable position-caching code for now 1993-03-24 05:10:05 +00:00
Ken Raeburn
e5b0286097 fix some (not all) bugs in previous changes 1993-03-24 05:09:18 +00:00
Ken Raeburn
044c1ba9e5 aout-mipsbsd -> mipsbsd 1993-03-23 20:21:47 +00:00
Ken Raeburn
07bb4e8abc delete non-mips-related code 1993-03-23 20:19:16 +00:00
Ken Raeburn
db15c6b17a rename for <=14 chars 1993-03-23 20:14:25 +00:00
Ken Raeburn
b31d06ca14 Eek, a bug!
Position 0 means no-movement for SEEK_CUR ... not for SEEK_SET.
1993-03-23 20:11:25 +00:00
Ken Raeburn
33446e9093 oops, left some debug code in 1993-03-23 17:50:26 +00:00
Ken Raeburn
6c0eb6c8c9 FILE_OFFSET_IS_CHAR_INDEX changes to libbfd.c and hosts/sparc.h 1993-03-23 14:23:48 +00:00
Ken Raeburn
0d552306f8 libbfd.c: Maintain `where' field of BFD with current position while BFD is
in use.  If FILE_OFFSET_IS_CHAR_INDEX, assume arithmetic can be done on it,
and ignore SEEK_SET requests that move to the current position.

hosts/sparc.h: Define FILE_OFFSET_IS_CHAR_INDEX.
1993-03-23 13:54:41 +00:00
Ken Raeburn
992be253d1 since bfd vers is > 2.0, make doc say so also 1993-03-23 13:10:30 +00:00
David D. Zuhn
76019c92cd add installcheck target 1993-03-23 07:19:06 +00:00
Ian Lance Taylor
182b4c978d * coff-mips.c (ecoff_set_symbol_info): Relocate encapsulated stabs
if the type is not stNil.
1993-03-22 22:59:29 +00:00
Per Bothner
76b527fa83 * Makefile.in: Add *clean rules. 1993-03-16 20:16:31 +00:00
Ken Raeburn
b47ca13f2a elf32.c, elf32-sparc.c changes 1993-03-16 18:37:51 +00:00
David D. Zuhn
663a55364b consistent use of -solaris2* 1993-03-13 02:59:38 +00:00
Jim Kingdon
2e0e34505d * rs6000-core.c: Add .ldinfo section. 1993-03-12 23:05:12 +00:00
Ian Lance Taylor
204ae00cc1 * Makefile.in (MAKEOVERRIDES): Define to be empty. 1993-03-12 19:58:54 +00:00
Steve Chamberlain
ad7009aa91 * section.c (bfd_set_section_contents): whitespacs
* seclet.c (seclet_dump_seclet): Don't try and fill sections with
	no contents.
1993-03-12 16:33:59 +00:00
David D. Zuhn
b3df94565a don't define POSIX_UTIME for go32, makes ar & ranlib happy again 1993-03-12 03:32:47 +00:00
Fred Fish
286a4427e5 * elf32.c (elf_object_p): Use ELF_ARCH stored in xvec to match
against machine architecture stored in the ELF header, to resolve
	ambiguities.
	* elf32.c (bfd_section_from_shdr):  Bfd_make_section can return
	NULL, so only use results when non-NULL.
	* targets.c (elf32_m68k_vec, elf32_i860_vec):  Add extern decls
	and add to vector of targets.
1993-03-09 18:59:58 +00:00
Ian Lance Taylor
16788ca9fd Removed obsolete Makefile.dos. 1993-03-09 18:16:38 +00:00
Ken Raeburn
0093d9e67f hppa.c: don't require DL_MAGIC, SHL_MAGIC, if they're not defined (hpux 7.0) 1993-03-08 21:30:29 +00:00
Ken Raeburn
59415c56b3 hppa and aix386-core changes 1993-03-08 20:58:34 +00:00
Ken Raeburn
155171dee5 from Noah Friedman: define some needed macros if hpux version < 8 1993-03-08 20:42:00 +00:00
Ian Lance Taylor
f68d8549cc * coff-mips.c (ecoff_bfd_reloc_type_lookup): New function.
(ecoff_write_object_contents): Added BFD_ASSERT calls to ensure
	relocs are reasonable.
	* coff-msym.c: Eliminated uses of DEFUN.
	(ecoff_swap_tir_out): New function.
1993-03-04 22:48:46 +00:00
Fred Fish
b84d84d7a6 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
* configure.host (vax-*-ultrix2*):  Add triplet.
	* hosts/vaxult2.h:  New file.
	* config/vaxult2.mh:  New file.
1993-03-03 05:56:52 +00:00
Fred Fish
312bef9d21 * aoutx.h (string.h): Include for strchr and friends.
* archive.c (string.h):  Include for memchr and friends.
	* elf32.c (string.h):  Include for strrchr and friends.
1993-03-03 01:54:42 +00:00
Ken Raeburn
4743848f07 keep new elf files 1993-03-02 17:36:08 +00:00
Ken Raeburn
14c5897713 Document damage^H^H^H^H^H^Hwork done so far tonight.
Mostly playing with elves.
1993-02-27 07:34:47 +00:00
Ken Raeburn
81187b5475 revised elf support 1993-02-27 07:05:09 +00:00
Steve Chamberlain
2ebd09764b symbol srec stuff 1993-02-27 01:43:10 +00:00
Ken Raeburn
539a840f7b * elf.c (elf_write_object_contents): Section ".shstrtab" should be
type SHT_STRTAB.  Don't alter file offset for section 0.
	(reloc_type_names): Now an array instead of a macro.  Still inside
	"#if 0", since it's used only in debugging code also in "#if 0".
	(struct elf_reloc_map_elt, struct elf_reloc_map): New types.
	(sort_reloc_map): New function.
	(sparc_reloc_map): New variable.
	(elf_bfd_reloc_type_lookup): New function.

Now bfd-gas can create valid empty object files for sun4sol2.
1993-02-25 14:28:02 +00:00
Ian Lance Taylor
c0f6093b0c * Minor cleanups provoked by gcc warnings:
* aoutx.h (NAME(aout, reloc_type_lookup)),
	cpu-h8300.c (local_bfd_reloc_type_lookup),
	cpu-z8k.c (local_bfd_reloc_type_lookup): Added default case to
	switches.
	* archive.c (do_slurp_bsd_armap, do_slurp_coff_armap),
	ieee.c (ieee_slurp_section_data),
	elf.c (elf_make_sections, elf_fake_sections,
	elf_compute_section_file_positions, elf_write_object_contents):
	Removed unused variables.
	* archures.c: Removed /* from within comment.
	* bout.c (b_out_squirt_out_relocs): Initialize r_extern.
	* oasys.c (oasys_write_data): Initialize i.
1993-02-23 21:08:32 +00:00
Ian Lance Taylor
8feff71726 * bfd-in.h (JUMP_TABLE): Added bfd_reloc_type_lookup and
bfd_make_debug_symbol; they were already in the target structure.
	* Adjusted all uses of JUMP_TABLE.
	* coffgen.c, libcoff-in.h (coff_bfd_make_debug_symbol): Renamed
	from coff_make_debug_symbol.
	* libcoff.h: Updated accordingly.
1993-02-23 20:24:06 +00:00
Per Bothner
85fe7cfff3 * libcoff.h (obj_raw_syment_coun): New macro.
* coffgen.c (coff_get_normalized_symtab):  Initialize
	raw_syment_count.
	* coffgen.c (coff_find_nearest_line):  Numerous little fixes.
1993-02-23 06:50:49 +00:00
Ian Lance Taylor
20f10b59ff * coff-mips.c (ecoff_set_symbol_info): stBlock symbols are always
debugging symbols.
	(ecoff_get_debug): Offset the fdr adr by the adr of the first pdr,
	for compatibility with tools from MIPS.

	* config/bigmips.mt: New file; default vector is ecoff_big_vec.
	* config/irix3.mt, config/irix4.mt: Removed.
	* configure.in (mips-*-ecoff): New target; uses bigmips.mt.
	(mips-sgi-*, mips-big-*): Use bigmips rather than irix3.
1993-02-22 23:17:45 +00:00
K. Richard Pixley
2338f9c4dd * trad-core.c (trad_unix_make_empty_symbol): wrap PARAMS around an
ansi definition which otherwise confuses non-ansi compilers.
1993-02-17 21:02:01 +00:00
K. Richard Pixley
ec69652fc5 aout-adobe.c (aout_adobe_object_p): eliminate a warning from vax
ultrix cc by forward declaring getenv as is done in bfd_find_target.
1993-02-17 20:30:19 +00:00
K. Richard Pixley
b40a3bf26f cast an enum into unsigned char avoiding a fatal error in vax ultrix 4.2 cc. 1993-02-17 01:58:47 +00:00
Ian Lance Taylor
0dc1bc8b3f Added 1993 copyrights to files that I have changed in 1993. Some were
missing 1992 copyrights, although they changed in 1992.
1993-02-16 16:54:20 +00:00
John Gilmore
ec30dfba17 Roll to version 2.1. 1993-02-16 08:49:29 +00:00
John Gilmore
3039e8eeaf * oasys.c (oasys_write_object_contents): Lint.
* srec.c:  Whitespace cleanup.
1993-02-16 04:44:28 +00:00
David D. Zuhn
372c8dcf81 no more v9 code in aoutx.h 1993-02-13 08:56:24 +00:00
Ian Lance Taylor
e61cfdf820 Fri Feb 12 14:23:07 1993 Ian Lance Taylor (ian@cygnus.com)
* coffgen.c (coff_print_symbol): Print correct tagndx value;
	cleaned up output formatting a bit.
1993-02-12 22:24:47 +00:00
Steve Chamberlain
142ce43edd * coffcode.h (coff_set_arch_mach_hook): *FIXME* the H8/300 is always
relaxable.  Should be moved somewhere else.
1993-02-12 16:32:32 +00:00
Ken Raeburn
98e1c9e572 Eliminated uses of DEFUN. Added seclet_link element to vectors. 1993-02-11 19:26:40 +00:00
Steve Chamberlain
ff975a2c4c H8/500 support 1993-02-04 20:59:55 +00:00
Ian Lance Taylor
a3b3dbdda5 Thu Feb 4 12:35:02 1993 Ian Lance Taylor (ian@cygnus.com)
* libecoff.h: New file.  Defines ECOFF backend data for gdb.
	* coff-mips.c: Now includes libecoff.h.
	(ecoff_data_type): Moved to libecoff.h.
	(ecoff_slurp_symbolic_info): Made globally visible so that gdb can
	call it.  If there is ever another ECOFF target, this and the
	swapping functions should be accessed via an ECOFF specific target
	vector.
	Makefile.in (coff-mips.o): Depends on libecoff.h.
1993-02-04 20:47:10 +00:00
Ian Lance Taylor
1a8c6d5b92 Wed Feb 3 09:14:36 1993 Ian Lance Taylor (ian@cygnus.com)
* coffcode.h: Removed MIPS specific information, since coff-mips.c
	no longer includes this file.
1993-02-03 20:08:22 +00:00
Ian Lance Taylor
63fd1097f5 Wed Feb 3 09:14:36 1993 Ian Lance Taylor (ian@cygnus.com)
* coff-msym.c (ecoff_swap_fdr_in, ecoff_swap_ext_in): Set reserved
	bits to 0 to make comparison test useful.

	* config/irix3.mh, config/irix4.mh (HDEFINES): Set to -G 4 to
	avoid overflowing GP accessible sections in binutils/objdump.
1993-02-03 17:17:34 +00:00
Ian Lance Taylor
6d18a99d25 Fix some minor bugs, make work on big endian machines, remember
text_start and text_end for future use by gdb and current use by
find_nearest_line.  Still covered by last ChangeLog entry, I think.
1993-02-03 17:14:11 +00:00
John Gilmore
4bdbc8d68d Keep mipsbsd.h. 1993-02-03 07:42:00 +00:00
John Gilmore
3480cc3eb4 Remove "done in pwd" msg. 1993-02-03 07:41:32 +00:00
John Gilmore
c4fa327144 Eliminate extraneous messages and RCS log. 1993-02-03 07:41:07 +00:00
John Gilmore
2f15ee07dd Remove "done in" message. 1993-02-03 07:39:55 +00:00
John Gilmore
9dec3920f0 Add aout-mipsbsd.c 1993-02-03 05:24:02 +00:00
Per Bothner
96f03b0f0d * aoutx.h (NAME(aout,slurp_symbol_table)): Made symbol
reading more robust:  Fail if string index is out of string
	table range.
1993-02-02 23:38:38 +00:00
Ian Lance Taylor
f6409552c7 General cleanup--added prototypes, removed a few unused variables,
fixed up comments a bit.  Also set version stamp in a.out header to
0x20a rather than 0, to keep the Ultrix linker happy.
1993-02-02 22:17:27 +00:00
Ian Lance Taylor
5e462ed938 Create a .scommon section for each input BFD so the linker has
something to attach small common symbols to.  Then avoid writing out
the (empty) .scommon section for the output BFD.

Tue Feb  2 11:41:06 1993  Ian Lance Taylor  (ian@cygnus.com)

	* coff-mips.c: Completed support for linker and binutils.
1993-02-02 19:43:44 +00:00
Ken Raeburn
5cd3dcffba from ralphc: mips-aout support 1993-02-01 21:42:59 +00:00
Ken Raeburn
71c0bae098 from ralphc: recognize some mips variants 1993-02-01 21:40:53 +00:00
Ken Raeburn
7a35367ceb accept mips-dec-bsd* and i?86-*-elf 1993-02-01 21:36:59 +00:00
Ken Raeburn
00ee2c249f changes from Ralph Campbell @ Pyramid for MIPS a.out (BSD 4.4) support 1993-02-01 21:35:16 +00:00
Ian Lance Taylor
23ba15b775 Checkpoint. Can now create MIPS style armap hash tables. Fixed some
linker problems.  The linker still needs to learn to put SCommon
symbols in .sbss rather than .bss.
1993-01-29 23:24:20 +00:00
John Gilmore
9d9fa9dca8 Fix typo in file name. 1993-01-29 06:32:36 +00:00
John Gilmore
536c2ad4be Fix minor bugs reported by Carl Greco, <cgreco@parrot.creighton.edu>:
* hosts/delta88.h (strtol):  Fix prototype.
* config/m88k-coff.mh (SELECT_ARCHITECTURES):  Fix name.
1993-01-29 05:04:45 +00:00
Ian Lance Taylor
bf4b84bc49 Checkpoint. Linker appears to work. 1993-01-27 19:33:48 +00:00
Ian Lance Taylor
382f2a3d75 Tue Jan 26 11:43:14 1993 Ian Lance Taylor (ian@cygnus.com)
* section.c (SEC_IS_COMMON): New section flag, needed for MIPS
	ECOFF which has two common sections.
	(bfd_com_section): Set SEC_IS_COMMON flag.
	* bfd-in.h (bfd_is_com_section): New macro to test SEC_IS_COMMON.
	* aoutx.h, archive.c, bout.c, coff-a29k.c, coff-m88k.c,
	coff-mips.c, coffgen.c, ieee.c, oasys.c, reloc.c, syms.: Use
	bfd_is_com_section macro rather than checking for equality to
	bfd_com_section.
1993-01-26 19:54:07 +00:00
Ian Lance Taylor
c3fe0c418c Checkpoint. ld works, ld -r doesn't. 1993-01-25 23:33:27 +00:00
Ian Lance Taylor
27f524a317 Mon Jan 25 15:27:36 1993 Ian Lance Taylor (ian@cygnus.com)
* coffcode.h (_bfd_coff_mkobject_hook): Pass aouthdr argument.
	(coff_mkobject_hook): Accept aouthdr argument.
	* coffgen.c (coff_real_object_p): Pass aouthdr to mkobject_hook.
	Handle NULL aouthdr argument.
	(coff_object_p): If there is no aouthdr, pass it as NULL to
	coff_real_object_p.
	* libcoff.h: Rebuilt for mkobject_hook changes.
1993-01-25 23:32:26 +00:00
Ian Lance Taylor
fa8fea3dda * coffswap.h (coff_swap_aouthdr_in, coff_swap_aouthdr_in): Swap
additional MIPS ECOFF fields.
1993-01-25 23:31:51 +00:00
Ian Lance Taylor
dcf5ddb89b Revert yesterday's change (adding casts) at gnu's request. 1993-01-20 15:35:50 +00:00
Ian Lance Taylor
fa2b89f103 Tue Jan 19 09:06:14 1993 Ian Lance Taylor (ian@cygnus.com)
* aoutx.h (swap_ext_reloc_in, swap_std_reloc_in),
	bout.c (b_out_slurp_reloc_table),
	coff-mips.c (ecoff_swap_reloc_in),
	coff-msym.c (ecoff_swap_sym_in, ecoff_swap_rndx_in,
	ecoff_swap_opt_in): Added casts to int to avoid muttering by
	MIPS compiler.
1993-01-19 18:23:21 +00:00
Ian Lance Taylor
b6bef86226 Checkpoint. Can now read relocs. 1993-01-19 17:38:13 +00:00
Ian Lance Taylor
8b8a071eb2 Tue Jan 19 09:06:14 1993 Ian Lance Taylor (ian@cygnus.com)
* bfd-in.h (bfd_asymbol_value): Add needed parentheses.
1993-01-19 17:28:28 +00:00
Ian Lance Taylor
f3146b66c1 Tue Jan 19 09:06:14 1993 Ian Lance Taylor (ian@cygnus.com)
* libcoff-in.h: Update prototype for coff_count_linenumbers.
1993-01-19 17:07:35 +00:00
Ian Lance Taylor
8fa0d3a012 Basically a checkpoint for coff-mips.c.
Fri Jan 15 18:13:17 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)

	* coff-msym.c (ecoff_swap_hdr_out, ecoff_swap_fdr_out,
	ecoff_swap_pdr_out, ecoff_swap_sym_out, ecoff_swap_ext_out,
	ecoff_swap_rndx_out, ecoff_swap_rfd_out, ecoff_swap_opt_in,
	ecoff_swap_opt_out, ecoff_swap_dnr_in, ecoff_swap_dnr_out): New
	functions.
	* coffswap.h: If NO_COFF_RELOCS is defined, don't define
	bfd_swap_reloc_in or coff_swap_reloc_out.
	* coff-mips.c: Added code to link and write out symbolic debugging
	information, and to swap relocs in and out.
1993-01-15 23:39:05 +00:00
Steve Chamberlain
30ea4a2d91 * libcoff.h, coffgen.c (coff_count_linenumbers), coffcode.h
(coff_write_object_contents): coff_count_linenumbers returns the
	number of line number records it found.

	* coffgen.c (coff_write_linenumbers): only write out line numbers
	in the section they belong to.
1993-01-14 23:56:04 +00:00
Ian Lance Taylor
0c2fae099a Mon Jan 11 18:32:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* targets.c (bfd_target): Added relocateable argument to
	_bfd_get_relocated_section_contents.  Added _bfd_seclet_link
	target vector for linker use.
	* bfd.c (bfd_seclet_link): New macro.
	* bfd-in.h (JUMP_TABLE): Added _bfd_seclet_link.
	* seclet.c (rel, seclet_dump_seclet): Added relocateable argument
	and boolean return value.  Made static.
	(bfd_generic_seclet_link): Renamed from seclet_dump.  Added
	relocateable argument.
	* reloc.c (bfd_generic_get_relocated_section_contents): Added
	relocateable argument (if relocateable, saves relocs).
	* bout.c (b_out_get_relocated_section_contents),
	reloc16.c (bfd_coff_reloc16_get_relocated_section_contents): Added
	relocateable argument (if relocateable, just calls
	bfd_generic_get_relocated_section_contents).
	* libcoff-in.h (bfd_coff_reloc16_get_value): Added relocateable
	argument to prototype.
	* All targets: Set new _bfd_seclet_link vector to
	bfd_generic_seclet_link.
1993-01-12 00:38:59 +00:00
Ian Lance Taylor
918356b902 Use struct bfd_seclet * rather than bfd_seclet_type in prototypes to
avoid requiring seclet.h before libcoff.h.
1993-01-10 20:35:41 +00:00
Stu Grossman
a8ba7cc6b1 * coffgen.c: #include seclet.h. 1993-01-10 05:30:36 +00:00
Stu Grossman
d0a650a475 * hppa.c (hppa_object_setup): Get rid of all knowledge of stabs
debug info.  Setup info about linker symbols only, and use
	standard bfd fields to hold the info.
	* (hppa_object_p):  Remove unneeded decls.
	* (hppa_new_section_hook):  Get rid of most of this.
	* libhppa.h (struct hppadata):  Remove ten pounds of useless ugly
	fat.  Remove all knowledge of stabs, remove redundant knowledge of
	linker symbols.
	* Remove macros for accessing fields which are now gone.
1993-01-10 03:57:45 +00:00
Steve Chamberlain
47cf499721 * coffcode.h (sec_to_styp_flags): allow SEC_NEVER_LOAD to turn on
STYP_NOLOAD bit.
	* coff-z8k.c: delete unused reloc functions
1993-01-08 23:21:26 +00:00
Ian Lance Taylor
515c429211 Basically a checkpoint.
Fri Jan  8 15:47:53 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)

	* bfd.c (struct _bfd): Added ecoff_tdata to tdata union.
	* targets.c (enum target_flavour): Added bfd_target_ecoff_flavour.
	* coff-msym.c: Use DEFUN for function definitons.
	* coff-mips.c: Added code to read and print symbols, and to find
	line numbers.
1993-01-08 21:46:36 +00:00
Ian Lance Taylor
6082cdd566 Forgot to commit ChangeLog. 1993-01-08 21:26:42 +00:00
Ian Lance Taylor
075caafd65 These changes cut the size of libbfd.a on a Sun4 by about 11%.
Somewhat more could be done.

Fri Jan  8 15:47:53 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)

	* coffcode.h: Moved many generic functions into coffgen.c.  Moved
	swapping functions into coffswap.h for ECOFF use.  Moved
	relocation functions, only used by h8300 and z8k, into reloc16.c.
	Added hooks for coffgen.c functions to backend data structure, and
	added hook functions.  Still more could be done.
	* coffswap.h: New file to hold COFF swapping routines.
	* coffgen.c: New file to hold generic COFF functions.
	* reloc16.c: New file to hold h8300 and z8k specific relocation
	functions.
	* libcoff-in.h: Added declarations for functions in coffgen.c.
	* libcoff.h: Rebuilt to incorporate changes.
	* coff-h8300.c: Function name changes.
	* coff-z8k.c: Function name changes.  Use coff_reloc16_extra_cases
	hook rather than defining EXTRA_CASES.
	* Makefile.in: Build new files coffgen and reloc16.  Added
	dependencies of coff-*.o on coffswap.h and seclet.h.
1993-01-08 21:11:21 +00:00
David D. Zuhn
240f485a41 use bfd_xmalloc instead of malloc 1993-01-06 08:24:08 +00:00
Ken Raeburn
7a938fa53d Temporary hack until Per's solution gets implemented: If --with-minimal-bfd is
specified, set MINIMIZE=1.  (Not the default.)
1993-01-05 14:57:44 +00:00
Steve Chamberlain
27de82c603 * srec.c (srec_write_records): one of my boards wants a CR between
records.
1993-01-04 15:21:21 +00:00
Ian Lance Taylor
7b4eaa0ee6 Wed Dec 30 12:46:30 1992 Ian Lance Taylor (ian@cygnus.com)
* archive.c (do_slurp_coff_armap): set symdef_count correctly
	(it broke a couple of weeks ago).
1992-12-30 20:49:21 +00:00
Ken Raeburn
c3efeb9248 fix libbfd.h declaration, by tweaking elf.c comment, so bfd can compile 1992-12-30 02:48:29 +00:00
Ken Raeburn
1a917f544a regenerated from current sources - bfd_elf_find_section return type changed 1992-12-30 00:16:39 +00:00