aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2004-04-18daily updateAlan Modra1-1/+1
2004-04-17 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zeroAlan Modra2-8/+19
filepos for the SizeOfHeaders field. (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc overflow. (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
2004-04-17daily updateAlan Modra1-1/+1
2004-04-16 * simple.c (bfd_simple_get_relocated_section_contents): Don'tAlan Modra2-27/+19
change reloc_done. Set and restore _cooked_size. (RETURN): Delete.
2004-04-15* netbsd-core.c (netbsd_core_file_p): Set architecture for VAXMark Kettenis2-1/+11
core files.
2004-04-15Catch NULL bfd pointers passed to bfd_archive_filenameNick Clifton2-0/+7
2004-04-15 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.Alan Modra2-2/+7
2004-04-15 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong onlyAlan Modra2-9/+18
when it is a definition.
2004-04-15daily updateAlan Modra1-1/+1
2004-04-14 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abortAlan Modra3-12/+10
when statically linking PIC code. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2004-04-14daily updateAlan Modra1-1/+1
2004-04-13daily updateAlan Modra1-1/+1
2004-04-12daily updateAlan Modra1-1/+1
2004-04-11 /bfd/ChangeLogThiemo Seufer4-364/+325
* config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets. * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3* targets amd aout_mips_big_vec, aout_mips_little_vec target vectors. * configure: Regenerate. /gas/ChangeLog * Makefile.am: Remove mips from aout targets. * Makefile.in: Regenerate. * configure.in: Remove mips-dec-bsd* target. * configure: Regenerate. /ld/ChangeLog * configure.host: Remove mips*-dec-bsd* target. * configure.tgt: Likewise.
2004-04-11daily updateAlan Modra1-1/+1
2004-04-10daily updateAlan Modra1-1/+1
2004-04-09daily updateAlan Modra1-1/+1
2004-04-08 * elflink.c: Include libiberty.h.Richard Sandiford4-2/+9
* Makefile.am (elflink.lo): Depend on libiberty.h. * Makefile.in: Regenerate.
2004-04-08daily updateAlan Modra1-1/+1
2004-04-06 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always useDaniel Jacobowitz2-2/+6
".MIPS.stubs".
2004-04-062004-04-05 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+10
* elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always reserve the memory for dynamic linker
2004-04-06daily updateAlan Modra1-1/+1
2004-04-05* netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.Mark Kettenis2-0/+28
(netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
2004-04-05daily updateAlan Modra1-1/+1
2004-04-04daily updateAlan Modra1-1/+1
2004-04-03daily updateAlan Modra1-1/+1
2004-04-022004-04-02 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-22/+13
* elf32-cr16c.c (elf32_cr16c_relocate_section): Use RELOC_FOR_GLOBAL_SYMBOL. (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
2004-04-022004-04-02 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+7
* elf32-arm.h (elf32_arm_final_link_relocate): Handle R_ARM_ALU* only if OLD_ARM_ABI is not defined.
2004-04-02daily updateAlan Modra1-1/+1
2004-04-01This time the version of the patch that works.Paul Brook1-4/+7
* bfd/elf32-arm.h (struct elf32_elf_section_map): New. (struct _arm_elf_section_data): New. (elf32_arm_section_data): Define. (struct elf32_arm_link_hash_table): Add byteswap_code. (elf32_arm_link_hash_table_create): Initialize byteswap_code. (bfd_elf32_arm_process_before_allocation): Add byteswap_code. (elf32_arm_post_process_headers): Set EF_ARM_BE8. (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook, elf32_arm_compare_mapping, elf32_arm_write_section): New functions. (bfd_elf32_new_section_hook, elf_backend_write_section, elf_backend_link_output_symbol_hook): Define.
2004-04-01 * bfd/bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.Paul Brook4-5/+205
* bfd/elf32-arm.h (struct elf32_elf_section_map): New. (struct _arm_elf_section_data): New. (elf32_arm_section_data): Define. (struct elf32_arm_link_hash_table): Add byteswap_code. (elf32_arm_link_hash_table_create): Initialize byteswap_code. (bfd_elf32_arm_process_before_allocation): Add byteswap_code. (elf32_arm_post_process_headers): Set EF_ARM_BE8. (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook, elf32_arm_compare_mapping, elf32_arm_write_section): New functions. (bfd_elf32_new_section_hook, elf_backend_write_section, elf_backend_link_output_symbol_hook): Define. * ld/emultempl/armelf.em (byteswap_code): Add. (arm_elf_before_allocation): Pass extra parameter. (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8. (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8. * ld/emultempl/armelf_oabi.em: Pass extra parameter. * ld/ld.texinfo: Document --be8.
2004-04-01(struct stab_link_includes_totals): Add field 'symb' that keeps the charactersNick Clifton2-10/+44
in a B_INCL..B_EINCL range. (_bfd_link_section_stabs): When computing the sum of the characters in a B_INCL..B_EINCL range also keep a copy of those characters. Use this information to distinguish between include sections that have the same sum and the same length but which are nevertheless unique.
2004-04-01daily updateAlan Modra1-1/+1
2004-03-31 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.Paul Brook3-0/+71
* elfarm-nabi.c (elf32_arm_howto_table): Ditto.
2004-03-31(struct stab_link_includes_totals): Rename field 'total' to 'sum_chars'Nick Clifton2-8/+26
and add field 'num_chars'. (_bfd_link_section_stabs): When computing the sum of the characters in a B_INCL..B_EINCL range also keep a count of the number of characters. Use this information to help distinguish between include sections when have the same sum but which nevertheless are still unique.
2004-03-31(_bfd_link_section_stabs): Do not skip N_EXCL stabs.Nick Clifton2-1/+8
2004-03-31daily updateAlan Modra1-1/+1
2004-03-30Add (linker) support for CR16C processorNick Clifton14-25/+1318
2004-03-30 * elf.c (map_sections_to_segments): Fix handling of .tbss.Jakub Jelinek2-7/+22
2004-03-30daily updateAlan Modra1-1/+1
2004-03-29daily updateAlan Modra1-1/+1
2004-03-28daily updateAlan Modra1-1/+1
2004-03-27 * Makefile.am: Remove all mention of elflink.h.Alan Modra49-4259/+4121
* Makefile.in: Regenerate. * bfd-in.h (bfd_elf_discard_info): Declare. (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete. * bfd-in2.h: Regenerate. * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol, bfd_elf32_link_record_dynamic_symbol, bfd_elf64_link_record_dynamic_symbol, _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link, bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol, _bfd_elf32_link_record_local_dynamic_symbol, _bfd_elf64_link_record_local_dynamic_symbol, _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets, _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link, _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry, _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets, _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry, _bfd_elf32_reloc_symbol_deleted_p, _bfd_elf64_reloc_symbol_deleted_p): Delete. (bfd_elf_link_record_dynamic_symbol, bfd_elf_link_record_local_dynamic_symbol, bfd_elf_final_link, bfd_elf_gc_sections, bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry, bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link, bfd_elf_reloc_symbol_deleted_p): Declare. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. * elf32-arm.h: Update for changed function names. Remove local WILL_CALL_FINISH_DYNAMIC_SECTION define. * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c, * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c, * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c, * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c, * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c, * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c, * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c, * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise. * elfxx-target.h (bfd_elfNN_bfd_final_link): Define. (bfd_elfNN_print_symbol): Define. * elfcode.h: Don't include elflink.h. (elf_bfd_discard_info, elf_reloc_symbol_deleted_p, elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections, elf_gc_common_finalize_got_offsets, elf_gc_common_final_link, elf_gc_record_vtinherit, elf_gc_record_vtentry, elf_link_record_local_dynamic_symbol): Don't define. * elflink.c: Update for changed function names. Move elflink.h code here. * elflink.h: Delete file. * po/SRC-POTFILES.in: Regenerate. * po/bfd.pot: Regenerate. doc/ * bfdint.texi: Remove all mention of elflink.h.
2004-03-27 * elf64-mmix.c (mmix_elf_relocate_section): Restore code settingAlan Modra2-3/+11
"name" for global syms accidentally removed in 2004-03-20 change.
2004-03-27 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.Alan Modra4-106/+204
* elflink.h: Replace all occurrences of sizeof (Elf_External_*) where Elf_External_* is different for 64 and 32 bit, with corresponding elf_size_info field. (struct elf_final_link_info): Use "bfd_byte *" instead of "Elf_External_Sym *" for external_syms and symbuf. (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local vars and use instead of ELF_R_INFO and ELF_R_TYPE macros. (struct elf_link_sort_rela): Add "sym_mask" alias for "offset". (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM. (elf_link_sort_cmp2): Adjust. (elf_link_sort_relocs): Set up r_sym_mask local var instead of using ELF_R_SYM macro. Set u.sym_mask. (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro version, elf_stringtab_init. Ditto for bfd_section_from_elf_index vs. section_from_elf_index. Adjust Elf_External_Sym pointer arithmetic. Pass bed to elf_link_flush_output_syms. Adjust Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and swap_syn_out functions. Rearrange dyn swap in/out switch. (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic. Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out. (elf_link_flush_output_syms): Add elf_backend_data arg. (elf_link_check_versioned_symbol): Likewise. (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol. Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out. (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM, ELF_R_TYPE and ELF_R_INFO macros. (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation based on size rather than using ELF_R_INFO. (elf_gc_mark): Set up r_sym_shift local var and use instead of ELF_R_SYM macro. (struct alloc_got_off_arg): New. (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets. (elf_gc_allocate_got_offsets): Adjust. (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of ELF_R_SYM. Use bfd_section_from_elf_index. (elf_bfd_discard_info): Set cookie.r_sym_shift. * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete. (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
2004-03-27 Remove MPW support, no longer used.Stan Shebs5-242/+8
* config.bfd (powerpc-*-mpw*): Remove configuration. * mpw-config.in, mpw-make.sed: Remove files. * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
2004-03-26daily updateAlan Modra1-1/+1
2004-03-26 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.Alan Modra20-31/+73
(ppc64_elf_add_symbol_hook): New function. * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove const from Elf_Internal_Sym param. * elflink.c (elf_link_add_object_symbols): Adjust. * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust. * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust. * elf32-i370.c (elf_backend_add_symbol_hook): Adjust. * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust. * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust. * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust. * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust. * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust. * elf32-v850.c (v850_elf_add_symbol_hook): Adjust. * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust. * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust. * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust. * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust. * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust. * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust. * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
2004-03-26 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.Alan Modra8-1356/+1371
* elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete. (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete. (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete. (bfd_elf64_bfd_link_add_symbols): Delete. (bfd_elf_link_add_symbols): Declare. * elfcode.h (elf_bfd_link_add_symbols): Delete. * elflink.c: Include safe-ctype.h. (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag, make static. (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static. (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make static. (elf_link_add_archive_symbols): Rename from _bfd_elf_link_add_archive_symbols, make static. (elf_link_add_object_symbols): New function. Corresponding elflink.h function converted to use elf_size_info. (bfd_elf_link_add_symbols): Likewise. (bfd_elf_size_dynamic_sections): Adjust. * elflink.h (elf_bfd_link_add_symbols): Delete. (elf_link_add_object_symbols): Delete. * elf32-gen.c (elf32_generic_link_add_symbols): Call bfd_elf_link_add_symbols. * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
2004-03-26missed files in last commitAlan Modra2-8/+2