aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2006-11-292006-11-29 Paul Brook <paul@codesourcery.com>Paul Brook2-10/+23
Julian Brown <julian@codesourcery.com> bfd/ * elf32-arm.c (copy_eabi_attributes): Correct starting offset. (elf32_arm_merge_eabi_attributes): Mark output as initialized. Only set Tag_CPU_name and Tag_ABI_PCS_R9_use if input attribute is present.
2006-11-28daily updateAlan Modra1-1/+1
2006-11-27daily updateAlan Modra1-1/+1
2006-11-27bfd/Bob Wilson2-0/+5
* elf32-xtensa.c (elf_xtensa_special_sections): Add .xtensa.info. gas/ * config/tc-xtensa.c (XSHAL_ABI): Add default definition. (directive_state): Disable scheduling by default. (xtensa_add_config_info): New. (xtensa_end): Call xtensa_add_config_info. gas/testsuite/ * gas/elf/section2.e-xtensa: New file. * gas/elf/elf.exp: Use it. include/ * xtensa-config.h (XSHAL_ABI): New. (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New. ld/ * emultempl/xtensaelf.em (XSHAL_ABI): Add default definition. (replace_insn_sec_with_prop_sec): Use bfd_make_section_with_flags. Delete redundant code to set sections flags and alignment. (xt_config_info_unpack_and_check, check_xtensa_info): New. (elf_xtensa_after_open): Iterate over input statements instead of link_info.input_bfds. (elf_xtensa_before_allocation): Likewise. Call check_xtensa_info for each input, and write a new .xtensa.info section in the output.
2006-11-26daily updateAlan Modra1-1/+1
2006-11-25daily updateAlan Modra1-1/+1
2006-11-252006-11-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-6/+37
* elf.c (IS_SECTION_IN_INPUT_SEGMENT): New. (INCLUDE_SECTION_IN_SEGMENT): Use IS_SECTION_IN_INPUT_SEGMENT. (rewrite_elf_program_header): Don't preserve segment physical address in the output segment if the first section in the corresponding input segment is removed.
2006-11-24daily updateAlan Modra1-1/+1
2006-11-23daily updateAlan Modra1-1/+1
2006-11-22daily updateAlan Modra1-1/+1
2006-11-22 * pef.c (bfd_pef_make_empty_symbol): Delete function. Define instead.Alan Modra4-12/+8
* xsym.c (bfd_sym_make_empty_symbol): Likewise. * xsym.h (bfd_sym_make_empty_symbol): Delete.
2006-11-22 * elf32-ppc.c (ppc_elf_relocate_section): Fixup D fieldGreg McGary3-16/+25
at proper offset in little-endian mode. * elf64-ppc.c (ppc_elf_relocate_section): Likewise.
2006-11-21daily updateAlan Modra1-1/+1
2006-11-21 * elf-eh-frame.c (struct cie): New type.Jakub Jelinek3-182/+262
(cie_compare): Removed. (cie_eq, cie_hash, cie_compute_hash): New functions. (_bfd_elf_discard_section_eh_frame): Rewrite not to rely on FDEs pointing only to last CIE and allow merging of any duplicate CIEs, not just duplicate consecutive CIEs. (_bfd_elf_discard_section_eh_frame_hdr): Delete cies hash table. * elf-bfd.h (struct cie_header, struct cie): Removed. (struct eh_frame_sec_info): Remove alloced field. (struct eh_frame_hdr_info): Remove last_cie, last_cie_sec and last_cie_inf fields. Add cies field. * ld-elf/eh5.d: New test. * ld-elf/eh5.s: New file. * ld-elf/eh5a.s: New file. * ld-elf/eh5b.s: New file.
2006-11-20daily updateAlan Modra1-1/+1
2006-11-20 * bfd-in.h (struct stat): Don't typedef.Alan Modra7-15/+27
* bfdio.c (bfd_get_size): Return a file_ptr. * cisco-core.c (cisco_core_file_validate): Use bfd_size_type for nread. * mmo.c (mmo_scan): Use file_ptr for curpos. * trad-core.c (trad_unix_core): Don't cast statbuf.st_size to unsigned long. * bfd-in2.h: Regenerate.
2006-11-20 PR 3532Alan Modra4-16/+32
* bfd-in.h (struct bfd_hash_table): Reorganize. Add "frozen". * hash.c (bfd_hash_table_init_n): Init frozen. (bfd_hash_lookup): Don't grow if frozen. (bfd_hash_traverse): Freeze hash table during traversal. * bfd-in2.h: Regenerate.
2006-11-19daily updateAlan Modra1-1/+1
2006-11-18daily updateAlan Modra1-1/+1
2006-11-17daily updateAlan Modra1-1/+1
2006-11-17 * elflink.c (_bfd_elf_check_kept_section): Test for kept groupAlan Modra2-51/+43
section. Save result of checks in kept_section. (_bfd_elf_section_already_linked): Tidy. Correct comments. Ignore all group member sections. Handle special matching of single-member groups against linkonce sections via their group section. When such a match is found, set kept_section to the group member section rather than to the group.
2006-11-16daily updateAlan Modra1-1/+1
2006-11-15daily updateAlan Modra1-1/+1
2006-11-15Add changelog entry for previous deltaNick Clifton1-0/+12
2006-11-14daily updateAlan Modra1-1/+1
2006-11-14* peXXigen.c: Updates for PE/COFF V8.0, and clarificationNick Clifton1-30/+40
(dir_names): Added CLR Runtime Header to dir_names[]. (_bfd_XX_print_private_bfd_data_common): Added EFI_ROM and XBOX subsystem names (_bfd_XXi_swap_aouthdr_in, _bfd_XXi_swap_aouthdr_out) (pe_print_idata, pe_print_edata) (_bfd_XX_bfd_copy_private_bfd_data_common) (_bfd_XXi_final_link_postscript): Use #DEFINEs for index into DataDirectory. * pe.h: Added defines for IMAGE_SUBSYSTEM_EFI_ROM and IMAGE_SUBSYSTEM_XBOX. * internal.h: Added defines for PE directory entry types. NB: in internal.h because IMAGE_NUMBEROF_DIRECTORY_ENTRYIES is in pe.h
2006-11-13daily updateAlan Modra1-1/+1
2006-11-13bfd/Daniel Jacobowitz4-19/+40
* bfd-in.h (bfd_elf32_arm_process_before_allocation): Update prototype. (bfd_elf32_arm_set_byteswap_code): New prototype. * bfd-in2.h: Regenerate. * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Don't take byteswap_code as an argument. Revert 2006-11-01 change. (bfd_elf32_arm_set_byteswap_code): New. (elf32_arm_size_dynamic_sections): Call bfd_elf32_arm_process_before_allocation. ld/ * emultempl/armelf.em (arm_elf_before_allocation): Only call bfd_elf32_arm_process_before_allocation if no dynamic sections.
2006-11-12daily updateAlan Modra1-1/+1
2006-11-11daily updateAlan Modra1-1/+1
2006-11-10daily updateAlan Modra1-1/+1
2006-11-10 * config.bfd (mips*el-sde-elf*, mips*-sde-elf*): Drop ECOFF supportThiemo Seufer2-2/+7
for SDE configs.
2006-11-10* config.bfd: Move previously obsoleted targets to the REMOVED list.Nick Clifton2-25/+15
Add maxq-*-coff to the obsolete list.
2006-11-10 * pe-arm-wince.c (LOCAL_LABEL_PREFIX): Define as ".".Nick Clifton4-24/+36
* pei-arm-wince.c (LOCAL_LABEL_PREFIX): Likewise. * coff-arm.c (LOCAL_LABEL_PREFIX): Only define if not defined before. * gas/arm/undefined.d: Run test on Windows CE. * gas/arm/undefined_coff.d: Don't run test on Windows CE.
2006-11-09daily updateAlan Modra1-1/+1
2006-11-08daily updateAlan Modra1-1/+1
2006-11-07daily updateAlan Modra1-1/+1
2006-11-07 * elf32-arm.c (find_thumb_glue): Add ERROR_MESSAGE argument; set itDaniel Jacobowitz2-31/+50
on error. (find_arm_glue): Likewise. (elf32_thumb_to_arm_stub, elf32_arm_create_thumb_stub) (elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate): Add ERROR_MESSAGE argument and pass it through. (elf32_arm_to_thumb_export_stub): Update. (elf32_arm_relocate_section): Use ERROR_MESSAGE and reloc_dangerous.
2006-11-07 * elf64-ppc.c (enum _ppc64_sec_type): New.Alan Modra2-46/+84
(struct _ppc64_elf_section_data): Move "t_symndx" into opd union, and rename fields. Add sec_type and has_14bit_branch. (struct ppc_link_hash_table): Remove has_14bit_branch. (get_opd_info, get_tls_mask, ppc64_elf_edit_opd): Adjust. (ppc64_elf_relocate_section): Likewise. (ppc64_elf_check_relocs): Likewise. Set per-section has_14bit_branch. (ppc64_elf_size_stubs): Don't set default group size here. (group_sections): Instead do so here, and group sections using their individual requirements.
2006-11-07 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Remove "has_dotsym"Alan Modra2-76/+98
and union. (struct ppc_link_hash_entry): Add "next_dot_sym". (struct ppc_link_hash_table): Add "dot_syms". (link_hash_newfunc): Make list of syms starting with a dot. (ppc_get_stub_entry, adjust_opd_syms): Adjust. (ppc64_elf_add_symbol_hook): Don't set has_dotsym. (struct add_symbol_adjust_data): Delete. (add_symbol_adjust): Simplify params and return. (ppc64_elf_check_directives): Just process the "dot_syms" lists, not all syms.
2006-11-06daily updateAlan Modra1-1/+1
2006-11-05daily updateAlan Modra1-1/+1
2006-11-04daily updateAlan Modra1-1/+1
2006-11-03daily updateAlan Modra1-1/+1
2006-11-03bfd/Daniel Jacobowitz18-24/+193
* libbfd-in.h (_bfd_clear_contents): New prototype. * reloc.c (_bfd_clear_contents): New. * libbfd.h: Regenerated. * elf32-arm.c (elf32_arm_final_link_relocate): Use _bfd_clear_contents. * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. * elf32-i386.c (elf_i386_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-xtensa.c (elf_xtensa_relocate_section): Likewise. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. * elf64-s390.c (elf_s390_relocate_section): Likewise. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. * elfxx-ia64.c (elfNN_ia64_relocate_section): Set value to zero for discarded symbols. * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. ld/testsuite/ * ld-discard/zero-rel.d, ld-discard/zero-rel.s: New files.
2006-11-02daily updateAlan Modra1-1/+1
2006-11-02 [ bfd/ChangeLog ]Thiemo Seufer3-66/+161
* elf-bfd.h (local_call_stubs): New member. * elfxx-mips.c (FN_STUB_P, CALL_STUB_P, CALL_FP_STUB_P): New macros. (mips_elf_calculate_relocation): Handle local mips16 call stubs. (mips16_stub_section_p): Rename from mips_elf_stub_section_p, use the new stub macros. (_bfd_mips_elf_check_relocs): Handle call stubs for code which mixes mips16 and mips32 functions. Use mips16_stub_section_p. Mark used stubs with SEC_KEEP. Use the new stub macros. [ gas/testsuite/ChangeLog ] * gas/mips/mips16-intermix.d, gas/mips/mips16-intermix.s: New testcase. * gas/mips/mips.exp: Run new testcase. [ ld/testsuite/ChangeLog ] * ld-mips-elf/mips16-intermix-1.s, ld-mips-elf/mips16-intermix-2.s, ld-mips-elf/mips16-intermix.d: New testcase. * ld-mips-elf/mips-elf.exp (mips16_intermix_test): Run new testcases.
2006-11-01daily updateAlan Modra1-1/+1
2006-11-01 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): CorrectDaniel Jacobowitz2-3/+18
check for PLT usage.
2006-11-01 * elfxx-mips.c (mips_elf_merge_gots): Always use maxcnt.Daniel Jacobowitz2-2/+5