X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2FChangeLog;h=767c04d5d6af52cb4d71c8035cf6c873026d6d2c;hb=aa69fe43dd9557f5f9290ec2d534e057e20fd064;hp=0892217731ed0bef2ac55d634314de69ba859d1b;hpb=85a84e7a87d99f18c509431f799d1eb81ba70c1b;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0892217731..767c04d5d6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,6 +1,1077 @@ +2004-10-24 Hans-Peter Nilsson + + * mmo.c (mmo_write_section_description): New function broken out + 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 Daniel Jacobowitz + + * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY. + +2004-10-24 Hans-Peter Nilsson + + * mmo.c (File Layout): Correct place of misplaced blurb about + special data. + +2004-10-22 Mark Kettenis + + * config.bfd: Add mips64*-*-openbsd. + +2004-10-21 Bob Wilson + + * elf32-xtensa.c (ebb_propose_action): Put declarations before + statements. + +2004-10-21 H.J. Lu + + * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94. + * configure: Regenerate. + +2004-10-21 H.J. Lu + + 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. + +2004-10-20 Andreas Schwab + + * elf32-m68k.c (elf_m68k_plt_sym_val): New function. + (elf_backend_plt_sym_val): Define. + +2004-10-19 Danny Smith + + * config.bfd: Set targ_underscore=yes for PE COFF targets + +2004-10-19 Alan Modra + + * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects. + (ppc64_elf_edit_opd): Likewise. + +2004-10-18 Mark Mitchell + + * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment. + * elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT, + set SEC_ALLOC and SEC_LOAD. + +2004-10-18 Nick Clifton + + * elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute + 'name' for relocs against both local and global symbols. + +2004-10-16 Daniel Jacobowitz + + * bfd-in2.h: Regenerate. + * bfd.c (struct bfd): Add no_export. + * elflink.c (elf_link_add_object_symbols): Handle no_export. + +2004-10-15 Alan Modra + + * config.bfd: Whitespace cleanup. + * Makefile.am: Run "make dep-am" + * Makefile.in: Regenerate. + +2004-10-15 Jakub Jelinek + + * elflink.c (struct already_linked_section): Removed. + (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-15 Alan Modra + + * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info" + 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-13 H.J. Lu + + PR 440 + * coffcode.h (coff_compute_section_file_positions): Cast to + bfd_vma when computing page alignment. + +2004-10-13 Mark Mitchell + + * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file + offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED. + +2004-10-12 Mark Mitchell + + * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt + relocations use a virtual address, not a section offset. + +2004-10-12 Bob Wilson + + * 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. + +2004-10-12 Bob Wilson + + * elf32-xtensa.c: Use ISO C90 formatting. + +2004-10-12 Paul Brook + + * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error + message. + +2004-10-12 Paul Brook + + * elf32-arm.h: Support EABI version 4 objects. + +2004-10-12 Alan Modra + + PR 325 + * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Place last in chain. + Don't mark as default. + (bfd_x86_64_arch): Don't mark as default. + +2004-10-12 Alan Modra + + * elflink.c (enum action_discarded): New. + (elf_section_complain_discarded): Delete. + (elf_action_discarded): New function subsuming the above and also + controlling reloc behaviour. + (elf_link_input_bfd): Use it. + +2004-10-11 Jakub Jelinek + + * elf.c (bfd_section_from_shdr): Handle SHT_GNU_LIBLIST. + (special_sections): Add .gnu.liblist and .gnu.conflict. + (assign_section_numbers): Handle SHT_GNU_LIBLIST. + +2004-10-11 Alan Modra + + PR 233 + * elflink.c (elf_link_input_bfd): Try harder to support + relocations against symbols in removed linkonce sections. + +2004-10-11 Alan Modra + + * elflink.c (elf_link_input_bfd): Revert PR 354 change. + + PR 354 + * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC + sections do not reference symbols in non-SEC_ALLOC sections. + +2004-10-11 Alan Modra + + PR 437 + * elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections. + (_bfd_elf_link_omit_section_dynsym): Formatting. + +2004-10-10 Alan Modra + + * libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while. + * libbfd.h: Regnerate. + * elf32-cris.c: Add missing semicolon to BFD_ASSERTs. + * elf32-frv.c: Likewise. + * elf32-m32r.c: Likewise. + * elf32-ppc.c: Likewise. + * elf64-hppa.c: Likewise. + * elfxx-ia64.c: Likewise. + * opncls.c: Likewise. + +2004-10-10 Alan Modra + + * elf-bfd.h (struct eh_frame_hdr_info): Add offsets_adjusted. + * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust + offsets stored in struct eh_cie_fde entries before doing other + work. + + * elf-bfd.h (struct eh_cie_fde): Add cie_inf, remove sec. + (struct eh_frame_hdr_info): Add last_cie_inf, remove last_cie_offset. + * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete code + setting offsets for removed CIEs. Don't set "sec", instead set + cie_inf for FDEs. Keep a pointer to last struct eh_cie_fde for a + CIE in hdr_info. Only set make_relative and make_lsda_relative + for CIEs. Use pointers rather than array indices. + (_bfd_elf_eh_frame_section_offset): Test/set make_relative, + make_lsda_relative, need_* on cie_inf for FDEs. + (_bfd_elf_write_section_eh_frame): Adjust offset and new_offset for + section output_offset. Delete cie_offset, instead use cie_inf + pointer to CIE entry. Use need_relative and need_lsda_relative on + CIE entry for FDEs. Use pointers rather than array indices. + +2004-10-09 Alan Modra + + * coff-rs6000.c (rs6000coff_vec): Add initializer for + bfd_is_target_special_symbol. + * coff64-rs6000.c (rs6000coff64_vec): Likewise. + * som.c (som_bfd_is_target_special_symbol): Define. + +2004-10-08 Nick Clifton + + * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.93. + * configure: Regenerate. + * bfd-in2.h: Regenerate. + * syms.c (bfd_is_target_special_symbol): New interface function. + Returns true when a symbol should be considered to be special. + * targets.c (bfd_target): Include bfd_is_target_special_symbol in + the symbol jump table. + * elf32-arm.h (elf32_arm_is_target_special_symbol): New function. + Return true iff the symbol is a mapping symbol. + (bfd_elf32_bfd_is_target_special_symbol): Define. + * elfxx-target.h: Provide a default definition for + bfd_is_target_special_symbol. + * aout-target.h: Likewise. + * aout-tic30.c: Likewise. + * binary.c: Likewise. + * coffcode.h: Likewise. + * i386msdos.c: Likewise. + * ieee.c: Likewise. + * ihex.c: Likewise. + * libaout.h: Likewise. + * libbfd-in.h: Likewise + * libecoff.h: Likewise. + * mach-o.c: Likewise. + * mmo.c: Likewise. + * nlm-target.h: Likewise. + * oasys.c: Likewise. + * pef.c: Likewise. + * ppcboot.c: Likewise. + * srec.c: Likewise. + * tekhex.c: Likewise. + * versados.c: Likewise. + * vms.c: Likewise. + * xcoff-target.h: Likewise. + * xsym.c: Likewise. + * libbfd.h: Regenerate. + +2004-10-08 Daniel Jacobowitz + + * config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*. + * elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function. + (elf_backend_section_from_shdr): Define. + +2004-10-08 Alan Modra + + * syms.c (bfd_is_local_label): Return false for file symbols. + +2004-10-07 Bob Wilson + David Heine + + * elf32-xtensa.c (elf32xtensa_size_opt): New global variable. + (xtensa_default_isa): Global variable moved here from xtensa-isa.c. + (elf32xtensa_no_literal_movement): New global variable. + (elf_howto_table): Add entries for new relocations. + (elf_xtensa_reloc_type_lookup): Handle new relocations. + (property_table_compare): When addresses are equal, compare sizes and + various property flags. + (property_table_matches): New. + (xtensa_read_table_entries): Extend to read new property tables. Add + output_addr parameter to indicate that output addresses should be used. + Use bfd_get_section_limit. + (elf_xtensa_find_property_entry): New. + (elf_xtensa_in_literal_pool): Use elf_xtensa_find_property_entry. + (elf_xtensa_check_relocs): Handle new relocations. + (elf_xtensa_do_reloc): Use bfd_get_section_limit. Handle new + relocations. Use new xtensa-isa.h functions. + (build_encoding_error_message): Remove encode_result parameter. Add + new target_address parameter used to detect alignment errors. + (elf_xtensa_relocate_section): Use bfd_get_section_limit. Clean up + error handling. Use new is_operand_relocation function. + (elf_xtensa_combine_prop_entries, elf_xtensa_merge_private_bfd_data): + Use underbar macro for error messages. Formatting. + (get_const16_opcode): New. + (get_l32r_opcode): Add a separate flag for initialization. + (get_relocation_opnd): Operand number is no longer explicit in the + relocation. Change to decode the opcode and analyze its operands. + (get_relocation_slot): New. + (get_relocation_opcode): Add bfd parameter. Use bfd_get_section_limit. + Use new xtensa-isa.h functions to handle multislot instructions. + (is_l32r_relocation): Add bfd parameter. Use is_operand_relocation. + (get_asm_simplify_size, is_alt_relocation, is_operand_relocation, + insn_decode_len, insn_decode_opcode, check_branch_target_aligned, + check_loop_aligned, check_branch_target_aligned_address, narrowable, + widenable, narrow_instruction, widen_instruction, op_single_fmt_table, + get_single_format, init_op_single_format_table): New. + (elf_xtensa_do_asm_simplify): Add error_message parameter and use it + instead of calling _bfd_error_handler. Use new xtensa-isa.h functions. + (contract_asm_expansion): Add error_message parameter and pass it to + elf_xtensa_do_asm_simplify. Replace use of R_XTENSA_OP0 relocation + with R_XTENSA_SLOT0_OP. + (get_expanded_call_opcode): Extend to handle either L32R or CONST16 + instructions. Use new xtensa-isa.h functions. + (r_reloc struct): Add new virtual_offset field. + (r_reloc_init): Add contents and content_length parameters. Set + virtual_offset field to zero. Add contents to target_offset field for + partial_inplace relocations. + (r_reloc_is_defined): Check for null. + (print_r_reloc): New debug function. + (source_reloc struct): Replace xtensa_operand field with pair of the + opcode and the operand position. Add is_abs_literal field. + (init_source_reloc): Specify operand by opcode/position pair. Set + is_abs_literal field. + (source_reloc_compare): When target_offsets are equal, compare other + fields to make sorting predictable. + (literal_value struct): Add is_abs_literal field. + (value_map_hash_table struct): Add has_last_loc and last_loc fields. + (init_literal_value): New. + (is_same_value): Replace with ... + (literal_value_equal): ... this function. Add comparisons of + virtual_offset and is_abs_literal fields. + (value_map_hash_table_init): Use bfd_zmalloc. Check for allocation + failure. Initialize has_last_loc field. + (value_map_hash_table_delete): New. + (hash_literal_value): Rename to ... + (literal_value_hash): ... this. Include is_abs_literal flag and + virtual_offset field in the hash value. + (get_cached_value): Rename to ... + (value_map_get_cached_value): ... this. Update calls to + literal_value_hash and literal_value_equal. + (add_value_map): Check for allocation failure. Update calls to + value_map_get_cached_value and literal_value_hash. + (text_action, text_action_list, text_action_t): New types. + (find_fill_action, compute_removed_action_diff, adjust_fill_action, + text_action_add, text_action_add_literal, offset_with_removed_text, + offset_with_removed_text_before_fill, find_insn_action, + print_action_list, print_removed_literals): New. + (offset_with_removed_literals): Delete. + (xtensa_relax_info struct): Add is_relaxable_asm_section, action_list, + fix_array, fix_array_count, allocated_relocs, relocs_count, and + allocated_relocs_count fields. + (init_xtensa_relax_info): Initialize new fields. + (reloc_bfd_fix struct): Add new translated field. + (reloc_bfd_fix_init): Add translated parameter and use it to set the + translated field. + (fix_compare, cache_fix_array): New. + (get_bfd_fix): Remove fix_list parameter and get all relax_info for the + section via get_xtensa_relax_info. Use cache_fix_array to set up + sorted fix_array and use bsearch instead of linear search. + (section_cache_t): New struct. + (init_section_cache, section_cache_section, clear_section_cache): New. + (ebb_t, ebb_target_enum, proposed_action, ebb_constraint): New types. + (init_ebb_constraint, free_ebb_constraint, init_ebb, extend_ebb_bounds, + extend_ebb_bounds_forward, extend_ebb_bounds_backward, + insn_block_decodable_len, ebb_propose_action, ebb_add_proposed_action): + New. + (retrieve_contents): Use bfd_get_section_limit. + (elf_xtensa_relax_section): Add relocations_analyzed flag. Update call + to compute_removed_literals. Free value_map_hash_table when no longer + needed. + (analyze_relocations): Check is_relaxable_asm_section flag. Call + compute_text_actions for all sections. + (find_relaxable_sections): Mark sections as relaxable if they contain + ASM_EXPAND relocations that can be optimized. Adjust r_reloc_init + call. Increment relax_info src_count field only for appropriate + relocation types. Remove is_literal_section check. + (collect_source_relocs): Use bfd_get_section_limit. Adjust calls to + r_reloc_init and find_associated_l32r_irel. Check + is_relaxable_asm_section flag. Handle L32R instructions with absolute + literals. Pass is_abs_literal flag to init_source_reloc. + (is_resolvable_asm_expansion): Use bfd_get_section_limit. Check for + CONST16 instructions. Adjust calls to r_reloc_init and + pcrel_reloc_fits. Handle weak symbols conservatively. + (find_associated_l32r_irel): Add bfd parameter and pass it to + is_l32r_relocation. + (compute_text_actions, compute_ebb_proposed_actions, + compute_ebb_actions, check_section_ebb_pcrels_fit, + check_section_ebb_reduces, text_action_add_proposed, + compute_fill_extra_space): New. + (remove_literals): Replace with ... + (compute_removed_literals): ... this function. Call + init_section_cache. Use bfd_get_section_limit. Sort internal_relocs. + Call xtensa_read_table_entries to get the property table. Skip + relocations other than R_XTENSA_32 and R_XTENSA_PLT. Use new + is_removable_literal, remove_dead_literal, and + identify_literal_placement functions. + (get_irel_at_offset): Rewrite to use bsearch on sorted relocations + instead of linear search. + (is_removable_literal, remove_dead_literal, + identify_literal_placement): New. + (relocations_reach): Update check for literal not referenced by any + PC-relative relocations. Adjust call to pcrel_reloc_fits. + (coalesce_shared_literal, move_shared_literal): New. + (relax_section): Use bfd_get_section_limit. Call + translate_section_fixes. Update calls to r_reloc_init and + offset_with_removed_text. Check new is_relaxable_asm_section flag. + Add call to pin_internal_relocs. Add special handling for + R_XTENSA_ASM_SIMPLIFY and R_XTENSA_DIFF* relocs. Use virtual_offset + info to calculate new addend_displacement variable. Replace code for + deleting literals with more general code to perform the actions + determined by the action_list for the section. + (translate_section_fixes, translate_reloc_bfd_fix): New. + (translate_reloc): Check new is_relaxable_asm_section flag. Call + find_removed_literal only if is_operand_relocation. Update call to + offset_with_removed_text. Use new target_offset and removed_bytes + variables. + (move_literal): New. + (relax_property_section): Use bfd_get_section_limit. Set new + is_full_prop_section flag and handle new property tables. Update calls + to r_reloc_init and offset_with_removed_text. Check + is_relaxable_asm_section flag. Handle expansion of zero-sized + unreachable entries, with use of offset_with_removed_text_before_fill. + For relocatable links, combine entries only for literal tables. + (relax_section_symbols): Check is_relaxable_asm_section flag. Update + calls to offset_with_removed_text. Translate st_size field for + function symbols. + (do_fix_for_relocatable_link): Change to return bfd_boolean to indicate + failure. Add contents parameter. Update call to get_bfd_fix. Update + call to r_reloc_init. Call _bfd_error_handler and return FALSE for + R_XTENSA_ASM_EXPAND relocs. + (do_fix_for_final_link): Add input_bfd and contents parameters. Update + call to get_bfd_fix. Include offset from contents for partial_inplace + relocations. + (is_reloc_sym_weak): New. + (pcrel_reloc_fits): Use new xtensa-isa.h functions. + (prop_sec_len): New. + (xtensa_is_property_section): Handle new property sections. + (is_literal_section): Delete. + (internal_reloc_compare): When r_offset matches, compare r_info and + r_addend to make sorting predictable. + (internal_reloc_matches): New. + (xtensa_get_property_section_name): Handle new property sections. + (xtensa_get_property_predef_flags): New. + (xtensa_callback_required_dependence): Use bfd_get_section_limit. + Update calls to xtensa_isa_init, is_l32r_relocation, and r_reloc_init. + * xtensa-isa.c (xtensa_default_isa): Moved to elf32-xtensa.c. + (xtisa_errno, xtisa_error_msg): New variables. + (xtensa_isa_errno, xtensa_isa_error_msg): New. + (xtensa_insnbuf_alloc): Add error handling. + (xtensa_insnbuf_to_chars): Add num_chars parameter. Update to + use xtensa_format_decode. Add error handling. + (xtensa_insnbuf_from_chars): Add num_chars parameter. Decode the + instruction length to find the number of bytes to copy. + (xtensa_isa_init): Add error handling. Replace calls to + xtensa_load_isa and xtensa_extend_isa with code to initialize lookup + tables in the xtensa_modules structure. + (xtensa_check_isa_config, xtensa_add_isa, xtensa_load_isa, + xtensa_extend_isa): Delete. + (xtensa_isa_free): Change to only free lookup tables. + (opname_lookup_compare): Replace with ... + (xtensa_isa_name_compare): ... this function. Use strcasecmp. + (xtensa_insn_maxlength): Rename to ... + (xtensa_isa_maxlength): ... this. + (xtensa_insn_length): Delete. + (xtensa_insn_length_from_first_byte): Replace with ... + (xtensa_isa_length_from_chars): ... this function. + (xtensa_num_opcodes): Rename to ... + (xtensa_isa_num_opcodes): ... this. + (xtensa_isa_num_pipe_stages, xtensa_isa_num_formats, + xtensa_isa_num_regfiles, xtensa_isa_num_stages, + xtensa_isa_num_sysregs, xtensa_isa_num_interfaces, + xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup, + xtensa_format_decode, xtensa_format_encode, xtensa_format_length, + xtensa_format_num_slots, xtensa_format_slot_nop_opcode, + xtensa_format_get_slot, xtensa_format_set_slot): New functions. + (xtensa_opcode_lookup): Add error handling. + (xtensa_decode_insn): Replace with ... + (xtensa_opcode_decode): ... this function, with new format and + slot parameters. Add error handling. + (xtensa_encode_insn): Replace with ... + (xtensa_opcode_encode): ... this function, which does the encoding via + one of the entries in the "encode_fns" array. Add error handling. + (xtensa_opcode_name): Add error handling. + (xtensa_opcode_is_branch, xtensa_opcode_is_jump, xtensa_opcode_is_loop, + xtensa_opcode_is_call): New. + (xtensa_num_operands): Replace with ... + (xtensa_opcode_num_operands): ... this function. Add error handling. + (xtensa_opcode_num_stateOperands, + xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses, + xtensa_opcode_funcUnit_use, xtensa_operand_name, + xtensa_operand_is_visible): New. + (xtensa_get_operand, xtensa_operand_kind): Delete. + (xtensa_operand_inout): Add error handling and special-case for + "sout" operands. + (xtensa_operand_get_field, xtensa_operand_set_field): Rewritten to + operate on one slot of an instruction. Added error handling. + (xtensa_operand_encode): Handle default operands with no encoding + functions. Check for success by comparing against decoded value. + Add error handling. + (xtensa_operand_decode): Handle default operands. Return decoded value + through argument pointer. Add error handling. + (xtensa_operand_is_register, xtensa_operand_regfile, + xtensa_operand_num_regs, xtensa_operand_is_known_reg): New. + (xtensa_operand_isPCRelative): Rename to ... + (xtensa_operand_is_PCrelative): ... this. Add error handling. + (xtensa_operand_do_reloc, xtensa_operand_undo_reloc): Return value + through argument pointer. Add error handling. + (xtensa_stateOperand_state, xtensa_stateOperand_inout, + xtensa_interfaceOperand_interface, xtensa_regfile_lookup, + xtensa_regfile_lookup_shortname, xtensa_regfile_name, + xtensa_regfile_shortname, xtensa_regfile_view_parent, + xtensa_regfile_num_bits, xtensa_regfile_num_entries, + xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits, + xtensa_state_is_exported, xtensa_sysreg_lookup, + xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number, + xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name, + xtensa_interface_num_bits, xtensa_interface_inout, + xtensa_interface_has_side_effect, xtensa_funcUnit_lookup, + xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New. + * xtensa-modules.c: Rewrite to use new data structures. + * reloc.c (BFD_RELOC_XTENSA_DIFF8, BFD_RELOC_XTENSA_DIFF16, + BFD_RELOC_XTENSA_DIFF32, BFD_RELOC_XTENSA_SLOT0_OP, + BFD_RELOC_XTENSA_SLOT1_OP, BFD_RELOC_XTENSA_SLOT2_OP, + BFD_RELOC_XTENSA_SLOT3_OP, BFD_RELOC_XTENSA_SLOT4_OP, + BFD_RELOC_XTENSA_SLOT5_OP, BFD_RELOC_XTENSA_SLOT6_OP, + BFD_RELOC_XTENSA_SLOT7_OP, BFD_RELOC_XTENSA_SLOT8_OP, + BFD_RELOC_XTENSA_SLOT9_OP, BFD_RELOC_XTENSA_SLOT10_OP, + BFD_RELOC_XTENSA_SLOT11_OP, BFD_RELOC_XTENSA_SLOT12_OP, + BFD_RELOC_XTENSA_SLOT13_OP, BFD_RELOC_XTENSA_SLOT14_OP, + BFD_RELOC_XTENSA_SLOT0_ALT, BFD_RELOC_XTENSA_SLOT1_ALT, + BFD_RELOC_XTENSA_SLOT2_ALT, BFD_RELOC_XTENSA_SLOT3_ALT, + BFD_RELOC_XTENSA_SLOT4_ALT, BFD_RELOC_XTENSA_SLOT5_ALT, + BFD_RELOC_XTENSA_SLOT6_ALT, BFD_RELOC_XTENSA_SLOT7_ALT, + BFD_RELOC_XTENSA_SLOT8_ALT, BFD_RELOC_XTENSA_SLOT9_ALT, + BFD_RELOC_XTENSA_SLOT10_ALT, BFD_RELOC_XTENSA_SLOT11_ALT, + BFD_RELOC_XTENSA_SLOT12_ALT, BFD_RELOC_XTENSA_SLOT13_ALT, + BFD_RELOC_XTENSA_SLOT14_ALT): Add new relocations. + * Makefile.am (xtensa-isa.lo, xtensa-modules.lo): Update dependencies. + * Makefile.in: Regenerate. + * bfd-in2.h: Likewise. + * libbfd.h: Likewise. + +2004-10-07 Richard Sandiford + + * elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs + against the absolute section. + (mips_elf64_write_rela): Likewise. + +2004-10-07 Jan Beulich + + * elf.c (elf_find_function): Don't generally check for matching + section, just for non-file symbols. Remove redunant comparison + for the latter. + * elf32-arm.h (arm_elf_find_function): Likewise. + +2004-10-07 Jeff Baker + + * elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if + adding a DT_TEXTREL to a shared object and --warn-shared-textrel + was specified. + +2004-10-04 Roland McGrath + + * hash.c (bfd_hash_set_default_size): Use const for table. + Use size_t instead of int for variable compared to sizeof results. + +2004-10-05 Alan Modra + + PR 425 + * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs. + +2004-10-01 Paul Brook + + * elf32-arm.h (elf32_arm_fake_sections, + is_arm_elf_unwind_section_name, elf32_arm_section_from_shdr): New + functions. + (elf_backend_fake_sections, elf_backend_section_from_shdr): Define. + +2004-10-01 Alan Modra + + * elf-bfd.h (struct eh_cie_fde): Add need_relative and + need_lsda_relative. + * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set + need_relative or need_lsda_relative if we are processing an + offset for a reloc on a FDE initial loc or LSDA field + respectively. + (_bfd_elf_write_section_eh_frame): Test need_relative and + need_lsda_relative in place of corresponding make_* field + when deciding to use pc-relative encodings. + +2004-09-30 Paul Brook + + * elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs" + target2 relocation type. + +2004-09-30 H.J. Lu + + PR 414 + * elflink.c (_bfd_elf_merge_symbol): Check TLS symbol. + +2004-09-30 Paul Brook + + * reloc.c: Add BFD_RELOC_ARM_SMI. + * bfd-in2.h: Regenerate. + * libbfd.h: Ditto. + +2004-09-24 Alan Modra + + * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section + vma and output offset to address. + * simple.c (simple_save_output_info): Only set output section + and offset for debug sections, or those not already set up by + the linker. + (bfd_simple_get_relocated_section_contents): Update comment. + +2004-09-24 Alan Modra + + * elf.c (IS_LOADED): Delete. + (assign_file_positions_for_segments): Just test SEC_LOAD instead. + Restore SEC_HAS_CONTENTS test to the one place it was used prior + to 2004-09-22. + +2004-09-23 Alan Modra + + PR gas/396 + * elf32-sparc.c (elf32_sparc_final_write_processing): Handle + bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove + redundant assignment of EM_SPARC. + +2004-09-22 Brian Ford + + * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte + alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3 + constants. + * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. + +2004-09-22 Alan Modra + + * elf32-ppc.c (ppc_elf_modify_segment_map): Delete. + (elf_backend_modify_segment_map): Don't define. + +2004-09-22 Alan Modra + + * elf.c (IS_LOADED): Define. + (assign_file_positions_for_segments): Don't round up file offset of + PT_LOAD segments containing no SEC_LOAD sections, instead round down. + Delete code handling link script adjustment of lma. Do the adjust + in later code handling similar ajustments. Remove dead code error + check. Warn if section lma would require a negative offset + adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz. + Use p_vaddr + p_memsz inside section loop in place of voff. Don't + update voff in section loop. Change voff in segment loop to be an + adjustment on top of "off". Set sec->filepos and update "off" later. + Test for loadable sections consistently using IS_LOADED. Similarly, + test for alloc-only sections other than .tbss consistently. + Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME. + Tidy PT_NOTE handling. Use %B and %A in error messages. + (assign_file_positions_except_relocs): Use %B in error message. + +2004-09-17 H.J. Lu + + * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9. + (CONFIG_STATUS_DEPENDENCIES): New. + (Makefile): Removed. + (config.status): Likewise. + * Makefile.in: Regenerated. + +2004-09-17 Paul Brook + + * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype. + (bfd_elf32_arm_process_before_allocation): Update prototype. + * bfd-in2.h: Regenerate. + * bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc. + (elf32_arm_link_hash_table_create): Set it. + (bfd_elf32_arm_process_before_allocation): Remove target1_is_rel. + (bfd_elf32_arm_set_target_relocs): New function. + (arm_real_reloc_type): New function. + (elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and + R_ARM_GOT_PREL. Remove R_ARM_TARGET1. + (elf32_arm_gc_sweep_hook): Ditto. + (elf32_arm_check_relocs): Ditto. + (elf32_arm_relocate_section): Handle R_ARM_GOT_PREL. + * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and + R_ARM_GOT_TARGET2. + (elf32_arm_got_prel): New variable. + (elf32_arm_howto_from_type): New function. + (elf32_arm_info_to_howto): Use it. + (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and + BFD_RELOC_ARM_TARGET2. + * libbfd.h: Regenerate. + * reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31. + +2004-09-17 Alan Modra + + * ecoff.c: Update u.undef.next refs. + * elf64-ppc.c: Likewise. + * elflink.c: Likewise. + * linker.c: Likewise. + * xcofflink.c: Likewise. + + * elf-bfd.h (struct elf_link_hash_entry): Rearrange. Add FIXME to + dynamic_def. Combine weakdef and elf_hash_value. Move vtable + fields to indirect struct. + * elf-m10300.c: Update u.weakdef refs. + * elf32-arm.h: Likewise. + * elf32-cris.c: Likewise. + * elf32-frv.c: Likewise. + * elf32-hppa.c: Likewise. + * elf32-i370.c: Likewise. + * elf32-i386.c: Likewise. + * elf32-m32r.c: Likewise. + * elf32-m68k.c: Likewise. + * elf32-ppc.c: Likewise. + * elf32-s390.c: Likewise. + * elf32-sh.c: Likewise. + * elf32-sparc.c: Likewise. + * elf32-vax.c: Likewise. + * elf32-xtensa.c: Likewise. + * elf64-alpha.c: Likewise. + * elf64-hppa.c: Likewise. + * elf64-ppc.c: Likewise. + * elf64-s390.c: Likewise. + * elf64-sh64.c: Likewise. + * elf64-sparc.c: Likewise. + * elf64-x86-64.c: Likewise. + * elfxx-ia64.c: Likewise. + * elfxx-mips.c: Likewise. + * elflink.c: Likewise. Also u.elf_hash_value. + (elf_gc_propagate_vtable_entries_used): Update for h->vtable + indirection. + (elf_gc_smash_unused_vtentry_relocs): Likewise. + (bfd_elf_gc_record_vtinherit): Alloc vtable. + (bfd_elf_gc_record_vtentry): Likewise. + * elf.c (_bfd_elf_link_hash_newfunc): Use memset. + +2004-09-17 Alan Modra + + * Makefile.am: Run "make dep-am". + * Makefile.in: Regenerate. + * bfd-in2.h: Regenerate. + * po/SRC-POTFILES.in: Regenerate. + * po/bfd.pot: Regenerate. + +2004-09-16 Alan Modra + + * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags + with bitfields. Make "type" and "other" bitfields too. + (ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR, + ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC, + ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED, + ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF, + ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK, + ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK, + ELF_LINK_POINTER_EQUALITY_NEEDED): Delete. + (ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update. + * elf-hppa.h: Update all uses of elf_link_hash_flags. + * elf-m10300.c: Likewise. + * elf.c: Likewise. + * elf32-arm.h: Likewise. + * elf32-cris.c: Likewise. + * elf32-frv.c: Likewise. + * elf32-hppa.c: Likewise. + * elf32-i370.c: Likewise. + * elf32-i386.c: Likewise. + * elf32-m32r.c: Likewise. + * elf32-m68k.c: Likewise. + * elf32-ppc.c: Likewise. + * elf32-s390.c: Likewise. + * elf32-sh-symbian.c: Likewise. + * elf32-sh.c: Likewise. + * elf32-sh64.c: Likewise. + * elf32-sparc.c: Likewise. + * elf32-vax.c: Likewise. + * elf32-xtensa.c: Likewise. + * elf64-alpha.c: Likewise. + * elf64-hppa.c: Likewise. + * elf64-ppc.c: Likewise. + * elf64-s390.c: Likewise. + * elf64-sh64.c: Likewise. + * elf64-sparc.c: Likewise. + * elf64-x86-64.c: Likewise. + * elflink.c: Likewise. + * elfxx-ia64.c: Likewise. + * elfxx-mips.c: Likewise. + * configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92. + * configure: Regenerate. + * aclocal.m4: Regenerate. + +2004-09-16 Alan Modra + + * elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI + around uses of R_ARM_TARGET1. + (elf32_arm_check_relocs): Likewise. + +2004-09-13 Paul Brook + + * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update + prototype. + * bfd-in2.h: Regenerate. + * libbfd.h: Regenerate. + * elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel. + (elf32_arm_link_hash_table_create): Set target1_is_rel. + (bfd_elf32_arm_process_before_allocation): Ditto. + (elf32_arm_final_link_relocate): Handle R_ARM_TARGET1. + (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto. + * elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1. + * reloc.c: Ditto. + +2004-09-10 Joel Brobecker + + * hpux-core.c (thread_section_p): New function. + (hpux_core_core_file_p): Fix computation of offset in call + to bfd_seek. Create a ".reg" section from an arbitrary + ".reg/" section if none was created after having read + all sections. + +2004-09-11 Andreas Schwab + + * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*. + * aclocal.m4: Rebuild. + * configure: Rebuild. + +2004-09-10 Joel Brobecker + + * section.c (bfd_sections_find_if): Fix parameter name in + comment to match code. + +2004-09-10 Alan Modra + + * elf.c (assign_file_positions_except_relocs): Assign relocs + stored in a bfd section. + +2004-09-08 Hans-Peter Nilsson + + * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset + h->gotplt_refcount to 0, not -1. + +2004-09-07 Hans-Peter Nilsson + + * elf32-cris.c (cris_elf_relocate_section) : For internal error message, handle NULL + symname. + (cris_elf_check_relocs) : Don't try to + handle symbol visibility here. + +2004-09-07 Alan Modra + + * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals. + (is_ppc64_elf_target): Rename from is_ppc64_target. Update all + callers. + (ppc_stub_name): Remove trailing "+0" on stub name. + (create_linkage_sections): Create relocations for + branch lookup table when --emit-relocs as well as when --shared. + (ppc_build_one_stub): Emit relocs for long branch stubs. Adjust + relbrlt test. For --emit-stub-syms, always output a sym even when + one already exists on a plt call stub. Put stub type in the stub + symbol name. + (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt + test. + (ppc64_elf_size_stubs): Count global sym stubs added. Zero + reloc_count in stub sections. Adjust relbrlt test. + (ppc64_elf_build_stubs): Adjust relbrlt test. Tweak stats output. + * elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo. + (elf_link_input_bfd): Ignore symbol index zero relocs when checking + for relocs against discarded symbols. Fix comments. + +2004-09-06 Mark Mitchell + + * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it. + * elf.c (_bfd_elf_make_dynamic_segment): New function, split out + from ... + (map_sections_to_segments): ... here. Use it. Assign a file + position to the .dynamic section if it is not loadable, but part + of the PT_DYNAMIC segment. + * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file + offsets, not VMAs, for the BPABI. Do not fill in the header in + the .got.plt section for the BPABI. + * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a + PT_DYNAMIC segment. + (elf_backend_want_got_plt): Define to zero for Symbian OS. + +2004-09-06 Nick Clifton + + * elflink.c (elf_link_add_object_symbols): Set the error code to + bfd_error_wrong_format when the input format does not match the + output format. + +2004-09-06 Alan Modra + + * elf64-ppc.c (is_ppc64_target): New function, extracted from.. + (ppc64_elf_check_directives): ..here. + (ppc64_elf_size_dynamic_sections): Use it here to check bfd type + before accessing ppc64_elf_tdata. + (ppc64_elf_finish_dynamic_sections): And here too. + +2004-09-04 Alan Modra + + * bfd.c (_bfd_default_error_handler): Correct loop exit. + +2004-09-03 Mark Mitchell + + * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors. + * configure.in (bfd_elf32_bigarm_symbian_vec): Add it. + (bfd_elf32_littlearm_symbian_vec): Likewise. + * configure: Regenerated. + * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags. + * elf32-arm.h (PLT_HEADER_SIZE): Do not define. + (PLT_ENTRY_SIZE): Likewise. + (bfd_vma_elf32_arm_symbian_plt_entry): New + variable. + (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size, + and symbian_p. + (create_got_section): Don't create sections when generating BPABI + objects. + (elf32_arm_create_dynamic_sections): Tidy. + (elf32_arm_link_hash_table_create): Set plt_header_size, + plt_entry_size, and symbian_p. + (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when + generating BPABI objects. + (allocate_dynrelocs): Use htab->plt_header_size, not + PLT_HEADER_SIZE. Do not add to .got.plt when + generating BPABI objects. + (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs. + * elfarm-nabi.c: Add SymbianOS target vectors. + * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags. + (_bfd_elf_link_create_dynamic_sections): Likewise. + * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro. + (elfNN_bed): Use it. + * targets.c (bfd_elf32_bigarm_symbian_vec): New variable. + (bfd_elf32_littlearm_symbian_vec): Likewise. + (_bfd_target_vector): Add them. + +2004-09-03 Nick Clifton + + PR 360 + * coffcode.h (handle_COMDAT): Replace abort with an warning + message and allow the scan to continue. + +2004-09-02 Alan Modra + + * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed + in when reading relocs, not our sorted syms. Remove unnecessary + var. + +2004-08-31 Eric Botcazou + + * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss. + +2004-08-30 Nathanael Nerode + + * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM. + Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate; + replace uses of *_alias with *_noncanonical. + * aclocal.m4: Rebuild with aclocal 1.4p6. + * Makefile.in: Rebuild with automake 1.4p6. + * doc/Makefile.in: Rebuild with automake 1.4p6. + * configure.in: Autoupdate with autoupdate 2.59. + * config.in: Regenerate with autoheader 2.59. + * configure: Regnerate with autoconf 2.59. + +2004-08-28 Alan Modra + + * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input + symbol pointer arrays before modifying. + +2004-08-28 Alan Modra + + * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables. + * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust. + * elf.c (_bfd_elf_get_synthetic_symtab): Adjust. + * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust. + * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust. + * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols. + Use both symbol tables on non-relocatable objects. Use a common + error exit. Fix "mid" warning. + * libbfd.h: Regenerate. + * bfd-in2.h: Regenerate. + +2004-08-28 Alan Modra + + * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular + object file. + (struct sfpr_def_parms): Save some space. + (sfpr_define): Here too. + + * elf64-ppc.c (compare_symbols): Put section syms first. + (sym_exists_at): New function. + (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry + points only for relocatable files. Use .opd section contents + otherwise. Generally clean up the code. + +2004-08-27 Alan Modra + + * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12, + LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define. + (struct sfpr_def_parms): New. + (sfpr_define): New function. + (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions. + (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions. + (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions. + (savefpr1_tail, restfpr1_tail): New functions. + (savevr, savevr_tail, restvr, restvr_tail): New functions. + (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define. + (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing + code. Define all ABI mandated _save and _rest functions. + 2004-08-26 Paul Brook - * INTERWORK_FLAG: Return true for EABIv3 objects. + * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects. 2004-08-26 Alan Modra