Commit graph

3760 commits

Author SHA1 Message Date
Nick Clifton
384fff9c9b Do not complain about overflows in ARM_26D relocations, since they have already been performed.
Patch submitted by <rjb@dcs.gla.ac.uk>
1998-07-06 18:38:19 +00:00
Ian Lance Taylor
69c3ef085f * coffcode.h (coff_write_object_contents): If we have any long
section names, call coff_write_symbols even if there are no
	symbols.
1998-07-04 16:27:08 +00:00
Ian Lance Taylor
369ee5df3e * elf.c (copy_private_bfd_data): Only set phdr_included oncde for
a PT_LOAD segment, rather than only setting it once for the entire
	file.

	* elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
	rather than ignoring every phdr with a p_paddr of 0, ignore all
	the phdrs if they all have a p_paddr of 0.
1998-07-03 17:45:52 +00:00
Ian Lance Taylor
81db6a9e28 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
section was discarded from the link.
1998-07-03 17:12:22 +00:00
Joern Rennecke
a83a26f74a Brought over from sh4-980527-branch:
Fix for execute/va-arg-5.c -Os -mrelax -m4-single failure:
	* coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
1998-07-03 13:43:16 +00:00
Joern Rennecke
0ea9d7bc70 Brought over from sh4-980527-branch:
Fix for execute/921208-1.c -Os -mrelax -m4-single failure:
	* coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
	floating point operations.
1998-07-03 13:40:08 +00:00
Ian Lance Taylor
bf47f02283 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
function symbols.
1998-07-02 22:40:45 +00:00
Ian Lance Taylor
0dc4c667ac Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
Merge of vax/vms (read-only) support
	* configure.com: Support Vax target.
	* makefile.vms: Support Vax target.
        * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
	* vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
	support.
	* vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
	support.
	* vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
	support.
	* vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
	support.
	* vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
	support.
	* libbfd.c (real_read): Use unbuffered read on VMS/Vax.
	* targets.c (bfd_target_ovax_flavour): New flavour.
	(vms_alpha_vec): Renamed from evax_alpha_vec.
	(vms_vax_vec): New.
	(target_vector): Update accordingly.
	* config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
	evax_alpha_vec.
	(vax*-*-*vms*): New target.
	* Makefile.am: Update for renamed files.  Rebuild dependencies.
	* bfd-in2.h: Rebuild.
	* configure.in, Makefile.in, aclocal.m4: Rebuild.
1998-07-02 18:41:08 +00:00
Nick Clifton
9e7e5d5e5b Add support for changing LMA and VMA of sections/ 1998-07-02 00:06:49 +00:00
Richard Henderson
1ff137652b "propogate" -> "propagate" 1998-07-01 21:53:34 +00:00
Ian Lance Taylor
70f549105f * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
when handling 32 bit immediate relocs.
	* elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
1998-07-01 21:03:27 +00:00
Doug Evans
a57fc6b9c0 * reloc.c: New relocs BFD_RELOC_MIPS_DVP_11_S4,
BFD_RELOC_MIPS_DVP_U15_S3.
	* elf32-mips.c: Handle them.
	* bfd-in2.h: Regenerate.
	* libbfd.h: Regenerate.
1998-07-01 20:14:12 +00:00
Jeff Law
39f5104e63 * section.c (STD_SECTION): Account for recently added gc_mark
field in struct asection.
1998-06-30 17:09:28 +00:00
Jeff Law
7ec96df5e2 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
(bfd_elf32_bfd_merge_private_bfd_data): Define.
So the machine id gets propagated into executables.
1998-06-30 16:00:12 +00:00
Richard Henderson
303b4cc64f ELF Section-level Garbage Collection. 1998-06-30 10:02:22 +00:00
Jeff Law
4db4e912e1 * archures.c (bfd_mach_mn10300): Define.
* elf-m10300.c: Include elf/mn10300.h
        (elf_mn10300_mach): New function.
        (_bfd_mn10300_elf_final_write_processing): Likewise.
        (_bfd_mn10300_elf_object_p): Likewise.
        (elf_backendfinal_write_processing): Define.
        (elf_backend_object_p): Likewise.
start-sanitize-am33
        * archures.c (bfd_mach_am33): Define.
        * cpu-m10300.c (bfd_am33_arch): New arch info structure.  Link it
        into the NEXT field of bfd_mn10300_arch.
end-sanitize-am33
1998-06-26 16:59:08 +00:00
Nick Clifton
9ea28a8595 Fix HI16_S relocation 1998-06-26 01:31:43 +00:00
Ian Lance Taylor
146f8b771c * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
link_next field, not the next field.
1998-06-24 21:18:25 +00:00
Ian Lance Taylor
ae49bab676 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
linker created empty input section if the output section has the
	same name.
1998-06-19 21:11:47 +00:00
Ian Lance Taylor
e1079cda8d * elflink.h (elf_link_output_extsym): Print an error message if
_bfd_elf_section_from_bfd_section fails.
1998-06-19 21:10:39 +00:00
Ian Lance Taylor
22b17c7474 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
failure.
1998-06-19 21:10:20 +00:00
Tom Tromey
365fac52c2 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
($(PACKAGE).pot): Unconditionally depend on POTFILES.
1998-06-12 22:25:09 +00:00
Doug Evans
37fcafe682 * elf.c (swap_out_syms): New arg relocatable_p.
Don't add section VMA to symbols for relocatable output.
	(_bfd_elf_compute_section_file_positions): Update call to
	swap_out_syms.
1998-06-12 20:37:40 +00:00
Nick Clifton
5aa6fe96a0 Use signed comparisons against addend. 1998-06-08 22:22:21 +00:00
Nick Clifton
0203fbf278 Add prototypes. 1998-06-06 07:42:09 +00:00
Nick Clifton
7c3b369de0 Add prototypes. 1998-06-06 07:32:18 +00:00
Nick Clifton
40afcc4cd4 sort sections by LMA then VMA. 1998-06-06 00:28:46 +00:00
Nick Clifton
c84c3b965c Add prototypes for static functions.
Chnage type of addend from long to bfd_vma.
1998-06-06 00:23:25 +00:00
Ian Lance Taylor
118bd5952f * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
complain_overflow_signed instead of complain_overflow_bitfield.
1998-06-05 22:19:09 +00:00
Ian Lance Taylor
5e3da1b0d3 Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elf.c (elf_map_symbols): Don't add section VMA to symbol value
	when comparing against 0.
1998-06-05 19:17:08 +00:00
Ian Lance Taylor
2edb8195a9 * Makefile.am (config.status): New target.
* Makefile.in: Rebuild.
1998-06-03 21:53:14 +00:00
Doug Evans
24a459d631 * elf32-mips.c (_bfd_mips_elf_fake_sections): Update to use
Elf32_Dvp_External_Overlay instead of 64 bit version.
1998-06-03 18:42:31 +00:00
Stan Cox
f5bb0acb5a Give error if previous object endianness doesn't match the current one. 1998-06-03 16:20:48 +00:00
Nick Clifton
cfba9ab0ac Fixed private data printing to include program headers. 1998-06-03 00:51:58 +00:00
Ian Lance Taylor
0e039bdc1b * elflink.h (elf_merge_symbol): Don't always set type_change_ok
and size_change_ok.
 	(elf_link_add_object_symbols): Set type_change_ok and
	size_change_ok before calling elf_merge_symbol.
1998-06-02 21:16:06 +00:00
Ian Lance Taylor
d212bfa723 * elf32-mips.c (mips_elf_relocate_section): If we issue an
undefined symbol error, don't also issue an overflow error.
1998-06-02 19:30:09 +00:00
Ian Lance Taylor
defc0050f4 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
* elf32-ppc.c (ppc_elf_relocate_section): The target of an
	R_PPC_LOCAL24PC relocation should be local; if not, print an error
	message instead of crashing.
1998-06-02 18:15:42 +00:00
Ian Lance Taylor
9591998dbf Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
* archures.c (bfd_mach_cpu32): Define.
	(bfd_default_scan): Add case for 68060.  Fix 68332 case to use
	bfd_mach_cpu32.
	* cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
	* ieee.c: Include <ctype.h>.
	(ieee_object_p): Parse out process ID string to make it more
	likely to be acceptable for bfd_scan_arch.
	* bfd-in2.h: Rebuild.
1998-06-01 22:25:37 +00:00
Nick Clifton
5872728aba Fix PHDRS test in linker testsuite by also dumping program header output
when displaying private data.
1998-06-01 18:13:33 +00:00
Ian Lance Taylor
179ac41c63 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
0x68.  Reindent.  Add some comments.
1998-06-01 16:15:08 +00:00
Doug Evans
edac2b4c88 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Set sh_link
field of .DVP.ovlytab to .DVP.ovlystrtab's section index.
	(_bfd_mips_elf_section_from_shdr): Recognize SHT_DVP_OVERLAY_TABLE
	and SHT_DVP_OVERLAY.
	(_bfd_mips_elf_fake_sections): Ditto.
1998-05-31 23:14:40 +00:00
Nick Clifton
e5fc780949 Partial fix for PR 15929 - Change physical address of segment when its
sections' LMAs have changed.
1998-05-29 17:00:08 +00:00
Stan Cox
e838aeea64 Added BFD_RELOC_SPARC_32LE and bfd_mach_sparc_sparclite_le. 1998-05-27 15:41:27 +00:00
Stan Cox
fc23c14efc sparclite 86x big endian instruction / little endian data support. 1998-05-27 01:06:20 +00:00
Nick Clifton
5422c7498b Fix operator precedence in if() statement. 1998-05-21 23:59:59 +00:00
Ian Lance Taylor
71842815b0 * reloc.c (bfd_check_overflow): Add casts before shifts which may
not fit in 32 bits.
	(_bfd_relocate_contents): Likewise.
1998-05-19 22:45:38 +00:00
Nick Clifton
be461cc321 Fix nightly testing bug. 1998-05-18 21:47:54 +00:00
Richard Henderson
b0f7df0653 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
(elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
        elf64_alpha_size_got_sections): Rewrite, handling multiple got
        subsections during relaxation more correctly.
1998-05-18 07:14:11 +00:00
Nick Clifton
7c511326e8 Add support for interwotking between Thumb code and non-interworking aware ARM code. 1998-05-14 21:29:28 +00:00
Ian Lance Taylor
980381afd7 If sysdep.h includes a header file, don't include it again:
* aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
	<errno.h>.
	* aoutx.h: Don't include <string.h>.  Use "sysdep.h" rather than
	<sysdep.h>.
	* archive.c: Don't include <string.h> or <errno.h>.
	* evax-alpha.c; Don't include <stdio.h>.
	* evax-egsd.c: Likewise.
	* evax-etir.c: Likewise.
	* evax-misc.c: Likewise.
	* evax-emh.c: Likewise.  Also, don't include <sys/types.h>.
	* hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
	<errno.h>.
	* hpux-core.c: Likewise.
	* netbsd-core.c: Likewise.
	* som.c: Likewise.
	* libbfd.c: Don't include <sys/types.h>.
	* nlmcode.h: Don't include <string.h>.
	* osf-core.c: Don't include <string.h> or <stdio.h>.
	* ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
	<errno.h>, or <unistd.h>.
	* trad-core.c: Don't include <stdio.h> or <sys/types.h>.
1998-05-07 22:05:46 +00:00