aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2004-10-30daily updateAlan Modra1-1/+1
2004-10-30daily updateAlan Modra1-1/+1
2004-10-29daily updateAlan Modra1-1/+1
2004-10-282004-10-28 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+8
* elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
2004-10-28 * elf32-sh.c (tpoff): Take alignment into account.Kaz Kojima2-1/+7
2004-10-28Fix spelling typoNick Clifton1-1/+1
2004-10-28iq2000_elf_relocate_section): Do nothing when perfoming a relocatable link.Nick Clifton2-6/+11
(iq2000_elf_object_p): Do not set elf_bad_symtab. This is only for MIPS ports under Irix.
2004-10-28daily updateAlan Modra1-1/+1
2004-10-272004-10-27 Richard Earnshaw <rearnsha@arm.com>Paul Brook3-29/+140
bfd/ * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24. (elf32_arm_final_link_relocate): Ditto. (arm_add_to_rel, elf32_arm_relocate_section): Ditto. (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto (elf32_arm_adjust_dynamic_symbol): Ditto. * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}... (elf32_arm_r_howto): ... To here. (elf32_arm_howto_from_type): Use elf32_arm_r_howto. include/ * elf/arm.h: Add R_ARM_CALL and R_ARM_JUMP32.
2004-10-272004-10-26 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-5/+10
PR 475 * elfxx-ia64.c (elfNN_ia64_relocate_section): Correct R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
2004-10-27daily updateAlan Modra1-1/+1
2004-10-26bfd/Paul Brook2-9/+68
* elflink.c (elf_finalize_dynstr): Skip shared aux structure. (bfd_elf_size_dynamic_sections): Create default version definition. (elf_link_output_extsym): Adjust for default symbol version. include/ * bfdlink.h (struct bfd_link_info): Add create_default_symver. ld/ * ld.texinfo: Document --default-symver. * ldmain.c (main): Set link_info.create_default_symver. * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER. (ld_options): Add default-symver. (parse_args): Handle OPTION_DEFAULT_SYMVER. ld/testsuite/ * ld-elfvers/vers.exp (build_binary): Add ldargs parameter. (build_vers_lib_pic_flags): New function. Add vers29 test. * ld-elfvers/vers29.c: New file. * ld-elfvers/vers29.dsym: New file. * ld-elfvers/vers29.ver: New file.
2004-10-26daily updateAlan Modra1-1/+1
2004-10-25daily updateAlan Modra1-1/+1
2004-10-24 * mmo.c: Adjust to ISO C.Hans-Peter Nilsson2-321/+170
2004-10-24 * mmo.c (mmo_write_section_description): New function broken outHans-Peter Nilsson2-27/+129
of mmo_internal_write_section. (mmo_internal_write_section): For each of .text and .data, call mmo_write_section_description before outputting contents if it has nontrivially deducible vma or contents. (mmo_has_leading_or_trailing_zero_tetra_p): New function. (mmo_canonicalize_symtab): Adjust absolute symbols to .data symbols if found within the .data address range.
2004-10-24 * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.Daniel Jacobowitz2-1/+5
2004-10-24 * mmo.c (File Layout): Correct place of misplaced blurb aboutHans-Peter Nilsson2-6/+11
special data.
2004-10-24daily updateAlan Modra1-1/+1
2004-10-23* config.bfd: Add mips64*-*-openbsd.Mark Kettenis2-0/+10
2004-10-23daily updateAlan Modra1-1/+1
2004-10-22daily updateAlan Modra1-1/+1
2004-10-21 * elf32-xtensa.c (ebb_propose_action): Put declarations beforeBob Wilson2-1/+7
statements.
2004-10-212004-10-21 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-2/+7
* configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94. * configure: Regenerate.
2004-10-21bfd/H.J. Lu66-167/+306
2004-10-21 H.J. Lu <hongjiu.lu@intel.com> PR 463 * aoutx.h (aout_link_input_section_std): Pass proper hash entry to linker reloc_overflow callback. (aout_link_input_section_ext): Likewise. (aout_link_reloc_link_order): Likewise. * coff-a29k.c (coff_a29k_relocate_section): Likewise. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise. (alpha_relocate_section): Likewise. * coff-arm.c (coff_arm_relocate_section): Likewise. * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. * coff-h8500.c (extra_case): Likewise. * coff-i960.c (coff_i960_relocate_section): Likewise. * coff-mcore.c (coff_mcore_relocate_section): Likewise. * coff-mips.c (mips_relocate_section): Likewise. * coff-or32.c (coff_or32_relocate_section): Likewise. * coff-ppc.c (coff_ppc_relocate_section): Likewise. * coff-rs6000.c (xcoff_ppc_relocate_section): Likewise. * coff-sh.c (sh_relocate_section): Likewise. * coff-tic80.c (coff_tic80_relocate_section): Likewise. * coff-w65.c (w65_reloc16_extra_cases): Likewise. * coff-z8k.c (extra_case): Likewise. * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise. * cofflink.c (_bfd_coff_reloc_link_order): Likewise. (_bfd_coff_generic_relocate_section): Likewise. * ecoff.c (ecoff_reloc_link_order): Likewise. * elf-hppa.h (elf_hppa_relocate_section): Likewise. * elf-m10200.c (mn10200_elf_relocate_section): Likewise. * elf-m10300.c (mn10300_elf_relocate_section): Likewise. * elf32-arm.h (elf32_arm_relocate_section): Likewise. * elf32-avr.c (elf32_avr_relocate_section): Likewise. * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise. * elf32-cris.c (cris_elf_relocate_section): Likewise. * elf32-crx.c (elf32_crx_relocate_section): Likewise. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. * elf32-fr30.c (fr30_elf_relocate_section): Likewise. * elf32-frv.c (elf32_frv_relocate_section): Likewise. * elf32-h8300.c (elf32_h8_relocate_section): Likewise. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. * elf32-i370.c (i370_elf_relocate_section): Likewise. * elf32-i386.c (elf_i386_relocate_section): Likewise. * elf32-i860.c (elf32_i860_relocate_section): Likewise. * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise. * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise. * elf32-m32r.c (m32r_elf_relocate_section): Likewise. * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-mcore.c (mcore_elf_relocate_section): Likewise. * elf32-msp430.c (elf32_msp430_relocate_section): Likewise. * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-s390.c (elf_s390_relocate_section): Likewise. * elf32-sh.c (sh_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. * elf32-v850.c (v850_elf_relocate_section): Likewise. * elf32-vax.c (elf_vax_relocate_section): Likewise. * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. * elf64-mmix.c (mmix_elf_relocate_section): Likewise. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. * elf64-s390.c (elf_s390_relocate_section): Likewise. * elf64-sh64.c (sh_elf64_relocate_section): Likewise. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. * elflink.c (elf_reloc_link_order): Likewise. * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise. (_bfd_elf_mips_get_relocated_section_contents): Likewise. * linker.c (_bfd_generic_reloc_link_order): Likewise. * pdp11.c (pdp11_aout_link_input_section): Likewise. (aout_link_reloc_link_order): Likewise. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise. * xcofflink.c (xcoff_reloc_link_order): Likewise. * simple.c (simple_dummy_reloc_overflow): Updated. include/ 2004-10-21 H.J. Lu <hongjiu.lu@intel.com> PR 463 * bfdlink.h (bfd_link_callbacks): Add a pointer to struct bfd_link_hash_entry to reloc_overflow. ld/ 2004-10-21 H.J. Lu <hongjiu.lu@intel.com> PR 463 * ldmain.c (reloc_overflow): Accept a pointer to struct bfd_link_hash_entry. Report symbol location for relocation overflow.
2004-10-21daily updateAlan Modra1-1/+1
2004-10-20 * elf32-m68k.c (elf_m68k_plt_sym_val): New function.Andreas Schwab2-0/+18
(elf_backend_plt_sym_val): Define.
2004-10-20 * config.bfd: Set targ_underscore=yes for PE COFF targets.Danny Smith2-0/+5
2004-10-20daily updateAlan Modra1-1/+1
2004-10-19 * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects.Alan Modra2-2/+36
(ppc64_elf_edit_opd): Likewise.
2004-10-19 * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment.Mark Mitchell3-1/+13
* elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT, set SEC_ALLOC and SEC_LOAD.
2004-10-19daily updateAlan Modra1-1/+1
2004-10-18Compute 'name' for relocs against both local and global symbols.gdb_6_3-branchpointNick Clifton2-4/+15
2004-10-18daily updateAlan Modra1-1/+1
2004-10-17daily updateAlan Modra1-1/+1
2004-10-16bfd/Daniel Jacobowitz4-0/+20
* bfd-in2.h: Regenerate. * bfd.c (struct bfd): Add no_export. * elflink.c (elf_link_add_object_symbols): Handle no_export. ld/ * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs) (check_excluded_libs): New. (load_symbols): Call check_excluded_libs. * ldlang.h (add_excluded_libs): New prototype. * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define. (gld${EMULATION_NAME}_add_options): Add --exclude-libs. (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs. * ld.texinfo (Command Line Variables): Document --exclude-libs. (Options Specific to i386 PE Targets): Remove --exclude-libs. ld/testsuite/ * ld-elf/exclude1.s, ld-elf/exclude2.s, ld-elf/exclude.exp: New.
2004-10-16daily updateAlan Modra1-1/+1
2004-10-15 * config.bfd: Whitespace cleanup.Alan Modra4-38/+46
* Makefile.am: Run "make dep-am" * Makefile.in: Regenerate.
2004-10-15 * elflink.c (struct already_linked_section): Removed.Jakub Jelinek2-83/+46
(try_match_symbols_in_sections, already_linked): Removed. (_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\. prefix of section names when finding already_linked_table chain. Compare section names. Instead of calling already_linked, do it inline and only for sections in the same already_linked_list.
2004-10-15daily updateAlan Modra1-1/+1
2004-10-14 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"Alan Modra4-5/+28
parameter. If called after _bfd_elf_write_section_eh_frame, don't allow a -2 return unless need_* bit is already set, and handle offsets adjusted for output_offset. * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype. * elf.c (_bfd_elf_section_offset): Update call.
2004-10-14daily updateAlan Modra1-1/+1
2004-10-132004-10-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+7
PR 440 * coffcode.h (coff_compute_section_file_positions): Cast to bfd_vma when computing page alignment.
2004-10-13 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use fileMark Mitchell2-1/+15
offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED. * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a loadable segment.
2004-10-13 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.pltMark Mitchell2-1/+7
relocations use a virtual address, not a section offset.
2004-10-13daily updateAlan Modra1-1/+1
2004-10-12bfd ChangeLogBob Wilson2-29/+21
* elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete. (narrow_instruction, widen_instruction): Remove unnecessary calls to xtensa_format_encode. (ebb_propose_action): Inline call to ebb_add_proposed_action. (ebb_add_proposed_action): Delete. gas ChangeLog * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq. (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode, is_windowed_return_opcode): Delete. (xtensa_frob_label): Use get_subseg_target_freq. (md_assemble): Inline call to is_entry_opcode. (xtensa_handle_align): Inline call to get_frag_is_literal. (relaxation_requirements): Inline call to is_jx_opcode. (emit_single_op): Inline call to is_movi_opcode. (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn, get_frag_is_no_transform, is_entry_opcode, and set_frag_is_specific_opcode. Use get_subseg_total_freq. (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags, xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed): Inline calls to get_frag_is_no_transform. (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode. (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and get_frag_is_no_transform. (convert_frag_immed_finish_loop): Inline calls to get_expression_value and set_frag_is_no_transform. (get_expression_value): Delete. (subseg_map struct): Rename cur_total_freq to total_freq. Rename cur_target_freq to target_freq. (get_subseg_info): Split out code to create a new map entry into ... (add_subseg_info): ... this new function. (get_last_insn_flags): Check if get_subseg_info succeeded. (set_last_insn_flags): Call add_subseg_info if needed. (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New. (xtensa_reorder_segments): Compute last_sec while counting sections. Remove call to get_last_sec. (get_last_sec): Delete. (cache_literal_section): Inline call to retrieve_literal_seg and its callees, seg_present and add_seg_list. (retrieve_literal_seg, seg_present, add_seg_list): Delete. (get_frag_is_insn, get_frag_is_no_transform, set_frag_is_specific_opcode, set_frag_is_no_transform): Delete. * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
2004-10-12bfd ChangeLogBob Wilson2-1183/+673
* elf32-xtensa.c: Use ISO C90 formatting. gas ChangeLog * config/tc-xtensa.c: Use ISO C90 formatting. * config/tc-xtensa.h: Likewise. * config/xtensa-istack.h: Likewise. * config/xtensa-relax.c: Likewise. * config/xtensa-relax.h: Likewise. ld ChangeLog * emultempl/xtensaelf.em: Use ISO C90 formatting. opcodes ChangeLog * xtensa-dis.c: Use ISO C90 formatting.
2004-10-12 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase errorPaul Brook2-1/+6
message.
2004-10-122004-10-12 Paul Brook <paul@codesourcery.com>Paul Brook2-2/+10
bfd/ * elf32-arm.h: Support EABI version 4 objects. binutils/ * readelf.c (decode_ARM_machine_flags): Support EABI version 4. gas/ * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to EF_ARM_EABI_VER4. (arm_eabis): Ditto. * doc/c-arm.texi: Document that we actually support -meabi=4, not -meabi=3. include/ * elf/arm.h (EF_ARM_EABI_VER4): Define.