aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2005-04-11Convert to ISO C90 formattingNick Clifton34-11542/+9139
2005-04-11daily updateAlan Modra1-1/+1
2005-04-10daily updateAlan Modra1-1/+1
2005-04-09daily updateAlan Modra1-1/+1
2005-04-082005-04-08 Paul Brook <paul@codesourcery.com>Paul Brook2-11/+63
* elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename... (ARM2THUMB_STATIC_GLUE_SIZE): ... to this. (ARM2THUMB_PIC_GLUE_SIZE): Define. (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add. (elf32_arm_to_thumb_stub): Create PIC stubs. (record_arm_to_thumb_glue): Use different stub size for relocatable images.
2005-04-08daily updateAlan Modra1-1/+1
2005-04-07daily updateAlan Modra1-1/+1
2005-04-06daily updateAlan Modra1-1/+1
2005-04-05 * elf64-ppc.c (dec_dynrel_count): New function split out fromAlan Modra2-149/+145
ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd. (ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it. (ppc64_elf_tls_optimize): Likewise.
2005-04-05Provide .wcookie section for OpenBSD/sparc64.Nick Clifton2-17/+44
2005-04-05New translation: KinyarwandaNick Clifton4-2/+3109
2005-04-05 * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.Richard Sandiford2-4/+19
(_bfd_mips_elf_section_from_shdr): Use it to check for recognized SHT_MIPS_OPTIONS names. Allow all sections with unrecognised section flags. (_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P to check for SHT_MIPS_OPTIONS sections. (_bfd_mips_elf_set_section_contents): Likewise.
2005-04-052005-04-04 Eric Christopher <echristo@redhat.com>Eric Christopher2-23/+19
* elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Clean up gp handling code.
2005-04-05bfd/H.J. Lu3-9/+136
2005-04-04 H.J. Lu <hongjiu.lu@intel.com> * elf.c (bfd_elf_set_group_contents): Ignore linker created group section. (assign_section_numbers): Accept link_info. Check SHT_GROUP sections for relocatable files only. Remove the linker created group sections. (_bfd_elf_compute_section_file_positions): Pass link_info to assign_section_numbers. * elfxx-ia64.c (elfNN_ia64_object_p): New. (elf_backend_object_p): Defined. gas/ 2005-04-04 H.J. Lu <hongjiu.lu@intel.com> * config/tc-ia64.c (start_unwind_section): Undo the change of 2004-08-18. (generate_unwind_image, dot_endp): Likewise.
2005-04-052005-04-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+8
* elf.c (bfd_elf_set_group_contents): Ignore linker created group section.
2005-04-05daily updateAlan Modra1-1/+1
2005-04-042005-04-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* elf-bfd.h (elf_section_data): Use (sec) instead of sec.
2005-04-04daily updateAlan Modra1-1/+1
2005-04-03Apply patch for binutils bug 806, approved by nickc@redhat.com.Fred Fish2-41/+203
2005-04-03 Fred Fish <fnf@specifixinc.com> * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and dwarf_ranges_size members. (struct comp_unit): Add base_address member. (struct funcinfo): Replace low/high members with an arange. (arange_add): Replace incoming "unit" parameter with "abfd" and "first_arange" pointers. Reorganize/rewrite function body. (decode_line_info): Change arange_add call to pass bfd and arange pointers. (lookup_address_in_line_info_table): Use arange list instead of individual low/high members. Walk function's arange list to find lowest PC in list, to test for overlapping functions. (read_debug_ranges): New function, reads the debug_ranges section. (lookup_address_in_function_table): Use arange list instead of individual low/high members. Rewrite to find smallest range that matches. (read_rangelist): Read a given rangelist from debug_ranges. (scan_unit_for_functions): Use arange list instead of individual low/high members. Handle a DW_AT_ranges attribute. (parse_comp_unit): Use arange list instead of individual low/high members. Save comp unit base address. Handle a DW_AT_ranges attribute.
2005-04-03daily updateAlan Modra1-1/+1
2005-04-02daily updateAlan Modra1-1/+1
2005-04-012005-04-01 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+5
* elf.c (assign_section_numbers): Really use the kept section.
2005-04-012005-03-31 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-9/+58
* elf-bfd.h (_bfd_elf_check_kept_section): New. * elf.c (assign_section_numbers): When sh_link points to a discarded section, call _bfd_elf_check_kept_section to see if the kept section can be used. Otherwise reject sh_link pointing to discarded section. * elflink.c (_bfd_elf_check_kept_section): New. (elf_link_input_bfd): Use it.
2005-04-01 * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocsAlan Modra2-0/+106
that we no longer need.
2005-04-01 (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.Alan Modra2-3/+3
2005-04-01 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errorsAlan Modra2-9/+16
rather than 0.
2005-04-012005-03-31 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* elf.c (assign_section_numbers): Fix a typo.
2005-04-01daily updateAlan Modra1-1/+1
2005-03-312005-03-31 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-10/+16
* elflink.c (elf_link_input_bfd): Remove the extra `\n' in error message. (_bfd_elf_section_already_linked): Likewise.
2005-03-31 * bfd/config.in: Regenerate.Jerome Guitton2-1/+6
2005-03-31 * bfd/config.in (HAVE_DECL_BASENAME): New configure macro.Jerome Guitton4-0/+85
* bfd/configure.in: Check for basename. * bfd/configure: Regenerate.
2005-03-31daily updateAlan Modra1-1/+1
2005-03-30 * bfd/bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename fromJulian Brown5-6/+18
bfd_elf32_is_arm_mapping_symbol_name. * bfd/bfd-in2.h: Regenerate. * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from bfd_elf32_is_arm_mapping_symbol_name. * bfd/elf32-arm.c (elf32_arm_is_target_special_symbol): Rename bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name. (arm_elf_find_function): Likewise. (elf32_arm_output_symbol_hook): Likewise. * gas/config/tc-arm.c (arm_adjust_symtab): Likewise.
2005-03-30 * bfd/bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.Julian Brown5-13/+35
* bfd/bfd-in2.h: Regenerate. * bfd/elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to bfd_elf32_is_arm_mapping_symbol_name. (elf32_arm_output_symbol_hook): Likewise. (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for mapping symbols. (is_arm_mapping_symbol_name): Function moved from here... * bfd/cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed and made global. * gas/config/tc-arm.c (mapping_state): Change documentation in function comment to cross-reference spec instead. Change type of mapping symbols to BSF_NO_TYPE. (arm_adjust_symtab): Don't change type of mapping symbols here. * gas/testsuite/gas/arm/mapping.d: Update expected output. * ld/testsuite/ld-arm/arm-app-abs32.d: Likewise. * ld/testsuite/ld-arm/arm-app.d: Likewise. * ld/testsuite/ld-arm/mixed-app.d: Likewise.
2005-03-30 * configure.in: Check for ffs decl and alphabetize.Aaron W. LaFramboise5-61/+153
* config.in: Regenerate. * configure: Regenerate. * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
2005-03-30daily updateAlan Modra1-1/+1
2005-03-29 Approved by nickc@redhat.comFred Fish2-17/+7
2005-03-29 Fred Fish <fnf@specifixinc.com> * dwarf2.c (struct comp_unit): Fix typo. (scan_unit_for_functions): Remove unused local variable "name" and dead code that set it.
2005-03-29bfd/Daniel Jacobowitz5-80/+743
* bfd-in2.h, libbfd.h: Regenerated. * reloc.c: Add ARM TLS relocations. * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS relocations. (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto) (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto) (elf32_arm_tls_ie32_howto): New. (elf32_arm_howto_from_type): Support TLS relocations. (elf32_arm_reloc_map): Likewise. (elf32_arm_reloc_type_lookup): Likewise. (TCB_SIZE): Define. (struct elf32_arm_obj_tdata): New. (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define. (elf32_arm_mkobject): New function. (struct elf32_arm_relocs_copied): Add pc_count. (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD) (GOT_TLS_IE): Define. (struct elf32_arm_link_hash_table): Add tls_ldm_got. (elf32_arm_link_hash_newfunc): Initialize tls_type. (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type. (elf32_arm_link_hash_table_create): Initialize tls_ldm_got. (dtpoff_base, tpoff): New functions. (elf32_arm_final_link_relocate): Handle TLS relocations. (IS_ARM_TLS_RELOC): Define. (elf32_arm_relocate_section): Warn about TLS mismatches. (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count. (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle TLS relocations and pc_count. (elf32_arm_adjust_dynamic_symbol): Check non_got_ref. (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local calls. (elf32_arm_size_dynamic_sections): Handle TLS. (elf32_arm_finish_dynamic_symbol): Likewise. (bfd_elf32_mkobject): Define. gas/ * config/tc-arm.c (arm_parse_reloc): Add TLS relocations. (md_apply_fix3): Mark TLS symbols. (tc_gen_reloc): Handle TLS relocations. (arm_fix_adjustable): Ignore TLS relocations. (s_arm_elf_cons): Support expressions after decorated symbols. gas/testuite/ * gas/arm/tls.s, gas/arm/tls.d: New files. * gas/arm/arm.exp: Run TLS test. include/elf/ * arm.h: Add TLS relocations. ld/testsuite/ * ld-arm/tls-lib.s, ld-arm/tls-lib.d, ld-arm/tls-lib.r, ld-arm/tls-app.s, ld-arm/tls-app.d, ld-arm/tls-app.r: New files. * ld-arm/arm-lib.ld, ld-arm/arm-dyn.ld: Increase data segment alignment. * ld-arm/arm-elf.exp: Run TLS tests.
2005-03-29 * elf32-arm.c (elf32_arm_check_relocs): Increment count for allDaniel Jacobowitz2-15/+9
relocation types. Don't count relocations which will use a PLT.
2005-03-29 * elf.c (elfcore_grok_nto_status): Print tid as long.Joel Brobecker2-2/+7
(elfcore_grok_nto_regs): Likewise.
2005-03-29 * irix-core.c: Remove some unnecessary prototypes.Joel Brobecker2-16/+4
2005-03-29 * irix-core.c: Convert to ISO C.Joel Brobecker2-31/+26
2005-03-29 * irix-core.c (do_sections): Replace + by | in expression.Joel Brobecker2-2/+9
(irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED to unused parameters to avoid a compiler warning.
2005-03-29daily updateAlan Modra1-1/+1
2005-03-28* netbsd-core.c: Convert to ISO C. Fix formatting.Mark Kettenis2-32/+19
2005-03-27Update BFD_VERSION_DATE to 20050327 by hand.H.J. Lu1-1/+1
2005-03-242005-03-24 Eric Christopher <echristo@redhat.com>Eric Christopher2-20/+24
* elfxx-mips.c: Revert previous patch. 2005-03-24 Eric Christopher <echristo@redhat.com> * ld-mips-elf/rel32-n32.d: Revert changes. * ld-mips-elf/rel32-o32.d: Ditto. * ld-mips-elf/rel64.d: Ditto.
2005-03-24(_bfd_target_vector): Only include the bfd_elf32_ia64_hpux_big_vec vectorNick Clifton2-0/+8
when building a 64-bit BFD with all targets enabled.
2005-03-24(BFD32_BACKENDS): Delete elf32-ia64.lo.Nick Clifton3-2/+12
(BFD64_BACKENDS): Add elf32-ia64.lo.
2005-03-24bfd/ChangeLog:Eric Christopher2-20/+29
2005-03-23 Eric Christopher <echristo@redhat.com> * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New. (mips_elf_calculate_relocation): Use. Define DF_TEXTREL after emitting relocation. (_bfd_mips_elf_adjust_dynamic_symbol): Ditto. (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL and readonly_reloc. ld/testsuite/ChangeLog: 2005-03-23 Eric Christopher <echristo@redhat.com> * ld-mips-elf/textrel-1.s, ld-mips-elf/textrel-1.d: New test. * ld-mips-elf/mips-elf.exp: Call it. * ld-mips-elf/rel32-n32.d: Update for DF_TEXTREL removal. * ld-mips-elf/rel32-o32.d: Ditto. * ld-mips-elf/rel64.d: Ditto.