2001-06-02 H.J. Lu <hjl@gnu.org>
[external/binutils.git] / bfd / ChangeLog
index 85a6b13..bae271b 100644 (file)
@@ -1,3 +1,239 @@
+2001-06-02  H.J. Lu  <hjl@gnu.org>
+
+       * coff-ia64.c (ia64coff_object_p): Rewrite with
+       external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
+
+2001-06-01  Andreas Jaeger  <aj@suse.de>
+
+       * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
+       relocation, small reformatting.
+
+2001-05-29  Andreas Jaeger  <aj@suse.de>
+
+       * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
+       (elf64_x86_64_relocate_section): Likewise.
+
+2001-05-30  Alan Modra  <amodra@one.net.au>
+
+       * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
+       millicode.  Don't allocate .got and .rela.got space here..
+       (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
+       (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
+       .rela.plt here..
+       (hppa_handle_PIC_calls): ..nor here..
+       (allocate_plt_and_got): ..instead do it all here.  New function.
+       (elf32_hppa_size_dynamic_sections): Allocate local .got space and
+       call allocate_plt_and_got.  No need to zap .got if not dynamic.
+       (elf32_hppa_final_link): Call regular bfd_final_link instead of
+       gc_common_final_link.
+       (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
+       (elf32_hppa_relocate_section): Use it here.
+       (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
+       dynamic_sections_created.
+       (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
+
+2001-05-28  Andreas Jaeger  <aj@suse.de>
+
+       * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
+       generic version since we want a hashsize of 4.
+       (elf_backend_size_info): Likewise.
+
+2001-05-28  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
+
+       * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
+       a zeroing loop.
+       (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
+       (elf_link_input_bfd): Likewise.
+       (elf_reloc_link_order): Likewise.
+       (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
+       relocations correctly.
+
+2001-05-28  Nicolas Pitre <nico@cam.org>
+
+       * elf32-arm.h: fix PLT generation for big endian ARM
+
+2001-05-28  Alan Modra  <amodra@one.net.au>
+
+       * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
+       for symbols forced local that need plabels.
+       (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
+       .plt.rela for local syms if non-shared.
+       (hppa_build_one_stub): Mask lsb of plt.offset.
+       (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
+       (clobber_millicode_symbols): Correct comment.
+       (elf32_hppa_relocate_section): Likewise.
+       (elf32_hppa_finish_dynamic_symbol): Likewise.
+
+2001-05-28  Jeff Sturm  <jsturm@one-point.com>
+
+       * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
+       and BFD_RELOC_SPARC_UA64 mapping
+       * elf64-sparc.c: Likewise.
+
+2001-05-25  H.J. Lu  <hjl@gnu.org>
+
+       * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
+       (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
+       (coff-rs6000.lo): Remove the old dependency.
+       * Makefile.in: Rebuild.
+
+       * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
+       coff-rs6000.lo.
+
+2001-05-25  H.J. Lu  <hjl@gnu.org>
+
+       * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
+       rs6000coff_core_file_matches_executable_p,
+       rs6000coff_core_file_failing_command and
+       rs6000coff_core_file_failing_signal only if AIX_CORE is
+       defined.
+       (pmac_xcoff_vec): Likewise.
+       * coff64-rs6000.c (rs6000coff64_vec): Likewise.
+
+2001-05-25  Timothy Wall  <twall@redhat.com>
+
+       * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
+       for __GLOB_DATA_PTR on AIX5.  Clean up some relocation bugs.
+
+2001-05-25  H.J. Lu  <hjl@gnu.org>
+
+       * bfd-in2.h: Regenerated.
+       * libcoff.h: Likewise.
+
+2001-05-25  Alan Modra  <amodra@one.net.au>
+
+       * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
+       undefined millicode syms in shared libs.
+       (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
+       (elf32_hppa_check_relocs): Likewise.
+       (elf32_hppa_adjust_dynamic_symbol): Likewise.
+       (elf32_hppa_size_dynamic_sections): Likewise.
+       (elf32_hppa_relocate_section): Likewise.
+       (elf32_hppa_finish_dynamic_symbol): Likewise.
+       (elf32_hppa_finish_dynamic_sections): Likewise.
+
+2001-05-24  Tom Rix <trix@redhat.com>
+
+        * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
+       xcoff-target.h not used to define rs6000 or ppc bfd.
+       * Makefile.in same
+
+       * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
+       to 64 bit.
+
+       * coff-rs6000.c : Many changes for 64 bit support.  Move common
+       32/64 code to xcofflink.c.  Explictly define the rs6000coff_vec
+       and pmac_xcoff_vec
+
+       * coff64-rs6000.c : Many changes for 64 bit support.  64 bit
+       linker now supported.  Explictly define the rs6000coff64_vec.
+
+       * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
+       (coff_print_aux) same
+       (coff_write_object_contents) same
+       (coff_slurp_line_table) same
+
+       * coffgen.c : (coff_fix_symbol_name) formatting
+       (coff_mangle_symbols) xcoff 64 bit support
+       (coff_write_symbol) same
+       (coff_write_alien_symbol) same
+       (coff_write_native_symbol) same
+       (coff_write_symbols) same
+       (coff_get_symbol_info) same
+       (bfd_coff_get_syment) same
+       (coff_print_symbol) same
+
+       * config.bfd : add powerpc64-*-aix* target
+
+       * libcoff-in.h : formatting
+
+       * libcoff.h : move xcoff extern declarations to libxcoff.h
+
+       * libxcoff.h : New file
+
+       * xcofflink.c : Many changes for xcoff64 support.  Move common
+       structures to include/coff/xcoff.h.  Move specific structure to
+       backends coff-rs6000.c and coff64-rs6000.c.   Use new backend
+       functions, defined in libxcoff.h, to isolate 32/64 dependencies.
+
+       (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
+       aix4.2+ -binitfini.
+
+       (xcoff_build_ldsyms) : handle special __rtinit symbol.
+
+2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
+
+       * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
+       s/ENTIRES/ENTRIES/.
+
+2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
+       * libbfd.h: Regenerate.
+       * bfd0in2.h: Regenerate.
+
+       * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
+       * archures.c (bfd_mach_mips12000): Define.
+       * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
+       * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
+       support.
+       (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
+       * bfd-in2.h: Regenerate.
+       * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
+
+2001-05-23  kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
+       elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
+       elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
+       that is used by GCC.
+
+2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
+       of entries in a structured section.
+        * elf.c: Use new macro.
+        * elf32-i386.c: Use new macro.
+        * elf32-mips.c: Use new macro.
+        * elf64-alpha.c: Use new macro.
+        * elf64-sparc.c: Use new macro.
+        * elfcode.h: Use new macro.
+        * elflink.h: Use new macro.
+
+2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * bfdint.texi: Replace -oformat with --oformat.
+
+2001-05-21  Andreas Jaeger  <aj@suse.de>
+
+       * dwarf2.c (decode_line_info): Fix error message.
+       (read_abbrevs): Fix test for offset as suggested by Alan Modra and
+       adjust error message.
+
+2001-05-18  H.J. Lu  <hjl@gnu.org>
+
+       * elflink.h (elf_link_add_object_symbols): Revert the last
+       change.
+
+2001-05-17  Alan Modra  <amodra@one.net.au>
+
+       * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
+       ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
+       (hppa_build_one_stub): Add an assert to check plt.offset.
+
+2001-05-17  H.J. Lu  <hjl@gnu.org>
+
+       * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
+       version definition to basename of the output filename.
+
+2001-05-17  H.J. Lu  <hjl@gnu.org>
+
+       * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
+       basename of the bfd filename.
+
 2001-05-16  Alan Modra  <amodra@one.net.au>
 
        * section.c (asection): Add linker_has_input field.
        * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
        is has the SEC_HAS_CONTENTS flag set.
 
-2000-09-28  Örjan Friberg  <orjanf@axis.com>
+2000-09-28  \81Örjan Friberg  <orjanf@axis.com>
            Hans-Peter Nilsson  <hp@axis.com>
 
        * aout-cris.c (N_TXTADDR): Define.
 
        * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
 
-2000-05-03  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
+2000-05-03  Martin v. L\81öwis  <loewis@informatik.hu-berlin.de>
 
        * elflink.h (elf_link_add_object_symbols): Reset dynindx for
        hidden and internal symbols.