Commit Graph

3971 Commits

Author SHA1 Message Date
Ian Lance Taylor
715c11f963 Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* elf32-m68k.c (reloc_map): Use the correct types for the struct
	fields instead of unsigned char.
1999-02-08 16:19:20 +00:00
Ian Lance Taylor
7598005b99 * Makefile.am: Rebuild dependencies.
* Makefile.in: Rebuild.
1999-02-05 05:23:15 +00:00
Ian Lance Taylor
0d5c57a5b0 rebuild 1999-02-05 05:01:12 +00:00
Ian Lance Taylor
40a6597a59 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
	AC_PROG_INSTALL.  Add comments to uses of AC_DEFINE.
	* acinclude.m4: Add comments to uses of AC_DEFINE.
	* acconfig.h: Remove.
	* configure: Rebuild with current autoconf/automake.
	* aclocal.m4: Likewise.
	* config.in: Likewise.
	* Makefile.in: Likewise.
1999-02-05 04:59:41 +00:00
DJ Delorie
e854542252 * libbfd.c (real_read): don't call fread for zero bytes. This
covers up a bug (or misuse of bfd) that's exposed by Solaris.
1999-02-05 02:29:30 +00:00
Stan Cox
870b15c5dd * elf32-mips.c (mips_elf_relocate_section): Insure that the target
of a jump is in the current 256 MB region.
1999-02-04 22:35:39 +00:00
Ian Lance Taylor
3446cf02bc * format.c (bfd_check_format_matches): Change last patch to only
take effect for the binary target.
1999-02-04 17:16:05 +00:00
Ian Lance Taylor
b466dbe064 x 1999-02-04 00:50:08 +00:00
Catherine Moore
c7fde2d901 add elf_fr30_check_relocs. 1999-02-03 21:09:07 +00:00
Ian Lance Taylor
6efd50e3f7 * format.c (bfd_check_format_matches): If the target was
previously specified, don't check other targets when checking for
	an archive file.
1999-02-03 02:39:33 +00:00
Catherine Moore
5ce0edb79e * elf32-arm.h (elf32_arm_reloc_map): Removed.
(elf32_arm_reloc_type_lookup):  Removed
        * elfarm-nabi.c (elf32_arm_reloc_map):  New.
        (elf32_arm_reloc_type_lookup):  New.
        * elfarm-oabi.c (elf32_arm_reloc_map):  New.
        (elf32_arm_reloc_type_lookup):  New.
1999-02-03 02:20:12 +00:00
Michael Meissner
64381ab4ee Change M32RX sanitization from m32rx sanitization to normal Cygnus sanitization 1999-02-02 23:52:42 +00:00
Catherine Moore
9aff0cd797 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
* elfarm-oabi.c:  Renamed from elf32-arm-oldabi.c
        * Makefile.am:  Use new files.
        * Makefile.in:  Regenerate.
        * configure.in:  Use new files.
        * configure:  Regenerate.
1999-02-02 03:55:35 +00:00
Catherine Moore
1beed5db70 remove elf32-arm.c.
add elf32-arm-oldabi., elf32-arm-newabi.c, elf32-arm.h
1999-02-01 22:36:29 +00:00
Nick Clifton
7f7cef942c Add GC support. 1999-02-01 20:23:31 +00:00
Catherine Moore
6712be04be * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
and bfd_elf32_bigarm_oabi_vec.
1999-02-01 20:23:30 +00:00
Catherine Moore
95c5070c6e * Makefile.am (elf32-arm-oldabi.lo): New.
(elf32-arm-newabi.lo):  New.
        * Makefile.in:  Regenerate.
        * config.bfd (thumb-*-elf):  Remove definition of targ_underscore.
        (arm-*-elf):  Likewise.
        (arm-*-oabi):  New.
        (thumb-*-oabi):  New.
        * configure:  Regenerate.
        * configure.in (bfd_elf32_littlearm_oabi_vec):  New.
        (bfd_elf32_bigarm_oabi_vec):  New.
        * elf32-arm-newabi.c:  New.
        * elf32-arm-oldabi.c:  New.
        * elf32-arm.c:  Removed.
        * elf32-arm.h:  New.
1999-02-01 20:21:00 +00:00
Nick Clifton
0835d7d74a Remove sanitization of v850e-elf 1999-02-01 11:13:44 +00:00
Frank Ch. Eigler
d5a63bdef1 * "objcopy -O binary" warning tweak, suggested by dmoseley
Mon Feb  1 11:52:12 1999  Frank Ch. Eigler  <fche@cygnus.com>
	* binary.c (binary_set_section_contents): Omit warnings for
	unloadable sections.
1999-02-01 09:05:43 +00:00
Vladimir Makarov
1ec5bd10de 1999-01-31 Michael Meissner <meissner@cygnus.com>
* config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
	powerpc{,le}-*-eabi.
1999-01-31 23:59:10 +00:00
Nick Clifton
521f02c8bc Remove unused variables 1999-01-29 12:57:16 +00:00
Ian Lance Taylor
005b252712 Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
* elf.c (assign_file_positions_for_segments): Only adjust
	p_align when needed.
1999-01-29 05:48:43 +00:00
Ian Lance Taylor
a96acce310 * binary.c (binary_set_section_contents): Don't return early for a
non-loadable section, in case the first section is non-loadable.
  	Don't set the low lma for a SEC_NEVER_LOAD section.  From Maciej
	W. Rozycki <macro@ds2.pg.gda.pl>.
1999-01-29 01:07:32 +00:00
Nick Clifton
7b58591634 Add support for ZVTINHERIT and VTENTRY relocs. 1999-01-28 17:17:17 +00:00
Catherine Moore
98790d3a95 * elflink.h (elf_link_output_sym): Zero syms which are
part of sections which have been excluded.
1999-01-28 17:17:16 +00:00
Stan Cox
84a9fc2748 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC to F_PIC_INT.
* coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
F_ARM_3M labels.  Changed F_PIC to F_PIC_INT.
1999-01-27 22:57:06 +00:00
Nick Clifton
d423a5cadc Fix bug in handling R_FR20 relocations. 1999-01-27 12:17:28 +00:00
Frank Ch. Eigler
223fff6650 * Patch for PR 18607.
1999-01-26  Frank Ch. Eigler  <fche@cygnus.com>
	* binary.c (binary_set_section_contents): Emit warning for
	huge file offsets due to widely-dispersed section LMAs.
1999-01-26 16:46:13 +00:00
Jeff Law
5eb715f834 am33 sanitization changes 1999-01-26 14:40:02 +00:00
Jason Molenda
d5159c2520 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Require autoconf 2.12.1 or higher.
1999-01-05 00:27:19 +00:00
Catherine Moore
1ec3146a44 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
* bfd-in2.h:  Likewise.
        * cpu-i386.c (bfd_i386_arch_intel_syntax):  New.
1998-12-22 21:22:48 +00:00
Felix Lee
1e012f703e sanitization fix. 1998-12-18 16:43:49 +00:00
Gavin Romig-Koch
fd85b79fcf Handle vr4111 1998-12-16 07:17:25 +00:00
Gavin Romig-Koch
02650bd0a9 This adds ABI flags to MIPS/ELF object files.
For bfd:
	* elf32-mips.c (elf_mips_abi_name): New.
	(_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.

For gas:
	* config/tc-mips.c (mips_abi_string): New.
	(md_parse_option,md_longopts): Add mabi.
	(mips_elf_final_processing): Set e_flags based on mabi flag.

For gcc:
	* config/mips/mips.h (GAS_ASM_SPEC): Pass mabi to gas.
	(ABI_GAS_ASM_SPEC,abi_gas_asm_spec): New.
	(EXTRA_SPECS): Added ABI_GAS_ASM_SPEC,abi_gas_asm_spec.

For include/elf:

	* mips.h (EF_MIPS_ABI,E_MIPS_ABI_O32,E_MIPS_ABI_O64,
	E_MIPS_ABI_EABI32,E_MIPS_ABI_EABI64):
1998-12-15 14:10:46 +00:00
Gavin Romig-Koch
f14397f057 for bfd:
* archures.c,bfd-in2.h (bfd_mach_mips4121): New.
	* cpu-mips.c: Added vr4121.
	* elf32-mips.c (elf_mips_mach): Same.
	(_bfd_mips_elf_final_write_processing): Same.

for gas:
	* config/tc-mips.c (mips_4121): New.
	(md_begin,mips_ip,md_longopts,md_parse_option): Add vr4121.

for gcc:
	* config/mips/mips.c (override_options): Add vr4121.
	* config/mips/t-vr4xxx (MULTILIB_MATCHES): Same.

for include/elf:
	* mips.h (E_MIPS_MACH_4121): New.

for include/opcode:
	* mips.h (INSN_4121): New.

for opcodes:
	* mips-dis.c (set_mips_isa_type): Add bfd_mach_mips4121.
	(_print_insn_mips): Same.
	* mips-opc.c: Add vr4121.

for sim/mips:
	* configure.in,mips.igen,vr.igen: Add vr4121.
	* configure: Rebuilt.
1998-12-13 16:14:24 +00:00
Gavin Romig-Koch
b3f1799e81 elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle bfd_mach_mips4300. 1998-12-12 22:22:11 +00:00
Doug Evans
bcb601c149 * config.bfd (mips64el-skyb-elf): added new target 1998-12-12 17:07:24 +00:00
Ulrich Drepper
dee563f348 Update. 1998-12-11 17:14:50 +00:00
Ulrich Drepper
986b3b988a Update. 1998-12-10 22:48:35 +00:00
Ulrich Drepper
5f49173db3 (elf_i386_relocate_section): Don't fail relocations in debug sections
for symbol defined externally.
1998-12-10 22:47:25 +00:00
Ian Lance Taylor
da7f0954c9 * targets.c (bfd_target_vector): Remove duplicate entry for
tekhex_vec.
1998-12-10 16:01:06 +00:00
Nick Clifton
863553274c Fix generic relocs to work as RELAs not RELs. 1998-12-09 10:26:33 +00:00
Ian Lance Taylor
ed9f8d9414 SCO Open Server Release 5 core file support, from Jouke Numan
<jnuman@hiscom.nl>:
	* sco5-core.c: New file.
	* configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
	(sco5-core.lo): Define SCO5_CORE in COREFLAG.
	* Makefile.am: Rebuild dependencies.
	(OPTIONAL_BACKENDS): Add sco5-core.lo.
	(OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
	* bfd.c (struct _bfd): Add sco5_core_data field to tdata.
	* targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
	* bfd-in2.h, configure, Makefile.in: Rebuild.
1998-12-09 03:23:25 +00:00
Ian Lance Taylor
fa2b5a73cf Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
* config.bfd (hppa*-*-mpeix*): New target.
	* configure.in: Add AC_HEADER_DIRENT.
	(hppa*-*-mpeix*): New target.
	* configure.host (hppa*-*-mpeix*): New host.
	* hpux-core.c: Check HOST_HPPAMPEIX.  Use HAVE_DIRENT_H and
	friends rather than just including <sys/dir.h>.
	* som.h (struct som_symbol): Add hppa_priv_level and apto
	tc_data.  Change all users.
	(struct somdata): Add comp_unit field.
	(obj_som_compilation_unit): Define.
	(bfd_som_attach_compilation_unix): Declare.
	* som.c: Check HOST_HPPAMPEIX.
	(struct som_misc_symbol_info): Add new field priv_level.
	(som_object_setup): Add current_offset parameter.  Change all
	callers.
	(setup_sections): Likewise.
	(som_object_p): For EXECLIBMAGIC, read the lst header.
	(som_write_symbol_strings): Add compilation_unit parameter.
	Change all callers.
	(som_finish_writing): Write out compilation_unit.
	(som_bfd_derive_misc_symbol_info): Set priv_level.
	(som_build_and_write_symbol_table): Set xleast field to 3.
	(som_slurp_symbol_table): Set symbol priv_level.
	(bfd_som_attach_compilation_unit): New function.
	(som_bfd_ar_write_symbol_stuff): Set xleast field to 3.  Set
	priv_level into symbol_value.
	* configure, config.in: Rebuild.
1998-12-09 00:49:31 +00:00
Ian Lance Taylor
943695fcb9 * libbfd.c (COERCE32): Cast through unsigned long and long to
avoid bug in old version of gcc.
1998-12-08 21:55:15 +00:00
Ian Lance Taylor
a0acbf4ab5 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
(elf_backend_additional_program_headers): Don't define.
1998-12-08 21:22:47 +00:00
Nick Clifton
811c57ffa1 Fix pc relative relocs. 1998-12-08 15:44:06 +00:00
David Taylor
8ecd559a56 HP merge changes by David Taylor, Edith Epstein, Jim Blandy, and Elena
Zannoni.

	* hpux-core.c (hpux_core_core_file_p): this function now
 	understands HPUX 10.30 thread info. Yes, the thread stacks can be
 	found in the corefile! Also, in hpux_core_core_file_p, if we
 	encounter a section with an unknown type, don't punt.  Instead,
 	just skip it.  Also, count the number of sections of known type
 	that we encounter.  If we encounter at least one good one, then
 	we'll declare that the file is a core file.  If we encounter any
 	unknown ones but some known ones, then we'll issue a warning (but
 	still declare it to be a core file). Also, correctly decide when a
 	file is not a core.
	(PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
	(CORE_ANON_SHMEM): define if not defined.
	(hpux_core_struct): add members lwpid and user_tid.
	(core_kernel_thread_id, core_user_thread_id): new macros.
	(make_bfd_asection): use bfd_alloc to allocate room for a copy of
 	the name before storing it in the bfd.
	(hpux_core_core_file_p): handle threads.

	* libhppa.h (GET_FIELD): protect against redefinition.
	(HPPA_WIDE): define.
	(GET_FIELD): define.
	(GET_BIT): define.
	(MASK): define.
	(CATENATE): define.
	(ELEVEN): define.
	(sign_extend): redefine.
	(assemble_6): define.
	(assemble_12): rewrite.
	(assemble_16): define.
	(assemble_16a): define.
	(assemble_17): rewrite.
	(assemble_22): define.
1998-12-08 15:44:05 +00:00
Nick Clifton
8f34fce550 Use signed values for signed relocaitons. 1998-12-07 13:23:17 +00:00
Ian Lance Taylor
b447de7ace * mipsbsd.c (MY(set_arch_mach)): Make static.
* aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
	bfd_mach_mips* macros rather than simple numbers.
1998-12-07 03:39:20 +00:00