Commit Graph

25041 Commits

Author SHA1 Message Date
Ian Lance Taylor 54d22525bb * hash.h: Neaten. Declare hash_traverse.
* hash.c: Complete rewrite based on BFD hashing code.
1999-06-02 23:22:50 +00:00
Richard Henderson 4305932a21 Jason Merrill <jason@yorick.cygnus.com>
* scripttempl/v850.sc: Add initp support.
1999-06-02 20:47:23 +00:00
Richard Henderson 2581206fa2 Shouldn't have escaped. 1999-06-02 20:33:41 +00:00
Mark Mitchell d2905643ff * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
* elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
	(mips_elf64_howto_table_rela): Likewise.
1999-06-02 18:17:59 +00:00
Mark Mitchell 42fdc50906 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
* elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
	(mips_elf64_howto_table_rela): Likewise.
	* elfcode.h (elf_slurp_reloc_table_from_section): New function,
	split out from ...
	(elf_slurp_reloc_table): Here.  Use it to handle the case where a
	single section has two associated relocation sections.
1999-06-02 18:16:48 +00:00
Richard Henderson 6e3db71c77 Stu Grossman <grossman@babylon-5.cygnus.com>
* dwarf.h: Add LANG_JAVA.
        * dwarf2.h: Add DW_LANG_Java.
1999-06-02 18:14:14 +00:00
Mark Mitchell 6c8cb66eb1 Update copyright dates. 1999-06-02 16:31:16 +00:00
Richard Henderson c71c54c969 Update copyright. 1999-06-02 16:11:43 +00:00
Richard Henderson 9d8cefa978 Mark Salter <msalter@cygnus.com>
* coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
        COFF_WITH_PE defined.
1999-06-02 15:36:48 +00:00
Nick Clifton c9fca91dfb Rename interworking functions to avoid a name space collision 1999-06-02 14:27:10 +00:00
Nick Clifton 46d23b7c90 Rename ARM interworking functions to avoid a name space collision 1999-06-02 14:26:01 +00:00
Mark Mitchell bf572ba0b9 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
may_use_rel_p, may_use_rela_p, default_use_rela_p.
	(bfd_elf_section_data): Add use_rela_p.
	* elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
	(_bfd_elf_new_section_hook): Likewise.
	(elf_fake_sections): Use may_use_rela_p, etc., instead of
	use_rela_p.
	(_bfd_elf_copy_private_section_data): Copy use_rela_p.
	* elfcode.h (write_relocs): Determine whether or not use rela
	relocs based on the relocation section header.
	* elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
	instead of use_rela_p.
	* elfxx-target.h (elf_backend_may_use_relp): New macro.
	(elf_backend_may_use_rela_p): Likewise.
	(elf_backend_default_use_rela_p): Likewise.
	(elfNN_bed): Use them.
1999-06-02 13:01:04 +00:00
Richard Henderson 3fe702fddf * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096. 1999-06-02 12:39:44 +00:00
Richard Henderson d8bcc1ac10 * dlltool.c (gen_exp_file): Revert 19990411 change. 1999-06-02 12:37:48 +00:00
Richard Henderson cd785be602 Forgot to commit. 1999-06-02 12:29:27 +00:00
Mark Mitchell 3f830999e3 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
(BFD_RELOC_MIPS_GOT_PAGE): Likewise.
	(BFD_RELOC_MIPS_GOT_OFST): Likewise.
	(BFD_RELOC_MIPS_GOT_DISP): Likewise.
	* bfd-in2.h: Regenerated.
	* libbfd.h: Likewise.
	* elf32-mips.c (mips_info_to_howto_rela): New function.
	(USE_REL): Adjust for new conventions.
	(MINUS_ONE): New macro.
	(elf_mips_howto_table): Add R_MIPS_SUB.
	(mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
	and MIPS_GOT_DISP.
	(mips_elf_final_write_processing): Set sh_link, not sh_info, for a
	.MIPS.content section.
	(_bfd_mips_elf_fake_sections): Treat all sections that begin
	with .MIPS.content as .MIPS.content sections.  Set
	SHF_MNIPS_NOSTRIP for such section.
	(elf_info_to_howto): Define to mips_info_to_howto_rela.
	* elf64-mips.c (mips_r):  Add entries for MIPS_SUB, MIPS_GOT_PAGE,
	MIPS_GOT_OFST, and MIPS_GOT_DISP.
1999-06-02 10:20:16 +00:00
Andreas Schwab 015985c9fc * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
variable.
1999-06-02 02:56:30 +00:00
Andreas Schwab 70f06c4ad0 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
`else'.
1999-06-02 02:53:21 +00:00
Jason Molenda ac9a91a77c import gdb-1999-06-01 snapshot 1999-06-01 15:44:41 +00:00
Andreas Schwab aa903cfb1b * readelf.c (process_relocs): Determine type of reloc from
DT_PLTREL and from section type.
1999-05-31 00:58:59 +00:00
Richard Henderson af754d91f9 Cort Dougan <cort@cs.nmt.edu>
* config.guess (ppc-*-linux-gnu): Also use ld emul elf32ppclinux.
1999-05-30 16:06:14 +00:00
Richard Henderson ec2f040d55 Cort Dougan <cort@attis.cs.nmt.edu>
* Makefile.am (ALL_EMULATIONS): Add eelf32ppclinux.o.
        * configure.tgt (powerpc-*-linux-gnu): Use it.
        * emulparams/elf32ppclinux.sh: New file.
1999-05-30 15:55:31 +00:00
Nick Clifton 2ef994e0d6 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
	1993-03-25 (!!).  Take into account the bitmasks for the reloc so
	the addend does not overflow into the rest of the word
1999-05-30 11:36:53 +00:00
Ian Lance Taylor 511ab9e95b * ld.texinfo (Options): Clarify that options which refer to files
must be properly ordered.
1999-05-29 19:43:33 +00:00
Nick Clifton ba96a88f08 Fix implementation of R_ARM_PC24 and R_ARM_THM_PC22 relocs to conform to spec. 1999-05-29 11:05:22 +00:00
Nick Clifton 7ca69e9e10 Implement new command line option for new ABI: -p which prevents the ARM code
from exhibiting any knowledge of the length of the processor's pipeline.
1999-05-29 10:57:44 +00:00
Nick Clifton ab5e779453 Display unknown values detected in ELF program header. 1999-05-29 10:51:14 +00:00
Nick Clifton 661e4995b2 Include pipeline offset in addend unless dealing with an old ABI. 1999-05-29 10:47:20 +00:00
Nick Clifton 3d4920d7c3 Define ELFOSABI_ARM 1999-05-29 10:42:45 +00:00
Nick Clifton ccf04c82c7 fix typo. 1999-05-29 09:09:39 +00:00
Nick Clifton 04a866f231 remove spurious code. 1999-05-28 17:24:21 +00:00
Doug Evans d9a622197d -Wchar-subscripts cleanup
* listing.c (listing_newline): Use unsigned char variable, so
 	calls to isascii,iscntrl are correct.
	* atof-generic.c (atof_generic): Cast arg to isdigit, et. al. with
	(unsigned char).
	* ecoff.c (ecoff_directive_ent,ecoff_stab): Ditto.
	* config/obj-elf.c (obj_elf_vtable_inherit): Ditto.
	* config/tc-mips.c (mips_ip,mips16_ip): Ditto.
	(my_getSmallExpression,get_number,s_mips_ent): Ditto.
1999-05-28 15:28:56 +00:00
Jeff Law cd8a80baf2 * hppa.h (pa_opcodes): Move integer arithmetic instructions after
integer logical instructions.
1999-05-28 14:26:52 +00:00
Nick Clifton e6c51ed4df Initialise EI_OSABI and EI_ABIVERSION fields of e_ident array.
Add ability for backends to process program and section headers after they
have been created.
1999-05-28 13:24:33 +00:00
Nick Clifton 229cf42b33 fix typo. 1999-05-28 10:53:04 +00:00
Nick Clifton b3043ee4e2 Minor formatting changes. 1999-05-28 10:50:29 +00:00
Nick Clifton e15e4a6398 Update comment 1999-05-28 10:47:30 +00:00
Nick Clifton 9c19a80986 Better coping with different reloc types. 1999-05-28 10:14:11 +00:00
Ian Lance Taylor 633fd09f3c * configure.in: Check whether getuid and getgid exist.
* archive.c: Define getuid and getgid as macros if HAVE_GETUID or
	HAVE_GETGID are not defined, respectively.
	(bfd_write_armap): Don't special case on _WIN32 for getuid and
	getgid.
	* configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
	* configure, config.in: Rebuild.
1999-05-27 22:48:53 +00:00
Ian Lance Taylor 6da466c730 1999-05-28 Torbjorn Granlund <tege@matematik.su.se>
* config/tc-m68k.c (m68k_ip): Check for disallowed index register
	width for Coldfire.
	(arch_coldfire_p): New #define.
	(m68k_ip, m68k_init_after_args): Use arch_coldfire_p.
1999-05-28  Linus Nordberg  <linus.nordberg@canit.se>
	* config/tc-m68k.c (install_operand): Add places `n', `o'.
	* config/tc-m68k.c (m68k_ip): Add formats `E', `G', `H'.
	(install_operand): Add place `N'.
	(init_table): Add registers ACC, MACSR, MASK.
	* config/m68k-parse.h (m68k_register): Add ACC, MACSR, MASK.
	* config/tc-m68k.c: Change mcf5200 --> mcf.
	(archs): Add mcf5206e, mcf5307.
	(m68k_ip): Add format `u'.
	(install_operand): Add place `m', `M', `h'.
	(init_table): Add upper/lower registers.
	* config/m68k-parse.h (m68k_register): Add upper/lower registers.
1999-05-27 22:36:51 +00:00
Ian Lance Taylor 461d5ddde0 1999-05-28 Linus Nordberg <linus.nordberg@canit.se>
* m68k-opc.c: Rename MACL/MSACL to MAC/MSAC.  Add MACM/MSACM.  Add
	MOVE MACSR,CCR.
	* m68k-dis.c (fetch_arg): Add places `n', `o'.
	* m68k-opc.c: Add MSAC, MACL, MOVE to/from ACC, MACSR, MASK.
	Add mcf5206e to appropriate instructions.
	Add alias for MAC, MSAC.
	* m68k-dis.c (print_insn_arg): Add formats `E', `G', `H' and place
	`N'.
	* m68k-opc.c (m68k_opcodes): Add divsw, divsl, divuw, divul, macl,
	macw, remsl, remul for mcf5307.  Change mcf5200 --> mcf.
	* m68k-dis.c: Add format `u' and places `h', `m', `M'.
1999-05-27 22:33:14 +00:00
Ian Lance Taylor 1fca749bd1 1999-05-28 Linus Nordberg <linus.nordberg@canit.se>
* m68k.h: Document new formats `E', `G', `H' and new places `N',
	`n', `o'.
	* m68k.h: Define mcf5206e, mcf5307, mcf.  Document new format `u'
	and new places `m', `M', `h'.
1999-05-27 22:31:03 +00:00
Ian Lance Taylor 0d59e34570 * binutils-all/readelf.h: Update for changes of 1999-04-08. 1999-05-27 22:05:26 +00:00
Ian Lance Taylor 63fcb9e946 * readelf.c: Include "elf/i960.h".
(dump_relocations): Handle EM_960.
1999-05-27 22:04:40 +00:00
Ian Lance Taylor 0dbfb37cce * gas/vtable/vtable.exp: Don't run test for i960 yet. 1999-05-27 21:58:10 +00:00
Ian Lance Taylor bedf545c12 1999-05-28 Martin Dorey <mdorey@madge.com>
* config/tc-i960.c: Several minor changes to add ELF and
	BFD_ASSEMBLER support.
	* config/tc-i960.h: Likewise.
	* configure.in (i960-*-elf*): New target.
	* aclocal.m4, configure: Rebuild.
1999-05-27 21:57:48 +00:00
Ian Lance Taylor 5379904c27 rebuild dependencies 1999-05-27 21:54:35 +00:00
Ian Lance Taylor 0ccf812a6e 1999-05-28 Martin Dorey <mdorey@madge.com>
* configure.tgt (i960-*-elf*): New target.
	* emulparams/elf32_i960.sh: New file.
	* Makefile.am (ALL_EMULATIONS): Add eelf32_i960.o.
	(eelf32_i960.c): New target.
	* Makefile.in: Rebuild.
1999-05-27 21:49:21 +00:00
Ian Lance Taylor dc93fc57a9 fix copyrights 1999-05-27 21:44:39 +00:00
Ian Lance Taylor b2ef150dc1 1999-05-28 Martin Dorey <mdorey@madge.com>
* elf32-i960.c: New file.
	* elf.c (prep_headers): Handle bfd_arch_i960.
	* targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
	* config.bfd (i960-*-elf*): New target.
	* configure.in (bfd_elf32_i960_vec): New target vector.
	* Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
	(BFD32_BACKENDS_CFILES): Add elf32-i960.c.
	* Makefile.in, aclocal.m4, configure: Rebuild.
1999-05-27 21:42:14 +00:00