aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2005-04-11Convert to ISO C90 formattingNick Clifton1-0/+37
2005-04-082005-04-08 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+10
* 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-05 * elf64-ppc.c (dec_dynrel_count): New function split out fromAlan Modra1-0/+7
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 Clifton1-0/+7
2005-04-05New translation: KinyarwandaNick Clifton1-0/+6
2005-04-05 * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.Richard Sandiford1-0/+10
(_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 Christopher1-0/+5
* elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Clean up gp handling code.
2005-04-05bfd/H.J. Lu1-0/+8
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. Lu1-0/+5
* elf.c (bfd_elf_set_group_contents): Ignore linker created group section.
2005-04-042005-04-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+4
* elf-bfd.h (elf_section_data): Use (sec) instead of sec.
2005-04-03Apply patch for binutils bug 806, approved by nickc@redhat.com.Fred Fish1-0/+24
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-012005-04-01 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+4
* elf.c (assign_section_numbers): Really use the kept section.
2005-04-012005-03-31 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+12
* 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 Modra1-0/+5
that we no longer need.
2005-04-01 (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.Alan Modra1-0/+1
2005-04-01 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errorsAlan Modra1-0/+5
rather than 0.
2005-04-012005-03-31 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+4
* elf.c (assign_section_numbers): Fix a typo.
2005-03-312005-03-31 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-3/+9
* 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 Guitton1-0/+4
2005-03-31 * bfd/config.in (HAVE_DECL_BASENAME): New configure macro.Jerome Guitton1-0/+6
* bfd/configure.in: Check for basename. * bfd/configure: Regenerate.
2005-03-30 * bfd/bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename fromJulian Brown1-0/+12
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 Brown1-0/+13
* 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. LaFramboise1-0/+8
* config.in: Regenerate. * configure: Regenerate. * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
2005-03-29 Approved by nickc@redhat.comFred Fish1-0/+6
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 Jacobowitz1-0/+38
* 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 Jacobowitz1-0/+5
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 Brobecker1-0/+5
(elfcore_grok_nto_regs): Likewise.
2005-03-29 * irix-core.c: Remove some unnecessary prototypes.Joel Brobecker1-0/+4
2005-03-29 * irix-core.c: Convert to ISO C.Joel Brobecker1-0/+4
2005-03-29 * irix-core.c (do_sections): Replace + by | in expression.Joel Brobecker1-0/+6
(irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED to unused parameters to avoid a compiler warning.
2005-03-28* netbsd-core.c: Convert to ISO C. Fix formatting.Mark Kettenis1-0/+4
2005-03-242005-03-24 Eric Christopher <echristo@redhat.com>Eric Christopher1-0/+4
* 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 Clifton1-0/+6
when building a 64-bit BFD with all targets enabled.
2005-03-24(BFD32_BACKENDS): Delete elf32-ia64.lo.Nick Clifton1-0/+6
(BFD64_BACKENDS): Add elf32-ia64.lo.
2005-03-24bfd/ChangeLog:Eric Christopher1-0/+9
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.
2005-03-23Accept any C library to accompany a GNU Linux implementation, not just the GNUNick Clifton1-0/+8
C library.
2005-03-23bfd/H.J. Lu1-0/+12
2005-03-22 H.J. Lu <hongjiu.lu@intel.com> * bfd-in.h (_bfd_elf_provide_symbol): New. * bfd-in2.h: Regenerated. * elf32-ppc.c (set_linker_sym): Moved to elflink.c. (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead of set_linker_sym. * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed from elf32-ppc.c. ld/ 2005-03-22 H.J. Lu <hongjiu.lu@intel.com> * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New (gld${EMULATION_NAME}_finish): Call gld${EMULATION_NAME}_provide_bound_symbols to provide __preinit_array_start, __preinit_array_end, __init_array_start, __init_array_end, __fini_array_start and __fini_array_end. * scripttempl/elf.sc: Don't provide __preinit_array_start, __preinit_array_end, __init_array_start, __init_array_end, __fini_array_start nor __fini_array_end.
2005-03-22 * hash.c (strtab_hash_newfunc): Fix typo in allocated size.Hans-Peter Nilsson1-0/+4
2005-03-22include ChangeLogBob Wilson1-1/+8
* xtensa-isa.h: Update a comment and whitespace. bfd ChangeLog * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup, xtensa_sysreg_lookup_name, xtensa_interface_lookup, xtensa_funcUnit_lookup): Skip bsearch call if count is zero. (xtensa_opcode_decode): Rearrange code.
2005-03-22Convert to ISO C90 formatting.Nick Clifton1-0/+10
2005-03-22 * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail forDaniel Jacobowitz1-0/+5
unresolved symbols in R_ARM_NONE relocations.
2005-03-22 * elf32-arm.c (elf32_arm_final_link_relocate): AddDaniel Jacobowitz1-0/+8
UNRESOLVED_RELOC_P argument. Set it appropriately. (elf32_arm_relocate_section): Update call to elf32_arm_final_link_relocate. Don't clobber RELOCATION; use unresolved_reloc instead.
2005-03-22bfd/Alan Modra1-0/+5
* elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on .gnu.warning.* sections. ld/ * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set SEC_EXCLUDE on .gnu.warning sections.
2005-03-22 * elf32-ppc.c (elf_linker_section_pointers_t): RemoveAlan Modra1-0/+15
written_address_p. (ppc_elf_create_linker_section): Don't try to reuse existing section. (elf_create_pointer_linker_section): Delete info parm. Don't make h dynamic. Don't set written_address_p. (ppc_elf_check_relocs): Adjust ppc_elf_create_linker_section calls. (bfd_put_ptr): Delete. (elf_finish_pointer_linker_section): Remove output_bfd and info parms. Always write section contents. Assert global sym is def_regular. Use offset bottom bit as a written flag. (ppc_elf_relocate_section): Adjust elf_finish_pointer_linker_section calls.
2005-03-22 * elf32-ppc.c (ppc_elf_set_sdata_syms): New function, extracted from..Alan Modra1-0/+6
(ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start and end syms.
2005-03-21(coff_link_hash_entry): Only define for non WINCE targets.Nick Clifton1-0/+16
(t2a1_bx_pc_insn): Likewise. (t2a2_noop_insn): Likewise. (t2a3_b_insn): Likewise. (t2a1_push_insn): Likewise. (t2a2_ldr_insn): Likewise. (t2a3_mov_insn): Likewise. (t2a4_bx_insn): Likewise. (t2a5_pop_insn): Likewise. (t2a6_bx_insn): Likewise. (coff_arm_relocate_section): Only declare the high_address variable for non WINCE targets.
2005-03-21bfd/Alan Modra1-0/+6
* elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss SEC_LINKER_CREATED. Attach to dynobj. (ppc_elf_size_dynamic_sections): Strip htab->sbss if zero size. ld/ * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms. ld/testsuite/ * ld-powerpc/tlsexe32.r: Update. * ld-powerpc/tlsso32.d: Update. * ld-powerpc/tlsso32.g: Update. * ld-powerpc/tlsso32.r: Update.
2005-03-21bfd/Alan Modra1-0/+19
* elf32-ppc.c (struct elf_linker_section): Remove sym_hash and sym_offset. Add name, bss_name, sym_name, sym_val. (struct ppc_elf_link_hash_table): Remove sdata and sdata2 pointers. Add sdata array of elf_linker_section_t. (ppc_elf_link_hash_table_create): Set name, sym_name, and bss_name. (enum elf_linker_section_enum): Delete. (ppc_elf_create_linker_section): Rewrite. Don't create syms here. (ppc_elf_check_relocs): Delay ppc_elf_create_linker_section until the special sections are needed. Adjust htab->sdata refs. Ensure dynobj is set in sreloc code. (ppc_elf_size_dynamic_sections): Strip sdata sections. (ppc_elf_set_sdata_syms): New function. (elf_finish_pointer_linker_section): Use 0x8000 for sym_offset. (ppc_elf_relocate_section): Adjust references to htab->sdata. Use sym_val instead of sym_hash. * elf32-ppc.h (ppc_elf_set_sdata_syms): Declare. ld/ * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New function. (LDEMUL_AFTER_ALLOCATION): Define.
2005-03-21 * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file.Alan Modra1-1/+6
(ppc_elf_merge_private_bfd_data): Likewise.
2005-03-21 * elf32-ppc.c (struct elf_linker_section): Remove rel_section.Alan Modra1-0/+10
(ppc_elf_create_linker_section): Don't create rel_section. (elf_create_pointer_linker_section): Don't size relocs. (elf_finish_pointer_linker_section): Remove relative_reloc parm. Don't generate relocs. (ppc_elf_relocate_section): Adjust calls to elf_finish_pointer_linker_section.