aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2005-05-05 * Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.Hans-Peter Nilsson7-5/+22
* configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC. * configure, config.in, Makefile.in: Regenerate. * sysdep.h (stpcpy): Revert last change.
2005-05-05daily updateAlan Modra1-1/+1
2005-05-04 * sysdep.h (stpcpy): Wrap declaration in parentheses.Hans-Peter Nilsson2-1/+7
2005-05-042005-05-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-20/+82
* elfxx-ia64.c (ARCH_SIZE): New. (LOG_SECTION_ALIGN): Likewise. (elfNN_ia64_create_dynamic_sections): Use LOG_SECTION_ALIGN to align relocation sections. (get_fptr): Likewise. (get_reloc_section): Likewise. (elfNN_ia64_tprel_base): Likewise. (elfNN_ia64_check_relocs): Support 32bit relocations. (allocate_global_fptr_got): Likewise. (allocate_dynrel_entries): Likewise. (set_got_entry): Likewise. (set_pltoff_entry): Likewise. (elfNN_ia64_relocate_section): Likewise.
2005-05-042005-05-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-0/+81
* configure.in: Add AC_CHECK_DECLS(stpcpy). * configure: Regenerated. * config.in: Likewise. * sysdep.h (stpcpy): New.
2005-05-04Update the address and phone number of the FSF organization in the GPL noticesNick Clifton346-346/+422
2005-05-04bfd/H.J. Lu4-7/+82
2005-05-04 H.J. Lu <hongjiu.lu@intel.com> * bfd-in.h (_bfd_elf_provide_section_bound_symbols): New. * bfd-in2.h: Regenerated. * elflink.c (bfd_elf_set_symbol): New. (_bfd_elf_provide_symbol): Call it. (_bfd_elf_provide_section_bound_symbols): New. ld/ 2005-05-04 H.J. Lu <hongjiu.lu@intel.com> * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): Call _bfd_elf_provide_section_bound_symbols.
2005-05-042005-05-04 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-7/+9
* elflink.c (_bfd_elf_merge_symbol): Only skip weak definitions at the end, if a strong definition has already been seen.
2005-05-04bfd/Alan Modra37-158/+194
* section.c (struct bfd_section): Replace link_order_head and link_order_tail with map_head and map_tail union. (STD_SECTION): Update. (_bfd_strip_section_from_output): Delete. * aoutx.h: Update throughout for above changes. * coff-ppc.c: Likewise. * cofflink.c: Likewise. * ecoff.c: Likewise. * elf-eh-frame.c: Likewise. * elf-m10300.c: Likewise. * elf.c: Likewise. * elf32-arm.c: Likewise. * elf32-cris.c: Likewise. * elf32-hppa.c: Likewise. * elf32-i386.c: Likewise. * elf32-m32r.c: Likewise. * elf32-m68hc1x.c: Likewise. * elf32-m68k.c: Likewise. * elf32-ppc.c: Likewise. * elf32-s390.c: Likewise. * elf32-sh.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-x86-64.c: Likewise. * elflink.c: Likewise. * elfxx-ia64.c: Likewise. * elfxx-mips.c: Likewise. * elfxx-sparc.c: Likewise. * linker.c: Likewise. * merge.c: Likewise. * pdp11.c: Likewise. * xcofflink.c: Likewise. * elflink.c (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Split out from bfd_elf_size_dynamic_sections. * bfd-in.h (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Declare. * bfd-in2.h: Regenerate. ld/ * ldemul.c: Include bfdlink.h. (ldemul_before_allocation): Assume before_allocation is non-zero. (before_allocation_default): Call strip_excluded_output_sections. * ldlang.c (stripped_excluded_sections): New variable. (lang_add_section): Build input section list for each output section, attached via map_head and map_tail pointers. (strip_excluded_output_sections): Make global. Traverse the input section lists to find which output sections can go. Clear link_order pointers and set stripped_excluded_sections. (lang_process): Call strip_excluded_output_sections. * ldlang.h (strip_excluded_output_sections): Declare. * ldwrite.c: Update throuhout for link_order_head -> map_head change. * emultempl/aix.em (before_allocation): Call strip_excluded_output_sections. * emultempl/armcoff.em (before_allocation): Likewise. * emultempl/beos.em (before_allocation): Likewise. * emultempl/linux.em (before_allocation): Likewise. * emultempl/pe.em (before_allocation): Likewise. * emultempl/sunos.em (before_allocation): Likewise. * emultempl/elf32.em (before_allocation): Likewise. Call bfd_elf_size_dynsym_hash_dynstr too. * emultempl/lnk960.em (lnk960_before_allocation): Delete. (ld_lnk960): Use before_allocation_default.
2005-05-04Update the FSF address in the copyright/GPL noticeNick Clifton348-348/+423
2005-05-04daily updateAlan Modra1-1/+1
2005-05-03 * section.c (bfd_section_list_remove): Don't clear s->next.Alan Modra7-30/+75
(bfd_section_list_append): Always init s->prev. (bfd_section_list_prepend): Define. (bfd_section_list_insert_after): Minor optimization. (bfd_section_removed_from_list): Rewrite. * elf.c (assign_section_numbers): Simplify list traversal now that bfd_section_list_remove doesn't destroy removed section next ptr. * sunos.c (sunos_add_dynamic_symbols): Likewise. * elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend. * xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal. * bfd-in2.h: Regenerate.
2005-05-03Regenerated.H.J. Lu1-32/+18
2005-05-03bfd/H.J. Lu14-105/+216
2005-05-02 H.J. Lu <hongjiu.lu@intel.com> * bfd.c (bfd): Remove section_tail and add section_last. (bfd_preserve): Likewise. (bfd_preserve_save): Likewise. (bfd_preserve_restore): Likewise. * opncls.c (_bfd_new_bfd): Likewise. * coffcode.h (coff_compute_section_file_positions): Updated. (coff_compute_section_file_positions): Likewise. * elf.c (assign_section_numbers): Likewise. * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. * elf64-mmix.c (mmix_elf_final_link): Likewise. * elfxx-ia64.c (elfNN_ia64_object_p): Likewise. * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise. * sunos.c (sunos_add_dynamic_symbols): Likewise. * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise. * ecoff.c (bfd_debug_section): Initialize prev. * section.c (bfd_section): Add prev. (bfd_section_list_remove): Updated. (bfd_section_list_append): New. (bfd_section_list_insert_after): New. (bfd_section_list_insert_before): New. (bfd_section_list_insert): Removed. (bfd_section_removed_from_list): Updated. (STD_SECTION): Initialize prev. (bfd_section_init): Updated. (bfd_section_list_clear): Updated. * bfd-in2.h: Regenerated. gas/ 2005-05-02 H.J. Lu <hongjiu.lu@intel.com> * write.c (write_object_file): Use bfd_section_double_list_remove to remove sections. ld/ 2005-05-02 H.J. Lu <hongjiu.lu@intel.com> * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section): Updated for bfd_section_list_remove change. * ldlang.c (lang_insert_orphan): Likewise. (strip_excluded_output_sections): Likewise. (sort_sections_by_lma): New. (lang_check_section_addresses): Sort the sections before checking addresses.
2005-05-03daily updateAlan Modra1-1/+1
2005-05-022005-05-02 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-5/+15
* elf.c (_bfd_elf_new_section_hook): Don't call _bfd_elf_get_sec_type_attr on sections from input files.
2005-05-022005-05-02 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+7
* merge.c (sec_merge_init): Call bfd_hash_table_init_n with hash table size 16699 instead of bfd_hash_table_init.
2005-05-022005-05-01 Paul Brook <paul@codesourcery.com>Paul Brook2-0/+12
* elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong definition has already been seen.
2005-05-02daily updateAlan Modra1-1/+1
2005-05-012005-05-01 Paul Brook <paul@codesourcery.com>Paul Brook2-1/+9
* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Treat R_ARM_PLT32 the same as R_ARM_PC24. (arm_add_to_rel): Ditto.
2005-05-01daily updateAlan Modra1-1/+1
2005-04-30daily updateAlan Modra1-1/+1
2005-04-29 * config.bfd: Add h8300*-*-rtemscoff.Daniel Jacobowitz2-1/+11
Switch h8300*-*-rtems* to elf.
2005-04-29bfd/Daniel Jacobowitz4-468/+239
* doc/Makefile.am: Remove stamp rules. Depend on chew.c instead of $(MKDOC). * aclocal.m4, Makefile.in, doc/Makefile.in: Regnerated. gas/ * doc/Makefile.am (gasver.texi): Depend on bfd/configure instead of Makefile. (DISTCLEANFILES): Remove. (MAINTAINERCLEANFILES): Add asconfig.texi. * doc/Makefile.in: Regenerated.
2005-04-29daily updateAlan Modra1-1/+1
2005-04-282005-04-28 Paul Brook <paul@codesourcery.com>Paul Brook2-2/+17
Merge changes only applied to Makefile.in. * Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c (elfxx-sparc.lo): New rule. (elf32-sparc.lo): Add elfxx-sparc.h dependency. (elf64-sparc.lo): Likewise.
2005-04-28Applied this patch for Julian Brown <julian@codesourcery.com>Nick Clifton2-1/+8
* elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak import.
2005-04-28Set BFD_VERSION_DATE to 20050428.H.J. Lu1-1/+1
2005-04-272005-04-27 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu8-33/+56
* elf-bfd.h (bfd_elf_sym_name): Also take "asection *". * elf.c (bfd_elf_sym_name): Updated. (group_signature): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf64-ppc.c (ppc64_elf_edit_opd): Likewise. (ppc64_elf_edit_toc): Likewise. (ppc64_elf_relocate_section): Likewise. * elfcode.h (elf_slurp_symbol_table): Likewise. * elflink.c (elf_link_input_bfd): Likewise. * elfxx-ia64.c (elfNN_ia64_relocate_section): Call bfd_elf_sym_name to get local symbol name when reporting errors.
2005-04-27Remove spurious spaces added by previous deltaNick Clifton1-1/+1
2005-04-27Set BFD_VERSION_DATE to 20050427.H.J. Lu1-1/+1
2005-04-27(elf_link_input_bfd): Handle the case where a badly formatted input file resultsNick Clifton2-0/+23
in a reloc which has no associated global symbol
2005-04-26Update BFD_VERSION_DATE to 20050426.H.J. Lu1-1/+1
2005-04-26 * bfd.m4 (BFD_NEED_DECLARATION): Restore.Jerome Guitton2-0/+34
2005-04-25 * elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection.David S. Miller2-2/+21
(sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol, sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections): Likewise.
2005-04-25bfd/H.J. Lu2-0/+8
2005-04-25 H.J. Lu <hongjiu.lu@intel.com> PR 858 * elflink.c (elf_link_input_bfd): Make non-debugging reference to discarded section an error. ld/testsuite/ 2005-04-25 H.J. Lu <hongjiu.lu@intel.com> * ld-discard/extern.d: Expect error. * ld-discard/start.d: Likewise. * ld-discard/static.d: Likewise.
2005-04-22 * configure.in: Replace BFD_NEED_DECLARATION checks by theJerome Guitton6-216/+177
corresponding AC_CHECK_DECLS. * sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding HAVE_DECL_*. * bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete. * configure: Regenerate. * config.in: Ditto.
2005-04-222005-04-21 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-6/+18
* Makefile.am (INCLUDES): New. Add -D_GNU_SOURCE. (chew.o): Use it. * Makefile.in: Regenerate.
2005-04-22daily updateAlan Modra1-1/+1
2005-04-21 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): RemoveAndreas Schwab3-5/+8
unsigned from type of dynamic_interpreter. * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create): Remove casts again.
2005-04-21 * elf.c (assign_section_numbers): Fix comment.Andreas Schwab2-1/+5
2005-04-21 * som.c (som_bfd_print_private_bfd_data): Add explicit cast to longJerome Guitton2-10/+19
for struct som_exec_auxhdr fields.
2005-04-21Update to ISO-C90 and fix formattingNick Clifton34-7067/+5624
2005-04-21daily updateAlan Modra1-1/+1
2005-04-20 * elfxx-sparc.c (sparc_elf_r_symndx_64): Fix compiler warning.David S. Miller2-4/+13
(_bfd_sparc_elf_link_hash_table_create): Likewise. (allocate_dynrelocs): Likewise.
2005-04-20 * configure.in: Fix the check for basename declaration. Add checkJerome Guitton5-3/+342
for declarations of ftello, ftello64, fseeko, fseeko64. * configure: Regenerate. * config.in: Ditto. * sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64.
2005-04-20daily updateAlan Modra1-1/+1
2005-04-19 * elfxx-sparc.c: New file.David S. Miller8-6986/+4050
* elfxx-sparc.h: New file. * Makefile.in (BFD32_BACKENDS): Add elfxx-sparc.lo (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c (elfxx-sparc.lo): New rule. (elf32-sparc.lo): Add elfxx-sparc.h dependency. (elf64-sparc.lo): Likewise. * configure.in (bfd_elf32_sparc_vec): Add elfxx-sparc.lo (bfd_elf64_sparc_vec): Likewise. * configure: Regenerate. * elf32-sparc.c: Remove common code now in elfxx-sparc.c * elf64-sparc.c: Likewise, also use elf64_sparc_*() naming which is more consistent with elf32-sparc.c
2005-04-19 * elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment.Daniel Jacobowitz2-2/+8
(mips_elf_create_local_got_entry): Check h->root.forced_local.
2005-04-19bfd/Alan Modra2-7/+31
* elf32-ppc.c (ppc_elf_check_relocs): Don't bother with dynamic relocs in non-SEC_ALLOC sections. (ppc_elf_gc_sweep_hook): Likewise. (ppc_elf_relax_section): Likewise. (ppc_elf_relocate_section): Likewise. ld/testsuite/ * ld-powerpc/reloc.d: Update to suit removal of non-alloc relocs.