aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
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
2006-10-31daily updateAlan Modra1-1/+1
2006-10-31 * elf.c (elfcore_write_note): Pad note descriptor to 4-byteAlan Modra2-23/+29
boundary. Tidy. Comment.
2006-10-30bfd/H.J. Lu9-43/+121
2006-10-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/3111 * elf-bfd.h (elf_obj_tdata): Add symbuf. (_bfd_elf_section_already_linked): Add struct bfd_link_info *. (_bfd_elf_check_kept_section): Likewise. (bfd_elf_match_symbols_in_sections): Likewise. * elf.c (assign_section_numbers): Updated to add struct bfd_link_info *. (bfd_elf_match_symbols_in_sections): Updated. Cache symbol buffer if info->reduce_memory_overheads is false. * elflink.c (match_group_member): Updated to add struct bfd_link_info *. (_bfd_elf_check_kept_section): Likewise. (elf_link_input_bfd): Likewise. (_bfd_elf_section_already_linked): Likewise. (bfd_elf_final_link): Free symbol buffer if info->reduce_memory_overheads is false. * libbfd-in.h (_bfd_nolink_section_already_linked): Add struct bfd_link_info *. (_bfd_generic_section_already_linked): Likewise. * libbfd.h: Regenerated. * linker.c (bfd_section_already_linked): Add struct bfd_link_info *. (_bfd_generic_section_already_linked): Likewise. * targets.c (bfd_target): Add struct bfd_link_info * to _section_already_linked. * bfd-in2.h: Regenerated. include/ 2006-10-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/3111 * bfdlink.h (bfd_link_info): Add reduce_memory_overheads. ld/ 2006-10-30 H.J. Lu <hongjiu.lu@intel.com> PR ld/3111 * ld.h (args_type): Remove reduce_memory_overheads. * ldlang.c (lang_map): Updated. (section_already_linked): Likewise. (print_input_section): Likewise. * ldmain.c (main): Likewise. * lexsup.c (parse_args): Likewise.
2006-10-30daily updateAlan Modra1-1/+1
2006-10-30 * bfd-in2.h: Regenerate.Alan Modra2-1/+3
2006-10-30 * bfd.c (bfd_error_type): Add bfd_error_on_input.Alan Modra3-17/+57
(input_bfd, input_error): New static vars. (bfd_set_error): Handle bfd_error_on_input. (bfd_errmsg): Likewise. (bfd_perror): Simplify. * archive.c (_bfd_write_archive_contents): Report errors on input.
2006-10-29 * elf.c (elfcore_write_note): Pad to 4-byte boundary.Alan Modra2-1/+5
2006-10-29daily updateAlan Modra1-1/+1
2006-10-28daily updateAlan Modra1-1/+1
2006-10-28include/elf/Richard Sandiford4-0/+83
* mips.h (R_MIPS_GLOB_DAT): Define (R_MIPS_max): Bump by 1. bfd/ * elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT. * elfn32-mips.c (elf_mips_howto_table_rel): Likewise. (elf_mips_howto_table_rela): Likewise. * elf64-mips.c (mips_elf64_howto_table_rel): Likewise. (mips_elf64_howto_table_rela): Likewise.
2006-10-27daily updateAlan Modra1-1/+1
2006-10-272006-10-26 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-3/+17
* elf.c (_bfd_elf_init_private_section_data): Assert output section ELF type instead of check if it is SHT_NULL. Copy OS/PROC specific flags from input section to output section.
2006-10-27bfd/Alan Modra6-13/+24
* section.c (SEC_KEEP): Update comment. * bfd-in2.h: Regenerate. * elflink.c (bfd_elf_gc_sections): Ignore SEC_EXCLUDE sections. * merge.c (_bfd_merge_sections): Set SEC_KEEP on excluded sections. * stabs.c (_bfd_discard_section_stabs): Likewise. (_bfd_link_section_stabs): Likewise. Simplify abs_section check. ld/ * ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP sections have been discarded. (lang_do_version_exports_section): Set SEC_KEEP on export section. * emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning sections.
2006-10-26daily updateAlan Modra1-1/+1
2006-10-26 * reloc.c (_bfd_relocate_contents): Remove explicit case 0.Ben Elliston2-1/+2
2006-10-26 * elf.c (bfd_section_from_shdr): Remove extraneous breaks.Ben Elliston3-3/+5
* targets.c (find_target): Remove extraneous break.
2006-10-26 * coff-maxq.c (coff_maxq20_reloc): Remove unused variable `howto'.Ben Elliston2-56/+34
(struct maxq_reloc_map): Unused; remove. (maxq_reloc_map): Likewise. (maxq_reloc_type_lookup): Remove loop over maxq_reloc_map.
2006-10-26 * elf.c (bfd_elf_set_dyn_lib_class): Change second argument typeBen Elliston4-3/+10
from int to enum dynamic_lib_link_class lib_class. * bfd-in.h (bfd_elf_set_dyn_lib_class): Likewise. * bfd-in2.h: Regenerate.
2006-10-25daily updateAlan Modra1-1/+1
2006-10-25New Cell SPU port.Alan Modra15-10/+2006
2006-10-24daily updateAlan Modra1-1/+1
2006-10-23daily updateAlan Modra1-1/+1
2006-10-23 * elf64-ppc.c (ppc64_elf_edit_opd): Clarify comment.Alan Modra2-41/+45
2006-10-23 * elf32-score.c: Formatting.Alan Modra2-69/+59
(elf_backend_omit_section_dynsym): Define. (score_elf_create_dynamic_relocation): Remove code copied from mips. Don't use section syms in dynamic relocs. Remove unused param. (score_elf_final_link_relocate): Remove unused param.
2006-10-23 * linker.c (fix_syms): Choose best of previous and nextAlan Modra2-12/+54
section based on section flags and vma.
2006-10-22daily updateAlan Modra1-1/+1
2006-10-22 * elf32-sh64.c (sh64_elf_merge_symbol_attribute): Do mergingKaz Kojima3-4/+10
only when the non visibility part of st_other is non-zero. * elf64-sh64.c (sh64_elf64_merge_symbol_attribute): Likewise.
2006-10-21daily updateAlan Modra1-1/+1