Commit Graph

3797 Commits

Author SHA1 Message Date
Ian Lance Taylor d8dedd7946 fix TeX problems 1998-05-01 23:11:19 +00:00
Ian Lance Taylor 5de8088770 add target vector documentation 1998-05-01 22:44:27 +00:00
Ian Lance Taylor d1d5d252c4 add relocation code and ELF docs 1998-04-29 20:15:19 +00:00
Ian Lance Taylor 92769ae949 * config.bfd: If we include any ELF targets in targ_defvec and/or
targ_selvecs, then add the generic ELF targets to targ_selvecs.
	* elf32-gen.c (dummy): New static const variable.
	(elf_generic_info_to_howto): New static function.
	(elf_generic_info_to_howto_rel): New static function.
	(elf_info_to_howto): Define as elf_generic_info_to_howto.
	(elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
	* elf64-gen.c: Same changes as elf32-gen.c.
	* elfcode.h (elf_object_p): For the generic target, ignore a
	failure of bfd_default_set_arch_mach.  Fix indentation a bit.
1998-04-29 19:38:38 +00:00
Tom Tromey 5873cbec2b Fixed xgettext invocation in .Sanitize files 1998-04-29 00:11:07 +00:00
Ian Lance Taylor 351fc10beb * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
* configure: Rebuild.
1998-04-29 00:06:18 +00:00
Ian Lance Taylor accf488e25 add title, fix some minor problems 1998-04-28 21:18:23 +00:00
Ian Lance Taylor 508fa296e1 add a section on relocations 1998-04-28 19:37:19 +00:00
Jason Molenda 1142c24124 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
* config.bfd:  Update OSR5/Unixware patterns.
1998-04-28 19:18:10 +00:00
Ian Lance Taylor 5e04ff140d remove PR numbers 1998-04-28 02:31:15 +00:00
Richard Henderson 4d6f96ebe7 * elf.c (assign_file_positions_for_segments): Allow for holes
between sections added by a link script.

PR 15645
1998-04-28 01:03:42 +00:00
Ian Lance Taylor c91a48dd42 * bfdint.texi: New file.
* Makefile.am (noinst_TEXINFOS): New variable.
	* Makefile.in: Rebuild.
1998-04-28 00:20:27 +00:00
Ian Lance Taylor d510976d2a * configure.in: Change version number to 2.9.4
* configure: Rebuild.
1998-04-27 19:44:13 +00:00
Ian Lance Taylor 0d3887ba8f Based on patch from H.J. Lu <hjl@gnu.org>:
* elf.c (bfd_elf_get_bfd_needed_list): New function.
	* bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
	* bfd-in2.h: Rebuild.
1998-04-27 15:51:27 +00:00
Richard Henderson dbcd157d76 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
Change all users.
1998-04-26 03:09:20 +00:00
Richard Henderson 2506b5688c * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
(elf64_alpha_relax_section): Fill them in.
        (elf64_alpha_relax_opt_call): Implement more than a stub.
        (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
        alignment on .scommon.
        (elf64_alpha_merge_gots): Merge use counts as well.
1998-04-26 01:33:51 +00:00
Richard Henderson 986c3691f2 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
for calculating a local symbol's address.
        (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
        Set the .got's cooked size as well as the raw size.
1998-04-25 21:10:01 +00:00
Nick Clifton 05c07e2968 Added internationalisation macros to printed infoamrion in
v850_elf_print_private_data
1998-04-24 16:18:41 +00:00
Ian Lance Taylor 016b7b4bdc * syms.c (struct indexentry): Change directory_name, file_name,
and function_name fields to char *.
	(struct stab_find_info): Change cached_file_name field to char *.
1998-04-24 16:10:07 +00:00
Nick Clifton fd1b5eb76a Added missing internationalisation macros. 1998-04-24 16:06:26 +00:00
Nick Clifton 701552a5a1 Fixed internationalisation. 1998-04-23 15:15:27 +00:00
Tom Tromey d6f3da9bc4 If xgettext fails, make Sanitize fail 1998-04-23 05:17:30 +00:00
Tom Tromey 3d96e9b4cf .Sanitize now re-computes gettext-related files 1998-04-22 22:40:45 +00:00
Tom Tromey 1158ffaf2a * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir). 1998-04-22 22:34:05 +00:00
Ian Lance Taylor fa46686469 x 1998-04-22 22:01:00 +00:00
Tom Tromey 4725e922ef * libbfd-in.h: Use `gettext' and not `dgettext' for now. 1998-04-22 19:14:03 +00:00
Ian Lance Taylor a46abdd087 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
* Makefile.in: Rebuild.
1998-04-22 17:39:16 +00:00
Ian Lance Taylor 3f4606a0f1 * bfd-in2.h: Rebuild for Nick's changes. 1998-04-22 16:54:08 +00:00
Ian Lance Taylor 7d2ac7015e fix sanitization for gettext changes 1998-04-22 16:00:14 +00:00
Richard Henderson b65c61635f * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
change wrt length == max_namelen.
1998-04-22 06:13:38 +00:00
Tom Tromey 53d3ce37d4 * Many files: Added gettext invocations around user-visible
strings.
	* libbfd-in.h: Added gettext includes and defines.
	* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
	HAVE_LC_MESSAGES): Define.
	* configure.in: Call CY_GNU_GETTEXT.  Create po/Makefile.in and
	po/Makefile.
	* Makefile.am (SUBDIRS): Added po.
	(POTFILES): New macro.
	(po/POTFILES.in): New target.
	(SOURCE_HFILES): New macro.
	(HFILES): Use it.
	* po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
1998-04-22 05:13:54 +00:00
Peter Schauer d0f44984d1 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
NT_PRSTATUS note section encountered, it contains the status of
	the currently executing thread when the core file was written.
1998-04-21 20:39:52 +00:00
Nick Clifton 7d6d10f9b3 Arm specific code changed to conform to BFD coding conventions. 1998-04-21 17:07:25 +00:00
Richard Henderson 211b0be8ce * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
elf64_alpha_relax_find_reloc_ofs.  Changed all callers.
(elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
(elf64_alpha_size_got_sections): Don't merge .got sections twice.
1998-04-21 07:15:57 +00:00
Richard Henderson a56e73eda4 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test. 1998-04-21 07:15:33 +00:00
Jeff Law 14c683b2ab * elf32-mips.c (mips_elf_relocate_section): Do not complain about
an out of range pc-relative jump/call to an undefined weak symbol.
1998-04-18 04:30:09 +00:00
Ian Lance Taylor 216c36d92b * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
an error other than bfd_error_system_call, set the error to
 	bfd_error_wrong_format.
1998-04-16 22:37:40 +00:00
Richard Henderson eb03bc25f7 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
comparisons signed.
1998-04-16 21:06:36 +00:00
Ian Lance Taylor b3c762555f * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
bfd_elf32_powerpcle_vec.
1998-04-16 18:47:13 +00:00
Ian Lance Taylor 25e8be1d5c * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
program segments are zero, don't set p_paddr_valid.
1998-04-16 15:45:18 +00:00
Richard Henderson 69842d0884 * elf64-alpha.c: Initial implementation of relaxation --
(struct alpha_elf_link_hash_entry): Add use_count member.
        (elf64_alpha_check_relocs): Initialize and increment it.
        (elf64_alpha_can_merge_gots): Check it when considering merging.
        (elf64_alpha_merge_gots): Drop entries with zero use.
        (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
        (elf64_alpha_always_size_sections): Split out got sizing ...
        (elf64_alpha_size_got_sections): ... here.  New function.
        (elf64_alpha_relax_find_reloc_ofs): New function.
        (elf64_alpha_relax_with_lituse): Likewise.
        (elf64_alpha_relax_without_lituse): Likewise.
        (elf64_alpha_relax_opt_call): Likewise.
        (elf64_alpha_relax_section): Likewise.
        (elf64_alpha_add_symbol_hook): Likewise.
        (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
        (elf64_alpha_relocate_section): Likewise.
        (bfd_elf64_bfd_relax_section): Define.
        (elf_backend_add_symbol_hook): Likewise.
1998-04-16 05:29:30 +00:00
Richard Henderson b356d4afd6 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
* elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
        (ELF_MACHINE_ALT1): New.  Set to EM_OLD_SPARC64.
1998-04-15 23:09:52 +00:00
Ian Lance Taylor 645968657e * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
* configure: Rebuild.
1998-04-15 15:35:05 +00:00
Ian Lance Taylor 5a83fcdd2f * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
(libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
	* configure.in: Define and substitute WIN32LDFLAGS and
	WIN32LIBADD.
	* aclocal.m4: Rebuild with new libtool.
	* configure, Makefile.in: Rebuild.
1998-04-13 20:49:22 +00:00
Ian Lance Taylor c24c4203ed * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
before any other symbols in the same section.
Required by Visual C++ linker, and specified in PE documentation.
1998-04-10 17:45:18 +00:00
Michael Meissner d6c3cfb507 Do not add PowerPC NT support by default to PowerPC ELF systems 1998-04-08 18:57:42 +00:00
Gavin Romig-Koch b7781f9fb6 * dwarf2.c (comp_unit): Move it earlier in the source. Add
addr_size.
	(read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
        Use addr_size for address size, rather than sizeof(bfd_vma).
	(read_attribute): Replace bdf* argument with 'comp_unit*' argument.
	Fix call to read_address.
	(decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
	Scrap other unneeded arguments.  Fix call to read_address.
	(scan_unit_for_functions): Fix call to read_attribute.
	(parse_comp_unit): We now handle more values for addr_size.
	Set addr_size in unit.  Fix call to read_attribute and
	decode_line_info.
1998-04-07 20:29:26 +00:00
Gavin Romig-Koch d02731be5c * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null. 1998-04-07 19:56:50 +00:00
Ian Lance Taylor 1d9ee92437 * archures.c (bfd_default_scan): Add m68k cases back to default
switch, reverting patch of March 25, since IEEE support depends
	upon them.
1998-04-07 16:36:34 +00:00
Ian Lance Taylor 78e700af6a x 1998-04-06 18:08:43 +00:00
Ian Lance Taylor 89d617feb8 * Makefile.am (diststuff): New target.
* Makefile.in: Rebuild.
1998-04-06 18:08:13 +00:00
Ian Lance Taylor 97ca325aa4 * Makefile.am (STAGESTUFF): Remove variable.
(CLEANFILES): Don't remove $(STAGESTUFF).
	(DISTCLEANFILES, MAINTAINERCLEANFILES): New variables.
	* Makefile.in: Rebuild.
1998-04-06 18:07:58 +00:00
Jeff Law 1fa0aaae75 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
som_offset when we have an extended name table.
1998-04-05 22:22:48 +00:00
Ian Lance Taylor 56231d310e Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
* Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
	trying to copy it.
	* Makefile.in: Rebuild.
1998-04-05 20:06:25 +00:00
Ian Lance Taylor c4ffc67cb2 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
	symbols when creating a shared library.
	(elf_m68k_adjust_dynindx): New function, used by above code.
	(elf_m68k_finish_dynamic_sections): Initialize the section
	symbols.
	(elf_m68k_relocate_section): Change abort to BFD_ASSERT.
1998-04-03 16:17:08 +00:00
Ian Lance Taylor ed5e146b26 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
	assertion.
1998-04-01 18:40:00 +00:00
Ian Lance Taylor 08eefd3ef1 x 1998-04-01 17:00:11 +00:00
Catherine Moore 197de3bac9 Changes required to emit Elf Rela structures
for relocation.
1998-04-01 16:47:38 +00:00
Jeff Law b11b841b11 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
absolute symbols.
1998-03-31 07:15:57 +00:00
Ian Lance Taylor f3aa01e2a4 * configure.in: Set version to 2.9.1.
* configure: Rebuild.
1998-03-30 22:35:51 +00:00
Ian Lance Taylor 368802d1c9 * elf.c (_bfd_elf_copy_private_section_data): Call
copy_private_bfd_data once we've seen the last SEC_ALLOC section.
Fixes strip on Irix 6.  Without this, a stripped program would report

22964:g++: rld: Warning: This object has a DT_MIPS_OPTIONS tag, but no corresponding
program header.  This could be the result of file corruption
or faulty compilation/linking.
1998-03-30 15:54:24 +00:00
Ian Lance Taylor 24bce4a231 * cpu-mips.c: Remove trailing comma at end of enumeration list. 1998-03-30 15:40:04 +00:00
Ian Lance Taylor ac12935064 * coff-arm.c: Define all globally visible variables and functions
only when COFF_WITH_PE is not defined.
	* configure.in (armpe_little_vec, armpe_big_vec): Add
	coff-arm.lo.
	* configure: Rebuild.
1998-03-28 21:34:25 +00:00
Ian Lance Taylor f6727b9083 Fix gcc -Wall warnings. See ChangeLog for details. 1998-03-27 21:30:53 +00:00
Nick Clifton 8c11394ac6 Remove (most of the) target dependent code from peicode.h 1998-03-26 18:16:23 +00:00
Ian Lance Taylor aed5701ba3 fix tipo in ifdef 1998-03-26 16:00:26 +00:00
Nick Clifton 38c574bbd3 Support interworking for thumb-pe and arm-pe targets. 1998-03-25 23:48:55 +00:00
Ian Lance Taylor d04efb80db * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
plain numbers.
	(sunos_write_object_contents): Likewise.
	* aoutx.h (NAME(aout,machine_type)): Likewise.
	* coffcode.h (coff_set_arch_mach_hook): Likewise.
1998-03-25 20:21:20 +00:00
Ian Lance Taylor ce6821a595 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* archures.c (bfd_mach_m68*): Add definitions for various m68k
	variants.
	(bfd_default_scan): Remove m68k special cases.
	* bfd-in2.h: Rebuild.
	* mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m680*
	instead of plain numbers.
	* sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
	* cpu-m68k.c (arch_info_struct): Likewise.  Add entry for
	m68k:68000.
	(bfd_m68k_arch): Set mach field to zero to signal no explicit
	selection, change printable_name to just "m68k" and make that the
	default instead of m68k:68020.
1998-03-25 20:12:49 +00:00
Ian Lance Taylor df5f44d12a Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* aout-tic30.c (NAME): Define this to avoid multiple definitions
	from aoutx.h.
	(MY_get_section_contents): Define as aout_32_get_section_contents
	rather than NAME(aout,get_section_contents).

	* elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.

Wed Mar 25 11:19:28 1998  Ian Lance Taylor  <ian@cygnus.com>

	* elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
	byte_count to unsigned int.
	(mn10300_elf_relax_section): Initialize internal_relocs.  Remove
	unused local variables.
1998-03-25 19:49:40 +00:00
Ian Lance Taylor b35711c4d8 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
	and call bfd_default_set_arch_mach to do the real work.

Wed Mar 25 13:59:05 1998  Ian Lance Taylor  <ian@cygnus.com>

	* evax-alpha.c (evax_close_and_cleanup): Remove unused local
	variables er and er1.
1998-03-25 19:00:21 +00:00
Ian Lance Taylor 883f72a204 * cpu-v850.c: Include <ctype.h>.
(scan): Case isdigit argument to unsigned char.
Also fix v850e/v850ea sanitization.
1998-03-25 18:56:03 +00:00
Richard Henderson 0892d40bc3 * bout.c (BALX): Include return register g14 as part of the insn.
(BALX_MASK): New.
	(calljx_callback): Use it.

PR 15310
1998-03-25 18:42:26 +00:00
Ian Lance Taylor 1719df74c1 From Yan Meroth <YAN.MEROTH@st.com>:
* ihex.c (ihex_scan): Add extbase variable so that getting an
 	extended linear address record does not ignore any previous
 	extended address.
	(ihex_write_object_contents): When writing out an extended linear
 	address record, zero out any previous extended address.
1998-03-25 16:21:24 +00:00
Ian Lance Taylor b7f28e8f22 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
* ieee.c (do_one): Check section before dereferencing it.
	(ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
	(ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
1998-03-24 21:10:44 +00:00
Ian Lance Taylor 615141db17 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
* config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
1998-03-23 23:52:58 +00:00
Nick Clifton 454515c0b5 Add interworking support (untested) to pe backends. 1998-03-23 22:24:37 +00:00
Jeff Law 721232f36c * elf32-mips.c (R_MIPS15_S3): New relocation type.
(elf_mips_howto_table): Add R_MIPS15_S3.
        (mips_reloc_map): Map BFD_RELOC_MIPS15_S3 to R_MIPS15_S3.
        * reloc.c (BFD_RELOC_MIPS15_S3): New relocation type.
        * bfd-in2.h, libbfd.h: Rebuilt.
1998-03-22 20:01:56 +00:00
Ian Lance Taylor b9bf4aff64 * configure.in: Use AM_DISABLE_SHARED.
* aclocal.m4, configure: Rebuild with libtool 1.2.
1998-03-20 23:48:23 +00:00
Nick Clifton a748b374f5 Fixes for PR15358 and 15373 1998-03-20 19:28:48 +00:00
Richard Henderson f2caa39b4c * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
part of Feb 22 change controling when to override the existing
        symbol with the .plt entry.
1998-03-20 10:28:55 +00:00
Nick Clifton 41eca8a753 Add thumb-pe support 1998-03-18 17:28:50 +00:00
Joern Rennecke 1eb85945f5 Remove SH4 sanitation. 1998-03-07 00:56:05 +00:00
Doug Evans f8ca1a47e6 Fix 4320 sanitization. 1998-03-04 21:14:50 +00:00
Gavin Romig-Koch ad4413e67c * mips-cpu.c: Reorganize sanitization.
* archures.c, bfd-in2.h, mips-cpu.c : Added bfd_mach_mips4320.
1998-03-03 16:31:21 +00:00
Ian Lance Taylor 3c9f13f43f * configure.in: Add elf.lo to elf shell variable.
* Makefile.am (BFD_LIBS): Remove elf.lo.
	(BFD_LIBS_CFILES): Remove elf.c.
	(BFD32_BACKENDS): Add elf.lo.
	(BFD32_BACKENDS_CFILES): Add elf.c.
	* configure, Makefile.in: Rebuild.
1998-02-24 00:53:38 +00:00
Ulrich Drepper b35d842de7 (elf_i386_relocate_section): A pc-relative relocation against a
now-local symbol should not have a dynamic relocation.
1998-02-23 23:58:16 +00:00
Ian Lance Taylor b1f09b637e * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
COFF filehdr flags.
	(pe_print_private_bfd_data): Print PE flags.  From Mikey
	<jeffdb@netzone.com>.
1998-02-23 21:18:30 +00:00
Ian Lance Taylor bdd5e0232a remove sparclinux.h 1998-02-23 04:53:58 +00:00
Richard Henderson 2f53b8ff40 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
a plt entry when we can determine that we authoritatively define
the symbol.
1998-02-23 04:41:18 +00:00
Richard Henderson 07fafd5d88 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
don't actually use trad-core, but a SunOS-style core file handled
by gdb directly.
* hosts/sparclinux.h: Remove.
1998-02-23 04:37:04 +00:00
Doug Evans 5871376494 * config.bfd (targ_archs): If mips64r5900-sky-elf, add bfd_dvp_arch. 1998-02-18 04:04:07 +00:00
Ian Lance Taylor 5290378abc * libbfd.c (bfd_seek): If fseek fails, save errno around call to
bfd_tell.  If errno is EINVAL, set bfd_error_file_truncated, not
	bfd_error_system_call.
1998-02-17 18:02:55 +00:00
Ian Lance Taylor 004040c93b rebuild with new automake 1998-02-13 19:44:27 +00:00
Ian Lance Taylor cf4ce8779a x 1998-02-13 18:39:49 +00:00
Ian Lance Taylor 6e639e5d7b * Makefile.am (libbfd_la_LDFLAGS): Define.
* Makefile.in: Rebuild.
1998-02-13 18:12:58 +00:00
Ian Lance Taylor f53bcd0a9c NetBSD patches from Gordon W. Ross <gwr@mc.com>:
* netbsd.h (MACHTYPE_OK): Define.
	(MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
	calling N_SET_MACHTYPE, rather than having a switch.
	* libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
	and M_ALPHA_NETBSD.
	* i386netbsd.c (MACHTYPE_OK): Don't define.
	(DEFAULT_MID): Define.
	* m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
	(MACHTYPE_OK): Don't define.
	(DEFAULT_MID): Define.
	* m68knetbsd.c: (MACHTYPE_OK): Don't define.
	(DEFAULT_MID): Define.
	* ns32knetbsd.c (MACHTYPE_OK): Don't define.
	(DEFAULT_MID): Define.
	* sparcnetbsd.c (MACHTYPE_OK): Don't define.
	(DEFAULT_MID): Define.
1998-02-13 00:11:41 +00:00
Ian Lance Taylor eee4e8ca3e NetBSD patches from Gordon W. Ross <gwr@mc.com>:
* vaxnetbsd.c: New file.
	* netbsd-core.c: Clean up.  Remove unused macros.  Use netbsd
	rather than netbsd_core.
	* targets.c (vaxnetbsd_vec): Declare.
	(bfd_target_vector): Add vaxnetbsd_vec.  If NETBSD_CORE is
	defined, add netbsd_core_vec.
	* configure.in: Set COREFILE for alpha*-*-netbsd* and
	powerpc-*-netbsd* to netbsd-core.lo.  If COREFILE is
	netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
	* config.bfd (alpha*-*-netbsd*): New target.
	* Makefile.am: Rebuild dependencies.
 	(BFD32_BACKENDS): Add vaxnetbsd.lo.
	(BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
	* configure, Makefile.in: Rebuild.
1998-02-12 23:03:13 +00:00
Ian Lance Taylor 23b6505c78 update bug-gnu-utils address 1998-02-12 18:35:59 +00:00
Richard Henderson ba47566751 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
PR 14804
1998-02-12 01:12:14 +00:00
Nick Clifton bae2276c5b Do not complain when merging m32r binaries into m32rx binaries. 1998-02-11 00:13:05 +00:00
Nick Clifton 9cca77627b Fix PR14909 by reducing the paranoia in locating the assocaueted HI16S reloc
of a LO16 reloc.
1998-02-10 23:40:20 +00:00
Doug Evans 9eb7b67b39 * archures.c (bfd_mach_dvp_{vif,gif}): Renamed from ..._{pke,gpuif}.
(bfd_txvu_arch): Delete.
	* cpu-mips.c (arch_info_struct): dvp:{vif,gif} renamed from
	dvp:{pke,gpuif}.
	* bfd-in2.h: Regenerate.
1998-02-10 21:32:14 +00:00
Ian Lance Taylor 5303c57477 * configure.in: Change -linux* to -linux-gnu*.
* config.bfd, configure.host: Likewise.
	* configure: Rebuild.
1998-02-10 20:04:48 +00:00
Nick Clifton 6aa32b907b (PR14907) Fix HI16S/LO16 relocations when buf[-1] is evaluated. 1998-02-10 03:55:57 +00:00
Ian Lance Taylor 7ee4e307d6 * configure, aclocal.m4: Rebuild with new libtool. 1998-02-07 20:35:04 +00:00
Nick Clifton 8b6dcc1bb9 Do not initialise private data in output BFD if the input BFD is the default
architecture - instead allow future merges to do this.
1998-02-07 01:06:49 +00:00
Nick Clifton 75172c0f50 Do not generate an error message when merging v850 code into v850e/v850ea code. 1998-02-06 22:53:35 +00:00
Jeff Law bb1fd71fc5 Add missing sanitize markers in last ChangeLog entry. 1998-02-06 22:35:05 +00:00
Jeff Law 6f84b00f99 * cpu-mips.c (arch_info_struct): Make r5900 pointer size 32bits. 1998-02-06 22:30:45 +00:00
Jeff Law 9b47bc23b8 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
get the size from bfd_arch_bits_per_address instead of directly
        from the isa.
1998-02-06 18:50:34 +00:00
Ian Lance Taylor 1f2864765c * coff-i386.c (coff_pe_i386_relocate_section): New static function
if COFF_WITH_PE.
	(coff_relocate_section): If COFF_WITH_PE, define as
	coff_pe_i386_relocate_section.
	* coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
	skip empty sections, to match coff_write_object_contents.
1998-02-05 20:25:31 +00:00
Michael Meissner b494ec3e81 Do not allow BFD_ALIGN to wrap 1998-02-05 19:38:28 +00:00
Michael Meissner 29b7118aec Do not allow BFD_ALIGN to wrap 1998-02-05 19:29:29 +00:00
Ian Lance Taylor 4ea6538794 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
rather than swapping out r_offset twice.  From Luke Deller
 	<luked@cse.unsw.edu.au>.
1998-02-05 16:52:22 +00:00
Ian Lance Taylor 9a8379033e * configure.in: Set libtool_enable_shared rather than
libtool_shared.  Remove diversion hack.
	* configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
	with new libtool.
1998-02-05 00:16:01 +00:00
Ian Lance Taylor 68d864d786 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
* syms.c (struct stab_cache): Define.
	(struct stab_find_info): Remove cached_offset, cached_stab,
	cached_str, and cached_stroff fields.  Add file_cache,
	function_cache, and line_cache fields.
	(_bfd_stab_section_find_nearest_line): Use extensive caching to
	speed up searches.
1998-02-04 21:18:25 +00:00
Ian Lance Taylor 7f84fa70cf * peicode.h (pe_print_idata): Check for import of ordinal rather
than name.
	(pe_print_edata): If there is no .edata section, look for the
	export data in some other section.
1998-02-04 18:35:46 +00:00
Jason Molenda 229811d190 * configure.in: Change version to 2.8.4.
* configure: Regenerated.

GDB 4.17 is going to use BFD-2.8.3, so bump to 2.8.4 to avoid conflicts.
1998-02-03 04:09:26 +00:00
Ian Lance Taylor e8f2efef4d * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
make to reexamine the file timestamp.
	($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.

Mon Feb  2 17:39:39 1998  Steve Haworth  <steve@pm.cse.rmit.EDU.AU>

	Add tms320c30 support:
	* cpu-tic30.c: New file.
	* aout-tic30.c: New file.
	* coff-tic30.c: New file.
	* archures.c (bfd_arch_tic30): Define.
	(bfd_tic30_arch): Declare.
	(bfd_archures_list): Add bfd_tic30_arch.
	* targets.c (bfd_target_vector): Add tic30_aout_vec and
	tic30_coff_vec.
	* reloc.c (BFD_RELOC_TIC30_LDP): Define.
	* coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
	(coff_set_flags): Likewise.
	* config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
	* configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
	* Makefile.am: Rebuild dependencies.
	(ALL_MACHINES): Add cpu-tic30.lo.
	(ALL_MACHINES_CFILES): Add cpu-tic30.c.
	(BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
	(BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
	* configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
1998-02-02 22:49:54 +00:00
Nick Clifton 581d7269d0 Allow HI16_S reloc to lag behind LO16 reloc by a couple of instructions. 1998-02-02 20:37:53 +00:00
Ian Lance Taylor 1a58a2d805 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
0x100000.
1998-02-02 19:15:33 +00:00
Doug Evans c44b38d742 * elf32-mips.c (elf_mips_dvp_11_pcrel_howto): Set pcrel_offset=true
and partial_inplace=false.
	(mips_elf_relocate_section): Recognize R_MIPS_DVP_11_PCREL.
1998-01-31 00:11:35 +00:00
Doug Evans c62a82b5a0 * elf32-mips.c (elf_mips_dvp_11_pcrel_howto): Set pcrel_offset=true.
(mips_elf_relocate_section): Recognize R_MIPS_DVP_11_PCREL.
1998-01-31 00:11:34 +00:00
Ian Lance Taylor 8a5863beeb Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
* elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
	to create .dynsbss and .rela.sbss sections.
	(ppc_elf_adjust_dynamic_symbol): Put space for small data to be
	copied from dynamic objects into .sbss.
	(ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
	use it.  Correct typo of .rela.sdata2.
	(ppc_elf_finish_dynamic_symbol): Generate reloc to where we
	put the data, which may now be in .sbss.
	(ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
	(elf_backend_create_dynamic_sections): Define as
	ppc_elf_create_dynamic_sections.
	* elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
	against _GLOBAL_OFFSET_TABLE_.
 	(ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
	shared libraries which refer to local symbols.  Make sure that the
	test for allocating space for a reloc in a shared object is the
	same as the test for emitting a reloc.
1998-01-31 00:11:33 +00:00
Doug Evans 4ae438d7db Fix date in one entry. 1998-01-30 13:47:05 +00:00
Doug Evans 3134a2bdac * elf32-mips.c: Add dvp support. 1998-01-29 20:58:50 +00:00
Ian Lance Taylor 847b962945 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
* config.bfd (i[3456]-*-mingw32*): New target.
	* acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
	* aclocal.m4, configure: Rebuild.
1998-01-29 20:58:49 +00:00
Doug Evans a25897a9e5 remove sky stuff from elf32-mips.c 1998-01-29 17:17:15 +00:00
Doug Evans 7948d172e0 txvu support moved into mips [as dvp] 1998-01-29 10:19:35 +00:00
Doug Evans 36df40e0bf * config.bfd, configure.in: Add dvp support.
* configure: Regenerate.
	* aclocal.m4: Regenerate.
	* archures.c, reloc.c, cpu-mips.c: Add dvp support.
	* bfd-in2.h, libbfd.h, libcoff.h: Regenerate.
plus delete old txvu stuff, dvp generates mips files now
1998-01-28 18:42:55 +00:00
Ian Lance Taylor e6e3d4bdf4 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
have a bfd_object.
1998-01-28 18:42:54 +00:00
Doug Evans cf6f47e20f remove txvu stuff, now using only mips elf files 1998-01-28 10:44:28 +00:00
Richard Henderson 16ce62054b Sparc v9 ABI compliant PLT:
* elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
(plt_templates, sparc64_elf_build_plt_entry): Delete.
(LARGE_PLT_THRESHOLD): New define.
(GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
(sparc64_elf_build_plt): New function.
(sparc64_elf_plt_entry_offset): Likewise.
(sparc64_elf_plt_ptr_offset): Likewise.
(sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
contain the index for convenience.  Skip the initial entries
in .rela.plt.
(sparc64_elf_size_dynamic_sections): Zero the allocated contents
memory for the benefit of .rela.plt.
(sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
(sparc64_elf_finish_dynamic_symbol): Kill template stuff.  Use
sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
(sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
Call sparc64_elf_build_plt.
(elf_backend_want_got_plt): No.
(elf_backend_plt_readonly): No.
(elf_backend_plt_alignment): 8.
* elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
* elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
* elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
to be called.
1998-01-28 05:48:34 +00:00
Jeff Law 29410c45ae * archures.c (bfd_mach_mips*): Add definitions for various MIPS
processors.
        * cpu-mips.c (arch_info_struct): Add mips variants.
        * bfd-in2.h: Rebuilt.
1998-01-28 04:45:04 +00:00
Nick Clifton ba6ea759c9 Fix PR 14752 by preserving t2a3_b_insn 1998-01-27 23:15:16 +00:00
Ian Lance Taylor a3e62cc05b Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
* config.bfd (i[3456]86-sco3.2v5*) ELF now the default.
	(i[3456]86sco3.2v5*coff) New target.
1998-01-27 17:48:57 +00:00
Ian Lance Taylor f1dc7bb282 * bfd-in2.h: Rebuild with changes to chew--tab expansion. 1998-01-26 20:43:50 +00:00
Richard Henderson f3da143925 * bfd.c (bfd_get_error_handler): Add orthogonal function.
* bfd-in2.h: Regenerate.
1998-01-23 05:27:42 +00:00
Richard Henderson 31af3ca9f6 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
PR 14422
1998-01-23 05:14:12 +00:00
Ian Lance Taylor f5e23c73d7 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
adjust addend for an output common symbol (from Jimmy Blair
 	<jimmyb@wrs.com>).  If COFF_WITH_PE, adjust addend for PC relative
 	defined symbol to counteract adjustment made in generic relocation
 	code.
1998-01-22 04:58:01 +00:00
Ian Lance Taylor f66ce2ff1a comment fix 1998-01-22 03:18:51 +00:00
Ian Lance Taylor d73400505b * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h. 1998-01-22 02:19:35 +00:00
Ian Lance Taylor bc01e4a2eb * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
(GET_SCNDHR_NLNNO): Likewise.
1998-01-22 02:17:53 +00:00
Doug Evans 0820c2f8f9 checkpoint 1998-01-21 01:43:40 +00:00
Doug Evans d707219dc9 * reloc.c (BFD_RELOC_TXVU_11_PCREL): New reloc.
* bfd-in2.h: Regenerate.
	* libbfd.h: Regenerate.
	* elf32-txvu.c (txvu_elf_howto_table): Add entry for it.
	(txvu_reloc_map): Likewise.
1998-01-20 23:14:05 +00:00
Ian Lance Taylor e79e79cf37 * cpu-sh.c (arch_info_struct): Correct next field of sh3e. 1998-01-19 17:50:41 +00:00
Nick Clifton cc662e8676 Add macros to handle NOP insertion. 1998-01-15 01:26:02 +00:00
Richard Henderson 16b7d65d5a * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
(xcoff_mark): Likewise.
        (xcoff_build_ldsyms): Mark absolute symbols.
PR 14000
1998-01-15 00:17:55 +00:00
Richard Henderson 52dcb248fb * bout.c (b_out_write_object_contents): Sort symbols before output
to keep {CALL,BAL}NAME symbols adjacent.
        (b_out_symbol_cmp): New function.
1998-01-15 00:01:17 +00:00