Commit Graph

8554 Commits

Author SHA1 Message Date
Alan Modra 2e76e85a38 bfd/
* elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
	* elflink.c (elf_link_input_bfd): Likewise.
ld/
	* ld.texinfo (NOLOAD): Do not erroneously state that contents will
	appear in output file.
	* ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
	unless SEC_COFF_SHARED_LIBRARY.
	(map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
	output sections.
	(lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
	to update dot in region.  Ditto when setting SEC_ALLOC if dot
	advanced due to assignment.
	* ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.
2010-09-16 00:06:12 +00:00
Alan Modra 8812c728fb daily update 2010-09-16 00:00:04 +00:00
Kai Tietz 2eb0390952 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
* pei-x86_64.c (pex64_get_unwind_info): Reorgnized.
        (pex64_get_scope_entry): Removed.
        (find_next_xdata_or_end): New helper.
        (pex64_dump_xdata): Reworked.
        (pex64_bfd_print_pdata): Add checking for
        valid pdata sorting and values. Reworked
        output.
2010-09-15 17:27:30 +00:00
H.J. Lu 028ed2b2b6 Handle NULL iostream in bfd_plugin_object_p.
2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>

	PR binutils/12004
	* plugin.c (bfd_plugin_object_p): Handle NULL iostream.
2010-09-15 17:12:59 +00:00
Alan Modra 14119b2ed3 daily update 2010-09-15 00:00:05 +00:00
Kai Tietz 51ec954481 2010-09-14 Kai Tietz <kai.tietz@onevision.com>
* pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
        .rdata, .data, and .text partial matched section names.
        * pei-x86_64.c: Likewise.
2010-09-14 20:40:39 +00:00
Kai Tietz 5174d0fb6d 2010-09-14 Kai Tietz <kai.tietz@onevision.com>
* peXXigen.c (sort_x64_pdata): New helper.
        (_bfd_XXi_final_link_postscript): Do pdata sorting.
2010-09-14 20:25:34 +00:00
Alan Modra b29607b4e7 daily update 2010-09-14 00:00:05 +00:00
Alan Modra b980c61c88 daily update 2010-09-13 00:00:05 +00:00
Alan Modra df6de435f1 daily update 2010-09-12 00:00:05 +00:00
Alan Modra 84f49b315b daily update 2010-09-11 00:00:05 +00:00
Alan Modra a9be376763 daily update 2010-09-10 00:00:05 +00:00
H.J. Lu a2d1e02801 Don't warn zero LMA adjustment.
bfd/

2010-09-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11998
	* elf.c (assign_file_positions_for_load_sections): Don't warn
	zero LMA adjustment.

ld/testsuite/

2010-09-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11998
	* ld-scripts/rgn-at5.d: New.
	* ld-scripts/rgn-at5.s: Likewise.
	* ld-scripts/rgn-at5.t: Likewise.
2010-09-09 19:22:29 +00:00
Bernd Schmidt 7326c758fd * elflink.c (bfd_elf_final_link): Correct calculation of
max_external_reloc_size.
2010-09-09 09:55:03 +00:00
Alan Modra 7a306d4db2 daily update 2010-09-09 00:00:04 +00:00
Alan Modra d597a9c12b daily update 2010-09-08 00:00:05 +00:00
Alan Modra 8d9d691cdc daily update 2010-09-07 00:00:04 +00:00
Alan Modra 4e1fc5994d * peXXigen.c: Whitespace.
(pe_print_idata): Correct section limit calculations.  Tidy array
	indexing.
	(_bfd_XX_print_ce_compressed_pdata): Don't leak memory.
2010-09-06 23:55:10 +00:00
Alan Modra fee65560ca daily update 2010-09-06 00:00:05 +00:00
Alan Modra 55a1eecc95 daily update 2010-09-05 00:00:05 +00:00
Alan Modra 2bd082b0eb daily update 2010-09-04 00:00:05 +00:00
Alan Modra 1de45804f6 daily update 2010-09-03 00:00:05 +00:00
Richard Henderson c518ddd883 Select 32-bit pei for 64-bit pei configurations. 2010-09-02 22:54:44 +00:00
Alan Modra 5aab8c959f daily update 2010-09-02 00:00:06 +00:00
Pedro Alves 3b05913729 * netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
(netbsd_core_file_pid): ... this.
2010-09-01 13:51:35 +00:00
Tristan Gingold be5b8c8cdb 2010-09-01 Tristan Gingold <gingold@adacore.com>
* coffcode.h (coff_slurp_line_table): Add a cast.
	(coff_slurp_reloc_table): Ditto.
2010-09-01 07:50:48 +00:00
Alan Modra 4c35559b11 daily update 2010-09-01 00:00:05 +00:00
Alan Modra 0ad5ceff23 daily update 2010-08-31 00:00:05 +00:00
Alan Modra 35e7447c0e * cisco-core.c (cisco_core_file_pid): Define. 2010-08-30 09:35:25 +00:00
Alan Modra a76e6f2fc1 PR binutils/11953
* elf.c (copy_elf_program_header): Calculate map->header_size
	from lowest_section, not first_section.  Validate program
	header p_paddr against section lma.  Find lowest_section in
	second loop over headers.
2010-08-30 06:01:22 +00:00
Alan Modra c843d5c68f daily update 2010-08-30 00:00:05 +00:00
Alan Modra 7250d7621f daily update 2010-08-29 00:00:06 +00:00
Alan Modra 89a2ee5a08 * elflink.c (_bfd_elf_dynamic_symbol_p): Rename param. Make
common syms local.
	(_bfd_elf_symbol_refs_local_p): Expand comment.
	(elf_link_output_extsym): Fix style nit.
2010-08-28 04:04:16 +00:00
Alan Modra 400971588d daily update 2010-08-28 00:00:05 +00:00
Alan Modra 6b911e8b2a daily update 2010-08-27 00:00:05 +00:00
Nathan Sidwell cdb21a0a5b * elf32-arm.c (elf32_arm_final_link): Process stub sections
exactly once.
2010-08-26 10:32:26 +00:00
Alan Modra 8318bd9130 daily update 2010-08-26 00:00:05 +00:00
H.J. Lu d64284fea7 Don't set unique_global for non-ELF hash link table.
2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11939
	* elflink.c (elf_link_add_object_symbols): Don't set
	unique_global for non-ELF hash link table.
2010-08-25 20:35:58 +00:00
H.J. Lu ae95ffa628 Add target_id to elf_backend_data.
2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11944
	* elf-bfd.h (elf_backend_data): Add target_id.
	(bfd_elf_make_generic_object): Renamed to ...
	(bfd_elf_make_object): This.

	* elf.c (bfd_elf_make_generic_object): Removed.
	(bfd_elf_make_object): New.
	(bfd_elf_mkcorefile): Really treat it as an object file.

	* elf-m10300.c (ELF_TARGET_ID): New.
	* elf32-arm.c (ELF_TARGET_ID): Likewise.
	* elf32-bfin.c (ELF_TARGET_ID): Likewise.
	* elf32-cris.c (ELF_TARGET_ID): Likewise.
	* elf32-frv.c (ELF_TARGET_ID): Likewise.
	* elf32-i386.c (ELF_TARGET_ID): Likewise.
	* elf32-lm32.c (ELF_TARGET_ID): Likewise.
	* elf32-m32r.c (ELF_TARGET_ID): Likewise.
	* elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
	* elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
	* elf32-m68k.c (ELF_TARGET_ID): Likewise.
	* elf32-microblaze.c (ELF_TARGET_ID): Likewise.
	* elf32-ppc.c (ELF_TARGET_ID): Likewise.
	* elf32-s390.c (ELF_TARGET_ID): Likewise.
	* elf32-sh.c (ELF_TARGET_ID): Likewise.
	* elf32-sparc.c (ELF_TARGET_ID): Likewise.
	* elf32-spu.c (ELF_TARGET_ID): Likewise.
	* elf32-tic6x.c (ELF_TARGET_ID): Likewise.
	* elf32-xtensa.c (ELF_TARGET_ID): Likewise.
	* elf64-alpha.c (ELF_TARGET_ID): Likewise.
	* elf64-hppa.c (ELF_TARGET_ID): Likewise.
	* elf64-ppc.c (ELF_TARGET_ID): Likewise.
	* elf64-s390.c (ELF_TARGET_ID): Likewise.
	* elf64-x86-64.c (ELF_TARGET_ID): Likewise.
	* elfxx-ia64.c (ELF_TARGET_ID): Likewise.

	* elf32-hppa.c (elf32_hppa_mkobject): Removed.
	(bfd_elf32_mkobject): Likewise.
	(ELF_TARGET_ID): New.

	* elf32-mips.c (ELF_TARGET_ID): New.
	(bfd_elf32_mkobject): Removed.

	* elf64-mips.c (ELF_TARGET_ID): New.
	(bfd_elf64_mkobject): Removed.

	* elfn32-mips.c (ELF_TARGET_ID): New.
	(bfd_elf32_mkobject): Removed.

	* elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
	* elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.

	* elfxx-target.h (bfd_elfNN_mkobject): Default to
	bfd_elf_make_object.
	(ELF_TARGET_ID): New.  Default to GENERIC_ELF_DATA.
	(elfNN_bed): Initialize target_id.
2010-08-25 14:53:45 +00:00
Julian Brown 4563a86028 bfd/
* elf32-arm.c (arm_stub_required_alignment): New.
    (arm_build_one_stub): Use above to partition stubs.
    (make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
    arm_stub_a8_veneer_b_cond.

    ld/testsuite/
    * ld-arm/arm-elf.exp (armelftests): Add cortex-a8-fix-blx-bcond.s.
    * ld-arm/cortex-a8-fix-blx-bcond.s: New.
    * ld-arm/cortex-a8-fix-blx-bcond.d: New.
2010-08-25 12:37:30 +00:00
Alan Modra 30d10e9ee8 * aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
* aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
	* aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
	* coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
	* elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
	* reloc.c (bfd_default_reloc_type_lookup): Likewise.
	* riscix.c (riscix_reloc_type_lookup): Likewise.
2010-08-25 07:02:40 +00:00
Alan Modra 8d06853ec6 * elf.c (_bfd_elf_map_sections_to_segments): Don't load program
headers if any loaded section wraps the address space.  Simplify
	~(m-1) to -m.  Use lma rather than vma when determining whether
	note sections are adjacent.
2010-08-25 06:49:55 +00:00
Alan Modra 49a565dbd4 daily update 2010-08-25 00:00:05 +00:00
Alan Modra 8b85c8b2fe daily update 2010-08-24 00:00:06 +00:00
Alan Modra db9d528091 daily update 2010-08-23 00:00:05 +00:00
H.J. Lu 39334f3a47 Don't check relocation if input ELF object ID doesn't match output.
bfd/

2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11933
	* elflink.c (elf_link_add_object_symbols): Don't check relocation
	if input ELF object ID doesn't match output.

ld/testsuite/

2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11933
	* ld-x86-64/mixed1a.s: New.
	* ld-x86-64/mixed1b.s: Likewise.
	* ld-x86-64/mixed2a.s: Likewise.
	* ld-x86-64/mixed2b.s: Likewise.

	* ld-x86-64/x86-64.exp: Text mixed x86_64 and i386 inputs.
2010-08-22 19:14:25 +00:00
Alan Modra 5044d84737 daily update 2010-08-22 00:00:05 +00:00
Ralf Wildenhues 58bbed62f8 Fix misquoting in stdint.m4.
config/:
	PR target/45084
	* stdint.m4 (GCC_HEADER_STDINT): Use m4 quotes for arguments
	of AC_MSG_ERROR.

libdecnumber/:
	* configure: Regenerate.

bfd/:
	* configure: Regenerate.
2010-08-21 12:34:06 +00:00
Alan Modra 8e375156eb daily update 2010-08-21 00:00:05 +00:00
H.J. Lu 3409e291c1 Revert the last checkin on sec_merge_emit.
2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>

	* merge.c (sec_merge_emit): Revert the last checkin.
2010-08-20 22:29:28 +00:00