Commit Graph

8859 Commits

Author SHA1 Message Date
Alan Modra 44d77c0ea0 daily update 2011-03-06 23:00:05 +00:00
Michael Snyder 4281caadcf 2011-03-05 Michael Snyder <msnyder@vmware.com>
* compress.c (bfd_compress_section_contents): Check for out of mem.
2011-03-06 18:37:07 +00:00
Michael Snyder 176720017d 2011-03-06 Michael Snyder <msnyder@vmware.com>
* elf64-x86-64.c (elf_x86_64_relocate_section): Document
	that case statement falls through intentionally.
2011-03-06 18:27:03 +00:00
Michael Snyder d59a60e937 2011-03-06 Michael Snyder <msnyder@vmware.com>
* elf32-i386.c (elf_i386_relocate_section): Document fall through.
2011-03-06 18:22:36 +00:00
Alan Modra 4b162076e8 daily update 2011-03-05 23:00:06 +00:00
Alan Modra 51dc551dc2 daily update 2011-03-04 23:00:17 +00:00
Alan Modra 0e29e6e859 * archive.c (bsd_write_armap): Don't call stat in deterministic
mode, and don't use st_mtime if stat returns error.
2011-03-04 01:43:24 +00:00
Michael Snyder 08c135952e 2011-03-03 Michael Snyder <msnyder@vmware.com>
* elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
2011-03-04 00:38:29 +00:00
Michael Snyder d543c50d66 2011-03-03 Michael Snyder <msnyder@vmware.com>
* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
2011-03-03 23:49:21 +00:00
Michael Snyder c38eb2a67d 2011-03-03 Michael Snyder <msnyder@vmware.com>
* aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
	(aout_link_write_other_symbol): Missing break statement.
2011-03-03 23:47:21 +00:00
Michael Snyder 8ecc1f2027 2011-03-03 Michael Snyder <msnyder@vmware.com>
* dwarf2.c (scan_unit_for_symbols): Stop memory leak.
2011-03-03 23:43:08 +00:00
Michael Snyder eb00922a32 2011-03-03 Michael Snyder <msnyder@vmware.com>
* archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
2011-03-03 23:41:21 +00:00
Alan Modra b4aa9232b7 daily update 2011-03-03 23:00:05 +00:00
H.J. Lu 4a4c5f250b Supprt TLS x32 IE->LE transition.
bfd/

2011-03-03  H.J. Lu  <hongjiu.lu@intel.com>

	* elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
	x32 IE->LE transition.
	(elf_x86_64_relocate_section): Likewise.

ld/testsuite/

2011-03-03  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-x86-64/tlsie4.dd: New.
	* ld-x86-64/tlsie4.s: Likewise.

	* ld-x86-64/x86-64.exp (x86_64tests): Add tlsie4.
2011-03-03 22:11:33 +00:00
Alan Modra f635986e73 daily update 2011-03-02 23:00:07 +00:00
Bernd Schmidt ddcf1fcfb2 * elflink.c (is_reloc_section): Remove function.
(get_dynamic_reloc_section_name): Construct string manually.
2011-03-02 17:07:03 +00:00
Alan Modra 75c362b84e daily update 2011-03-01 23:00:06 +00:00
Alan Modra ff1431da42 daily update 2011-02-28 23:00:05 +00:00
Kai Tietz 007d618909 ChangeLog libiberty/
2011-02-28  Kai Tietz  <kai.tietz@onevision.com>

	* filename_cmp.c (filename_ncmp): New function.
	* functions.texi: Regenerated.

ChangeLog include/
2011-02-28  Kai Tietz  <kai.tietz@onevision.com>

	* filenames.h (filename_ncmp): New prototype.

ChangeLog bfd/
2011-02-28  Kai Tietz  <kai.tietz@onevision.com>

	* archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
	(adjust_relative_path): Likewise.
	(_bfd_construct_extended_name_table): Likewise.
	* corefile.c (generic_core_file_matches_executable_p): Likewise.
	* elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
	* elf32-frv.c (elf32_frv_relocate_section): Likewise.
	* elf32-spu.c (sort_bfds): Likewise.
	(spu_elf_auto_overlay): Likewise.
	* syms.c (_bfd_stab_section_find_nearest_line): Likewise.
	* xcofflink.c (xcoff_set_import_path): Likewise.
	* xtensa-isa.c (xtensa_regfile_lookup): Likewise.
	(xtensa_regfile_lookup_shortname): Likewise.
2011-02-28 18:30:16 +00:00
Alan Modra 8616ad89d6 PR 12513
* archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
	stringsize.  Properly sanity check symdef_count.  Remove redundant
	bfd_release.
2011-02-28 07:46:37 +00:00
Alan Modra 9a7d3aa9ac daily update 2011-02-27 23:00:05 +00:00
Alan Modra c24bea2f47 daily update 2011-02-26 23:00:05 +00:00
Rafael Ávila de Espíndola 80549d04a2 2011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
* plugin.c (bfd_plugin_object_p): Correctly set the filesize
	and handle claim_file seeking. Only try to load the plugin once.
2011-02-26 00:03:09 +00:00
Alan Modra 6c597b9d36 daily update 2011-02-25 23:00:06 +00:00
Alan Modra 53ed733c44 daily update 2011-02-24 23:00:05 +00:00
Alan Modra d1e12d09f3 daily update 2011-02-23 23:00:06 +00:00
Alan Modra ceb839f35d daily update 2011-02-22 23:00:06 +00:00
Andreas Schwab 93b3ac7505 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
relocation read the value from the second GOT slot.
2011-02-22 15:46:13 +00:00
Alan Modra 8ecaf248f5 daily update 2011-02-21 23:00:05 +00:00
Alan Modra 748d7a86a6 daily update 2011-02-20 23:00:06 +00:00
Alan Modra b6c5772a6d daily update 2011-02-19 23:00:06 +00:00
Alan Modra 96012e554a daily update 2011-02-18 23:00:06 +00:00
Alan Modra 33df58f5be daily update 2011-02-17 23:00:05 +00:00
H.J. Lu 98e16b7718 Revert the last change to elf64-x86-64.c. 2011-02-17 13:51:52 +00:00
Alan Modra 567c08759e daily update 2011-02-16 23:00:04 +00:00
H.J. Lu 5295881de1 Don't check relocation overflow for x32.
2011-02-16  H.J. Lu  <hongjiu.lu@intel.com>

	* elf64-x86-64.c (elf_x86_64_check_relocs): Check relocation
	overflow only for ABI_64_P.
	(elf_x86_64_relocate_section): Likewise.
2011-02-16 14:58:18 +00:00
Alan Modra e49499f8b3 daily update 2011-02-15 23:00:05 +00:00
Tristan Gingold 6fa052f048 2011-02-15 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
2011-02-15 09:35:42 +00:00
Alan Modra 28be611cf8 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
toc relocs.  Fuss over free(NULL).
2011-02-15 04:07:43 +00:00
Alan Modra a14087dc74 daily update 2011-02-14 23:00:05 +00:00
Mike Frysinger 93252b1cf4 bfd/ld: handle ABI prefixes in version scripts
The default language in version scripts is supposed to be C, but no
symbol demangling is performed on the symbols by default.  This makes
targets with a symbol prefix to fail with most version scripts out
there.  So strip away this prefix by default.

This fixes many tests (real world and ld's testsuite) for Blackfin
targets and doesn't seem to cause regressions for x86_64.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-14 17:03:45 +00:00
Alan Modra b72eef8c79 daily update 2011-02-13 23:00:04 +00:00
Ralf Wildenhues 822ce8ee21 Remove freebsd1 from libtool.m4 macros and config.rpath.
/:
	Import from Libtool and gnulib:

	2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>

	Prepare for supporting FreeBSD 10.
	* config.rpath: Remove handling of freebsd1* which soon would
	match FreeBSD 10.0.

	2011-01-20  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)

	Remove support for FreeBSD 1.x.
	* libtool.m4 (_LT_LINKER_SHLIBS)
	(_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which
	soon would incorrectly match FreeBSD 10.0.

bfd/:
	* configure: Regenerate.

gas/:
	* configure: Regenerate.

ld/:
	* configure: Regenerate.

opcodes/:
	* configure: Regenerate.

binutils/:
	* configure: Regenerate.

gprof/:
	* configure: Regenerate.
2011-02-13 21:00:14 +00:00
Alan Modra f777cfc42b daily update 2011-02-12 23:00:05 +00:00
Alan Modra b4e297a3c7 daily update 2011-02-11 23:00:15 +00:00
Alan Modra cc3db291f5 daily update 2011-02-10 23:00:04 +00:00
Alan Modra c202f10bb3 daily update 2011-02-09 23:00:04 +00:00
Alan Modra 425b145b6e * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
we are done.  When optimising large toc, check that a global
	symbol on a toc reloc is defined in a kept section.
2011-02-09 08:16:00 +00:00
Alan Modra b1eecb365d daily update 2011-02-08 23:00:06 +00:00
Nick Clifton 82f2dbf73d PR binutils/12467
* readelf.c (process_program_headers): Issue a warning if there
	are no program headers but the file header has a non-zero program
	header offset.
	(process_section_headers): Issue a warning if there are no section
	headers but the file header has a non-zero section header offset.
	(process_section_groups): Reword the no section message so that it
	can be distinguished from the one issued by process_section_headers.

	* elf.c (assign_file_positions_for_load_sections): Set the program
	header offset and entry size to zero if there are no program
	headers.
2011-02-08 09:40:05 +00:00