aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
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.
2005-03-23Accept any C library to accompany a GNU Linux implementation, not just the GNUNick Clifton4-22/+30
C library.
2005-03-23bfd/H.J. Lu5-25/+44
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-22daily updateAlan Modra1-1/+1
2005-03-22 * hash.c (strtab_hash_newfunc): Fix typo in allocated size.Hans-Peter Nilsson2-1/+5
2005-03-22include ChangeLogBob Wilson2-30/+60
* 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-22Oops - fix typo in ISO-C90ifcationNick Clifton1-2/+2
2005-03-22Oops - fix typos and finish of ISO-C90'fication of ieee.cNick Clifton1-367/+346
2005-03-22Convert to ISO C90 formatting.Nick Clifton8-1318/+852
2005-03-22 * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail forDaniel Jacobowitz2-0/+8
unresolved symbols in R_ARM_NONE relocations.
2005-03-22 * elf32-arm.c (elf32_arm_final_link_relocate): AddDaniel Jacobowitz2-63/+34
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 Modra2-0/+9
* 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 Modra2-88/+47
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 Modra2-15/+46
(ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start and end syms.
2005-03-21daily updateAlan Modra1-1/+1
2005-03-21(coff_link_hash_entry): Only define for non WINCE targets.Nick Clifton2-0/+22
(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 Modra2-4/+17
* 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 Modra3-149/+124
* 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 Modra2-104/+109
(ppc_elf_merge_private_bfd_data): Likewise.
2005-03-21 * elf32-ppc.c (struct elf_linker_section): Remove rel_section.Alan Modra2-59/+13
(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.
2005-03-21 * elf32-ppc.c (is_ppc_elf_target): New function.Alan Modra2-7/+25
(ppc_elf_merge_private_bfd_data): Use it rather than just testing for bfd_target_elf_flavour. Do this test before endian check. (ppc_elf_add_symbol_hook): Use is_pcc_elf_target. (ppc_elf_size_dynamic_sections): Likewise.
2005-03-202005-03-20 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu14-86/+110
* elf-bfd.h (elf_backend_data): Add int to elf_backend_section_from_shdr. (bfd_elf_section_data): Update comment for this_idx. (_bfd_elf_make_section_from_shdr): Add int. * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise. * elf.c (_bfd_elf_make_section_from_shdr): Take section index and use it to set this_idx in bfd_elf_section_data. (bfd_section_from_shdr): Pass shindex to _bfd_elf_make_section_from_shdr. (_bfd_elf_section_from_bfd_section): Use this_idx in bfd_elf_section_data to find section index. * elf32-arm.c (elf32_arm_section_from_shdr): Take section index and pass it to _bfd_elf_make_section_from_shdr. * elf32-i370.c(i370_elf_section_from_shdr): Likewise. * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise. * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise. * elf32-v850.c (v850_elf_section_from_shdr): Likewise. * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise. * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise. * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise. * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
2005-03-20daily updateAlan Modra1-1/+1
2005-03-19daily updateAlan Modra1-1/+1
2005-03-19 * peicode.h (pe_ILF_build_a_bfd): Strip only one prefixDanny Smith2-31/+17
character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX cases. Add comment.
2005-03-182005-03-18 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-3/+6
* elflink.c (elf_mark_used_section): Remove check for special sections.
2005-03-18daily updateAlan Modra1-1/+1
2005-03-18 * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insnAndreas Schwab2-2/+8
from bfd_vma to ia64_insn, remove broken cast.
2005-03-18Add support for generating PLT lookups for the ColdFire.Nick Clifton2-16/+84
2005-03-18 * elf32-arm.c (elf32_arm_modify_segment_map): New function.Mark Mitchell2-3/+66
(elf32_arm_additional_program_headers): Likewise. (elf_backend_modify_segment_map): Define. (elf_backend_additional_program_headers): Likewise. (elf32_arm_symbian_modify_segment_map): Use elf32_arm_modify_segment_map. * binutils/readelf.c (get_arm_segment_type): New function. (get_segment_type): Use it. * arm.h (PT_ARM_EXIDX): Define.
2005-03-182005-03-18 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+8
* elflink.c (elf_mark_used_section): Check bfd_is_const_section for special sections.
2005-03-18 * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete.Alan Modra3-25/+36
* elflink.c (_bfd_elf_link_renumber_dynsyms): Make static, add section_sym_count param, and return number of section symbols. (bfd_elf_size_dynamic_sections): Clear section symbol area of .dynsym contents. Don't bother calling swap_symbol_out on the first all-zero dynsym. (elf_mark_used_section): Formatting. Avoid twiddling flags in special sections like bfd_abs_section. (bfd_elf_gc_sections): Spelling fix.
2005-03-17daily updateAlan Modra1-1/+1
2005-03-17(read_indirect_string): Fix apparent typo, check dwarf_str_buffer allocation,Nick Clifton2-1/+7
not dwarf_abbrev_buffer.
2005-03-16daily updateAlan Modra1-1/+1
2005-03-16bfd/H.J. Lu2-0/+38
2005-03-16 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (elf_mark_used_section): New. (bfd_elf_gc_sections): Call elf_gc_mark_section for non-relocatable link if we don't do GC. include/ 2005-03-16 H.J. Lu <hongjiu.lu@intel.com> * bfdlink.h (bfd_link_info): Add gc_sections. ld/ 2005-03-16 H.J. Lu <hongjiu.lu@intel.com> * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove unused empty output sections for non-relocatable link. * ld.h (args_type): Remove gc_sections. * ldlang.c (lang_mark_used_section): New. (lang_gc_sections): Use link_info.gc_sections instead of command_line.gc_sections. * ldmain.c (main): Likewise. * lexsup.c (parse_args): Likewise. * ldlang.c (lang_process): Call lang_mark_used_section. * ldmain.c (main): Initialize link_info.gc_sections to FALSE. ld/testsuite/ 2005-03-16 H.J. Lu <hongjiu.lu@intel.com> * ld-alpha/tlsbin.rd: Updated for empty section removal. * ld-alpha/tlsbinr.rd: Likewise. * ld-alpha/tlspic.rd: Likewise. * ld-arm/mixed-lib.sym: Likewise. * ld-i386/tlsbin.rd: Likewise. * ld-i386/tlsnopic.rd: Likewise. * ld-i386/tlspic.rd: Likewise. * ld-ia64/tlsbin.rd: Likewise. * ld-ia64/tlspic.rd: Likewise. * ld-powerpc/apuinfo.rd: Likewise. * ld-powerpc/powerpc.exp: Likewise. * ld-powerpc/tlsexe32.r: Likewise. * ld-s390/tlsbin.rd: Likewise. * ld-s390/tlsbin_64.rd: Likewise. * ld-s390/tlspic.rd: Likewise. * ld-s390/tlspic_64.rd: Likewise. * ld-sh/tlsbin-2.d: Likewise. * ld-sh/tlspic-2.d: Likewise. * ld-sparc/tlssunbin32.rd: Likewise. * ld-sparc/tlssunnopic32.rd: Likewise. * ld-sparc/tlssunpic32.rd: Likewise. * ld-x86-64/tlsbin.rd: Likewise. * ld-x86-64/tlspic.rd: Likewise.
2005-03-16Rename switch to enable/disable -Werror to --enable-werror/--disable-werrorNick Clifton3-14/+14
for compatibility with gcc.
2005-03-16Enable -Werror by defaultNick Clifton3-1/+46
2005-03-16Convert to ISO C90 formatting.Nick Clifton2-1244/+1139
2005-03-16 * elf32-ppc.c: Divide file into general and linker specificAlan Modra2-2061/+2070
functions. Sort linker functions into roughly the order in which they are called by the ELF linker code.