Commit graph

405 commits

Author SHA1 Message Date
David MacKenzie
c881d68721 Move printing from bfd to nm. 1993-05-21 21:09:02 +00:00
Jim Kingdon
67a113cf3e * trad-core.c: Check macro TRAD_CORE_EXTRA_SIZE_ALLOWED.
hosts/i386linux.h:  Define it.
1993-05-19 21:11:49 +00:00
Jim Kingdon
b7e80156db * trad-core.c: Check macro TRAD_CORE_EXTRA_SIZE_ALLOWED.
hosts/i386linux.h: Define it.
1993-05-19 20:57:20 +00:00
Ken Raeburn
09f080a55e hppa assembler/disasm support routines 1993-05-17 19:04:58 +00:00
Ian Lance Taylor
979227d480 * bout.c (aout32_slurp_extended_name_table): Define to be
_bfd_slurp_extended_name_table rather than bfd_true.
1993-05-12 21:44:18 +00:00
Ian Lance Taylor
bb511e8a1e * coff-mips.c: Include libaout.h and aout/aout64.h to get
definitions for N_SET[ATDB].
	(ecoff_howto_table): Moved near top of file.
	(ecoff_set_symbol_info): If a STABS symbol of type N_SET[ATDB] is
	seen, cook up a constructor section of the same name and put in a
	reloc pointing to the symbol.  This lets the GNU linker build
	global constructors and destructors without using collect.
1993-05-12 21:42:20 +00:00
Fred Fish
aa9a648958 * configure.in (hppa*-*-bsd): Change to hppa*-*-bsd*
* configure.in (hppa*-*-hpux):  Change to hppa*-*-hpux*
	* configure.in (m68*-hp-bsd):  Change to m68*-hp-bsd*
	* configure.in (m68*-*-hpux):  Change to m68*-*-hpux*
	* configure.in (*-*-bsd):  Change to *-*-bsd*
1993-05-09 23:42:50 +00:00
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
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
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
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
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
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
6c0eb6c8c9 FILE_OFFSET_IS_CHAR_INDEX changes to libbfd.c and hosts/sparc.h 1993-03-23 14:23:48 +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
Ken Raeburn
b47ca13f2a elf32.c, elf32-sparc.c changes 1993-03-16 18:37:51 +00:00