aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2010-09-242010-09-24 Thomas Schwinge <thomas@codesourcery.com>Thomas Schwinge2-1/+6
* elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index to STN_UNDEF, not SHN_UNDEF.
2010-09-24daily updateAlan Modra1-1/+1
2010-09-23bfd/Bernd Schmidt2-0/+31
* elf32-tic6x.c (elf32_tic6x_fake_sections): New function. (elf_backend_fake_sections): Define. ld/testsuite/ * ld-tic6x/pcrel-reloc-local-r-rel-rela.d: New test.
2010-09-23 * bfd/bfd-in2.h (BFD_RELOC_ARM_HVC): New enum value.Matthew Gretton-Dann2-0/+5
* gas/config/tc-arm.c (arm_ext_virt): New variable. (arm_reg_type): Add REG_TYPE_RNB for banked registers. (reg_entry): Allow registers to be larger than a byte. (reg_alias): Fix type warning. (parse_operands): Parse banked registers when appropriate. (do_mrs): Add support for Virtualization Extensions. (do_hvc): New function. (do_t_mrs): Add support for Virtualization Extensions. (do_t_msr): Likewise. (do_t_hvc): New function. (SPLRBANK): New define. (reg_names): Add banked registers. (insns): Add support for Virtualization Extensions. (md_apply_fixup): Likewise. (arm_cpus): -mcpu=cortex-a15 implies the Virtualization Extensions. (arm_extensions): Add 'virt' extension. (aeabi_set_public_attributes): Add support for Virtualization Extensions. * gas/doc/c-arm.texi: Document 'virt' extension. * gas/testsuite/gas/arm/armv7-a+virt.d: New test. * gas/testsuite/gas/arm/armv7-a+virt.s: Likewise. * gas/testsuite/gas/arm/attr-march-all.d: Update for Virtualization Extensions. * gas/testsuite/gas/arm/attr-march-armv7-a+sec+virt.d: New test. * gas/testsuite/gas/arm/attr-march-armv7-a+virt.d: Likewise. * include/opcode/arm.h (ARM_EXT_VIRT): New define. (ARM_ARCH_V7A_IDIV_MP_SEC): Rename... (ARM_ARCH_V7A_IDIV_MP_SEC_VIRT): ...to this and include Virtualization Extensions. * opcodes/arm-dis.c (arm_opcodes): Add Virtualiztion Extensions support. (thumb32_opcodes): Likewise. (banked_regname): New function. (print_insn_arm): Add Virtualization Extensions support. (print_insn_thumb32): Likewise.
2010-09-23 * cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.Alan Modra2-10/+14
2010-09-23ld/Alan Modra2-3/+8
* ldlang.c (lang_add_section): Don't copy SEC_RELOC from input to output section on a final link. bfd/ * elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC difference between input and output section.
2010-09-23daily updateAlan Modra1-1/+1
2010-09-222010-09-22 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-14/+36
* coffcode.h (sec_to_styp_flags): Adjust debug sections to be conform to pe-coff specification and avoid marking them as excluded. (styp_to_sec_flags): Doing reverse mapping.
2010-09-222010-09-22 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-0/+48
* peXXigen.c (_bfd_XXi_final_link_postscript): Add handling for setting IAT directory entry.
2010-09-22daily updateAlan Modra1-1/+1
2010-09-21daily updateAlan Modra1-1/+1
2010-09-20Use bfd_elf_generic_reloc for alpha-elf.Richard Henderson2-26/+30
2010-09-20daily updateAlan Modra1-1/+1
2010-09-19bfd/Richard Sandiford2-13/+53
* elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls. (mips_elf_link_hash_newfunc): Initialize it. (mips_elf_record_global_got_symbol): Add a for_call parameter. (mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls. Try to remove .got entries in favour of .got.plt entries on VxWorks. (_bfd_mips_elf_check_relocs): Do not try to avoid allocating a global GOT entry for VxWorks calls. Update uses of mips_elf_record_global_got_symbol. (allocate_dynrelocs): Set got_only_for_calls to false if the GOT entry is used for dynamic relocations.
2010-09-19bfd/Richard Sandiford2-80/+83
* elfxx-mips.c (mips_got_entry): Adjust commentary. (mips_elf_create_local_got_entry): If given a symbol, check that it has been assigned to the local part of the GOT. (mips_elf_count_got_symbols): Take the bfd_link_info as argument instead of the master GOT. Put all locally-binding symbols in the local area. (mips_elf_make_got_per_bfd): Use global_got_area to decide whether a symbol lives in the local or global area. (mips_elf_local_relocation_p): Remove check_forced argument and retain only the !check_forced behavior. (mips_elf_calculate_relocation): Adjust call accordingly. Use global_got_area to decide whether an output relocation should be local or global. Explicitly decay R_MIPS_GOT_PAGE into R_MIPS_GOT_DISP where appropriate. Fix selection of local vs. global semantics for R_MIPS*_26. Remove redundant reevaluation of what is stored in was_local_p. (mips_elf_create_dynamic_relocation): Use global_got_area to decide whether the relocation should be against a global or local symbol. (mips_elf_lay_out_got): Update the GOT traversal after the above change to mips_elf_count_got_symbols. (mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p. (_bfd_mips_elf_relocate_section): Likewise. (_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide whether the symbol has a global got entry. (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. ld/testsuite/ * ld-mips-elf/elf-rel-got-n32.d: Swap two local GOT entries and remove some duplication between the global and local GOT entries. Adjust GP offsets accordingly. * ld-mips-elf/elf-rel-got-n64-linux.d: Likewise. * ld-mips-elf/elf-rel-xgot-n32.d: Reorder GOT entries and update GP offsets accordingly. * ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise. * ld-mips-elf/mips16-pic-1.gd: Move all global GOT entries to the local GOT. * ld-mips-elf/mips16-pic-1.dd: Update GP offsets accordingly. * ld-mips-elf/multi-got-no-shared.d: Adjust GP setup for smaller GOT sizes.
2010-09-19bfd/Richard Sandiford2-3/+13
* elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols to the global GOT on VxWorks.
2010-09-19bfd/Richard Sandiford2-0/+10
* elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks, exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning about HI/LO relocations in shared objects.
2010-09-19daily updateAlan Modra1-1/+1
2010-09-18daily updateAlan Modra1-1/+1
2010-09-17daily updateAlan Modra1-1/+1
2010-09-16 * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-allocAlan Modra2-4/+25
sections. (spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and set dynobj. (spu_elf_finish_dynamic_sections): New function. (elf_backend_finish_dynamic_sections): Define.
2010-09-16bfd/Alan Modra3-4/+7
* 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-16daily updateAlan Modra1-1/+1
2010-09-152010-09-15 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-76/+129
* 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-15Handle NULL iostream in bfd_plugin_object_p.H.J. Lu2-10/+20
2010-09-15 H.J. Lu <hongjiu.lu@intel.com> PR binutils/12004 * plugin.c (bfd_plugin_object_p): Handle NULL iostream.
2010-09-15daily updateAlan Modra1-1/+1
2010-09-142010-09-14 Kai Tietz <kai.tietz@onevision.com>Kai Tietz3-6/+10
* pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make .rdata, .data, and .text partial matched section names. * pei-x86_64.c: Likewise.
2010-09-142010-09-14 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-0/+42
* peXXigen.c (sort_x64_pdata): New helper. (_bfd_XXi_final_link_postscript): Do pdata sorting.
2010-09-14daily updateAlan Modra1-1/+1
2010-09-13daily updateAlan Modra1-1/+1
2010-09-12daily updateAlan Modra1-1/+1
2010-09-11daily updateAlan Modra1-1/+1
2010-09-10daily updateAlan Modra1-1/+1
2010-09-09Don't warn zero LMA adjustment.H.J. Lu2-2/+9
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 * elflink.c (bfd_elf_final_link): Correct calculation ofBernd Schmidt2-1/+10
max_external_reloc_size.
2010-09-09daily updateAlan Modra1-1/+1
2010-09-08daily updateAlan Modra1-1/+1
2010-09-07daily updateAlan Modra1-1/+1
2010-09-06 * peXXigen.c: Whitespace.Alan Modra2-58/+56
(pe_print_idata): Correct section limit calculations. Tidy array indexing. (_bfd_XX_print_ce_compressed_pdata): Don't leak memory.
2010-09-06daily updateAlan Modra1-1/+1
2010-09-05daily updateAlan Modra1-1/+1
2010-09-04daily updateAlan Modra1-1/+1
2010-09-03daily updateAlan Modra1-1/+1
2010-09-02Select 32-bit pei for 64-bit pei configurations.Richard Henderson2-1/+5
2010-09-02daily updateAlan Modra1-1/+1
2010-09-01 * netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...Pedro Alves2-1/+6
(netbsd_core_file_pid): ... this.
2010-09-012010-09-01 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+7
* coffcode.h (coff_slurp_line_table): Add a cast. (coff_slurp_reloc_table): Ditto.
2010-09-01daily updateAlan Modra1-1/+1
2010-08-31daily updateAlan Modra1-1/+1
2010-08-30 * cisco-core.c (cisco_core_file_pid): Define.Alan Modra2-1/+6