Commit graph

2587 commits

Author SHA1 Message Date
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
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
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
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
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
Ian Lance Taylor
47d9c13912 * elf32-sparc.c (elf32_sparc_check_relocs): If -Bsymbolic, don't
allocate space for a PC relative reloc against a symbol which is
	defined in a regular file.
	(elf32_sparc_relocate_section): If -Bsymbolic, don't copy a PC
	relative reloc against a symbol which is defined in a regular
	file.
1997-12-30 09:48:42 +00:00
Ian Lance Taylor
14bf95ea71 From Jonathan Stone <jonathan@DSG.Stanford.EDU>:
* config.bfd (mips-dec-netbsd*): Add ECOFF vectors to
	targ_selvecs.
	(mips*el-*-netbsd*): Like mips-dec-netbsd*.
	(mips*-*-netbsd*): New target.
1997-12-29 15:04:55 +00:00
Ian Lance Taylor
7e3d76b7a4 * elflink.h (elf_link_assign_sym_version): Change error message
from "undefined version name" to "undefined versioned symbol
	name".
1997-12-29 14:16:59 +00:00
Nick Clifton
0f3003ef0b Fixed typo from my previous delta. 1997-12-29 11:45:12 +00:00
Ian Lance Taylor
77e4176e43 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Declare.
* libbfd.h: Rebuild.
1997-12-23 14:14:03 +00:00
Ian Lance Taylor
9ae77ebee2 * peicode.h (coff_swap_scnhdr_out): Set .reloc section to be
shared.  Set stab* sections to be shared and read.  Set .rsrc
	section to be read and shared.
1997-12-23 14:02:39 +00:00
Doug Evans
20b2c808b8 * Makefile.am (ALL_MACHINES,BFD32_BACKENDS): Add txvu support.
(cpu-txvu.lo,elf32-txvu.lo): Add rules for.
	* Makefile.in: Rebuild.
	* config.bfd, configure.in: Add txvu support.
	* configure: Regenerate.
	* archures.c, elf.c, targets.c: Add txvu support.
	* bfd-in2.h: Regenerate.
	* cpu-txvu.c, elf32-txvu.c: New files.
1997-12-22 16:47:21 +00:00
Ian Lance Taylor
d92329a97c * Makefile.am: Rebuild dependencies.
(ALL_MACHINES_CFILES): Add dwarf2.lo.
	(ALL_MACHINES_CFILES): Add dwarf2.c.
	* Makefile.in: Rebuild.
1997-12-22 10:51:42 +00:00
Ian Lance Taylor
0b3fcc1c53 Mon Dec 22 13:04:33 1997 Joel Sherrill <joel@oarcorp.com>
* config.bfd (i[3456]86*-go32-rtems*): Fix to be the same as
	i[3456]86-go32.
1997-12-22 10:05:34 +00:00
Nick Clifton
6124cd1e59 Fixed segmentation violation detected by LD testsuite. 1997-12-17 12:51:37 +00:00
Nick Clifton
0f9d6eeb60 Fail if there is not enough room for program headers. 1997-12-17 09:47:59 +00:00
Brendan Kehoe
f07263913a note that the fix for --enable-shared is not the real way it needs to
be done; libtool.m4 needs a change of some sort instead
1997-12-16 16:16:41 +00:00
Nick Clifton
085e370b46 Fixed m32rx sanitization 1997-12-16 16:04:57 +00:00
Nick Clifton
a3240f6857 Added m32rx sanitization. 1997-12-16 14:38:21 +00:00
Gavin Romig-Koch
eae435160e Add _bfd_dwarf2_find_nearest_line. 1997-12-16 05:14:30 +00:00
Nick Clifton
2e0a5c1051 improve support for m32rx processor. 1997-12-16 00:12:39 +00:00
Fred Fish
f60c3b7080 * coffcode.h (ALIGN_SECTIONS_IN_FILE): Define if I960 not defined.
(coff_compute_section_file_positions): Use ALIGN_SECTIONS_IN_FILE
	to decide when to align the file sections for paging.
	* coffcode.h (ALIGN_SECTIONS_IN_FILE): Undefine for TIC80COFF.
PR 13814
1997-12-15 23:16:12 +00:00
Nick Clifton
a5fdb81613 Add support for m32rx processor. 1997-12-15 23:10:11 +00:00
Brendan Kehoe
3607f666e6 * configure: Only build libbfd shared if --enable-shared's value
was `yes', or was set to `*bfd*'.
        * aclocal.m4: Likewise.

so `--enable-shared=libstdc++' doesn't result in building a shared libbfd.
1997-12-15 19:52:32 +00:00
Nick Clifton
cd66558c07 Renamed v850eq -> v850ea 1997-12-12 19:05:07 +00:00
Richard Henderson
5b3a74e8b8 * linker.c (generic_link_add_symbol_list): Always init udata.p so
that the generic relaxation code can function when input and output
        file formats are mismatched.
1997-12-12 01:48:58 +00:00
Ian Lance Taylor
a3f1e78a6c * coff-sh.c (bfd_coff_small_swap_table): Initialize new fields. 1997-12-11 06:08:05 +00:00
Ian Lance Taylor
5ee8d9327b * elflink.h (elf_link_input_bfd): Handle a relocateable link in
which a relocation refers to an indirect or warning symbol.
1997-12-11 04:38:44 +00:00
Nick Clifton
5b6f4b31fc Fixed overflow from a LO16 reloc into a HI16_S reloc. 1997-12-10 19:20:31 +00:00
Michael Meissner
de7483285a Switch to using RELA relocations for the d30v. 1997-12-10 19:08:51 +00:00
Andrew Cagney
c02ed6a8a3 For bfd, add vr5400 and vr5000 mips machine variants to list of machines.
For sim/mips, enable multi-sim support when mips64vr5400-elf is target.
For sim/igen, allow specification of a default machine (will need
more work later).
1997-12-09 04:01:06 +00:00
Nick Clifton
0a5875fc63 Fix HI16 and HI16_S relocations for PR14258 1997-12-06 00:57:20 +00:00
Nick Clifton
22a9f052de Fix PR14180 and 14181 (patch from branch) 1997-12-05 19:37:35 +00:00