* elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 1e81fd7bb681f43c9876fce515580b6cd72a65eb..be245f0c5c7a3bc34c665e5907859a3b8e4dda5e 100644 (file)
@@ -1,3 +1,286 @@
+2003-07-04  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
+       sections were created already.  Remove unnecessary tests of
+       the previous change.
+
+2003-07-04  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * elf32-sh.c (sh_elf_create_dynamic_sections): Don't call
+       bfd_make_section for existing sections.
+
+2003-07-04  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-sparc.c (elf32_sparc_check_relocs): Don't call
+       create_got_section if we already have done so.
+       * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
+       (sh_elf_check_relocs): Likewise.
+       (sh_elf_adjust_dynamic_symbol): Delete "dynobj" var.  Use
+       htab->root.dynobj instead.
+       (sh_elf_check_relocs): Likewise.
+       (sh_elf_finish_dynamic_sections): Likewise.
+
+       * section.c (bfd_make_section): Return NULL for existing section.
+
+2003-07-04  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
+       ppc_elf_create_got if we've already done so.
+
+       * elf-bfd.h (_bfd_elf_create_linker_section) Don't declare.
+       (_bfd_elf_find_pointer_linker_section): Likewise.
+       (bfd_elf32_create_pointer_linker_section): Likewise.
+       (bfd_elf32_finish_pointer_linker_section): Likewise.
+       (bfd_elf64_create_pointer_linker_section): Likewise.
+       (bfd_elf64_finish_pointer_linker_section): Likewise.
+       (_bfd_elf_make_linker_section_rela): Likewise.
+       * elfcode.h (elf_create_pointer_linker_section): Don't define.
+       (elf_finish_pointer_linker_section): Likewise.
+       * elflink.c (_bfd_elf_make_linker_section_rela): Delete.
+       (_bfd_elf_create_linker_section): Move this function..
+       (_bfd_elf_find_pointer_linker_section): ..and this..
+       * elflink.h (elf_create_pointer_linker_section): ..and this..
+       (elf_finish_pointer_linker_section): ..and this..
+       * elf32-ppc.c: ..to here, renaming to the following, and adjusting
+       calls.
+       (elf_create_linker_section): Convert to C90, tidy.
+       (elf_find_pointer_linker_section): Likewise.
+       (elf_create_pointer_linker_section): Likewise.
+       (elf_finish_pointer_linker_section): Likewise.
+       * elf32-i370.c: Delete #if 0 code.
+
+2003-07-02  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't allow _savef* and
+       _restf* to be satisfied by shared libs, and always force them local.
+       (toc_adjusting_stub_needed): Avoid scanning linker created sections.
+       Correct test for "bl".
+       (ppc64_elf_relocate_section <R_PPC64_TLS>): Correct test for
+       primary opcode 31.
+
+2003-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+
+       * elf32-s390.c (s390_elf_ldisp_reloc): New prototype.
+       (s390_tls_reloc): New function.
+       (elf_howto_table): Add long displacement relocations R_390_20,
+       R_390_GOT20, R_390_GOTPLT20 and R_390_TLS_GOTIE20.
+       (elf_s390_reloc_type_lookup): Likewise.
+       (elf_s390_check_relocs): Likewise.
+       (elf_s390_gc_sweep_hook): Likewise.
+       (elf_s390_relocate_section): Likewise.
+       * elf64-s390.c: Same changes as for elf32-s390.c.
+       * reloc.c: Add long displacement relocations BFD_RELOC_390_20,
+       BFD_RELOC_390_GOT20, BFD_RELOC_390_GOTPLT20 and 
+       BFD_RELOC_390_TLS_GOTIE20.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Likewise.
+
+2003-06-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * cpu-ia64-opc.c (ext_imms_scaled): Don't sign extend using shifts.
+       (ins_imms, ins_immsm1u4): Likewise.  Warning fix.
+
+2003-06-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * archive.c: Convert to C90, remove unnecessary prototypes and casts.
+       Replace PTR with void *.  Formatting.
+       * archive64.c: Likewise.
+       * archures.c: Likewise.
+       * bfd-in.h: Likewise.
+       * bfd.c: Likewise.
+       * bfdio.c: Likewise.
+       * bfdwin.c: Likewise.
+       * cache.c: Likewise.
+       * corefile.c: Likewise.
+       * format.c: Likewise.
+       * init.c: Likewise.
+       * libbfd-in.h: Likewise.
+       * libbfd.c: Likewise.
+       * linker.c: Likewise.
+       * opncls.c: Likewise.
+       * reloc.c: Likewise.
+       * section.c: Likewise.
+       * simple.c: Likewise.
+       * syms.c: Likewise.
+       * targets.c: Likewise.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+
+       * ecoff.c (bfd_debug_section): Add missing kept_section initialization.
+       * libbfd-in.h (_bfd_sh_align_load_span): Don't declare if defined.
+       * libbfd.c (COERCE32, EIGHT_GAZILLION): Simplify.
+       (bfd_getb64): Rewrite without parens.
+       (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
+       * cache.c (insert, snip): Remove INLINE.
+       * linker.c (bfd_link_add_undef): Likewise.
+
+2003-06-29  Andreas Jaeger  <aj@suse.de>
+
+       * elf64-x86-64.c: Convert to ISO C90 prototypes, remove
+       unnecessary prototypes.  Replace PTR with void *.
+       (elf64_x86_64_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL to
+       trim plt entries.  Move undefweak non-default visibility test ...
+       (allocate_dynrelocs): ... from here.
+       (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
+       Change all callers.
+       (allocate_dynrelocs): Use SYMBOL_CALLS_LOCAL.  Use
+       SYMBOL_REFERENCES_LOCAL for dynreloc check.
+       (elf64_x86_64_relocate_section): Use SYMBOL_CALLS_LOCAL for
+       dynreloc and .got relocs.
+       (elf64_x86_64_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL
+       for .got relocs.
+
+2003-06-29  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * elfxx-mips.c: Allow lazy binding for R_MIPS_JALR.
+
+2003-06-27  Nick Clifton  <nickc@redhat.com>
+
+       * opncls.c (bfd_add_gnu_debuglink_section): Rename to
+       bfd_add_gnu_debuglink_section and only create the section, do not
+       fill in its contents.
+       (bfd_fill_in_gnu_debuglink_section): New function.  Fill in the
+       contents of a .gnu-debuglink section.
+       * bfd-in2.h: Regenerate.
+
+2003-06-27  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * elfxx-mips.c: Revert .got alignment to 2**4.
+
+2003-06-27  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * elf32-mips.c: Fix addend for _gp_disp special symbol.
+
+2003-06-27  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove non-default
+       relocation header setup.
+
+2003-06-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_howto_table): Remove unnecessary cast.
+       (ppc_elf_reloc_type_lookup): Modify comment.
+       (ppc_elf_info_to_howto): Ditto.
+       (ppc_elf_relocate_section): Ditto.
+       (ppc_elf_check_relocs): Call ppc_elf_howto_init.
+
+2003-06-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * aout-ns32k.c: Correct spelling of "relocatable".
+       * aoutx.h: Likewise.
+       * bfd-in.h: Likewise.
+       * bfd.c: Likewise.
+       * bout.c: Likewise.
+       * coff-a29k.c: Likewise.
+       * coff-alpha.c: Likewise.
+       * coff-arm.c: Likewise.
+       * coff-i386.c: Likewise.
+       * coff-i860.c: Likewise.
+       * coff-i960.c: Likewise.
+       * coff-m68k.c: Likewise.
+       * coff-m88k.c: Likewise.
+       * coff-mcore.c: Likewise.
+       * coff-mips.c: Likewise.
+       * coff-or32.c: Likewise.
+       * coff-ppc.c: Likewise.
+       * coff-rs6000.c: Likewise.
+       * coff-sh.c: Likewise.
+       * coff-tic80.c: Likewise.
+       * coff64-rs6000.c: Likewise.
+       * cofflink.c: Likewise.
+       * cpu-ns32k.c: Likewise.
+       * ecoff.c: Likewise.
+       * ecofflink.c: Likewise.
+       * elf-bfd.h: Likewise.
+       * elf-eh-frame.c: Likewise.
+       * elf-hppa.h: Likewise.
+       * elf-m10200.c: Likewise.
+       * elf-m10300.c: Likewise.
+       * elf.c: Likewise.
+       * elf32-arm.h: Likewise.
+       * elf32-avr.c: Likewise.
+       * elf32-cris.c: Likewise.
+       * elf32-d10v.c: Likewise.
+       * elf32-dlx.c: Likewise.
+       * elf32-fr30.c: Likewise.
+       * elf32-frv.c: Likewise.
+       * elf32-h8300.c: Likewise.
+       * elf32-hppa.c: Likewise.
+       * elf32-i370.c: Likewise.
+       * elf32-i386.c: Likewise.
+       * elf32-i860.c: Likewise.
+       * elf32-i960.c: Likewise.
+       * elf32-ip2k.c: Likewise.
+       * elf32-iq2000.c: Likewise.
+       * elf32-m32r.c: Likewise.
+       * elf32-m68hc11.c: Likewise.
+       * elf32-m68hc1x.c: Likewise.
+       * elf32-m68k.c: Likewise.
+       * elf32-mcore.c: Likewise.
+       * elf32-mips.c: Likewise.
+       * elf32-msp430.c: Likewise.
+       * elf32-openrisc.c: Likewise.
+       * elf32-ppc.c: Likewise.
+       * elf32-s390.c: Likewise.
+       * elf32-sh.c: Likewise.
+       * elf32-sh64.c: Likewise.
+       * elf32-sparc.c: Likewise.
+       * elf32-v850.c: Likewise.
+       * elf32-vax.c: Likewise.
+       * elf32-xstormy16.c: Likewise.
+       * elf32-xtensa.c: Likewise.
+       * elf64-alpha.c: Likewise.
+       * elf64-hppa.c: Likewise.
+       * elf64-mips.c: Likewise.
+       * elf64-mmix.c: Likewise.
+       * elf64-ppc.c: Likewise.
+       * elf64-s390.c: Likewise.
+       * elf64-sh64.c: Likewise.
+       * elf64-sparc.c: Likewise.
+       * elf64-x86-64.c: Likewise.
+       * elfcode.h: Likewise.
+       * elflink.h: Likewise.
+       * elfn32-mips.c: Likewise.
+       * elfxx-ia64.c: Likewise.
+       * elfxx-mips.c: Likewise.
+       * i386linux.c: Likewise.
+       * ieee.c: Likewise.
+       * libcoff-in.h: Likewise.
+       * linker.c: Likewise.
+       * m68klinux.c: Likewise.
+       * pdp11.c: Likewise.
+       * pe-mips.c: Likewise.
+       * peXXigen.c: Likewise.
+       * reloc.c: Likewise.
+       * reloc16.c: Likewise.
+       * sparclinux.c: Likewise.
+       * sunos.c: Likewise.
+       * syms.c: Likewise.
+       * versados.c: Likewise.
+       * vms.c: Likewise.
+       * xcofflink.c: Likewise.
+       * bfd-in2.h: Regenerate.
+       * libcoff.h: Regenerate.
+       * libbfd.h: Regenerate.
+
+2003-06-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_check_relocs): Report plt reloc against
+       local sym errors.
+
+       * elf32-i386.c: Convert to C90 function definitions, remove unnecessary
+       prototypes and casts.  Replace PTR with void *.  Formatting.
+       * elf32-ppc.c: Likewise.  Break long strings too.
+       (ppc_elf_relax_section): Use enum elf_ppc_reloc_type for r_type.
+       (ppc_elf_unhandled_reloc): Internationalize error message.
+       * elf32-ppc.h: Remove PARAMS.
+
+2003-06-23  Mark Mitchell  <mark@codesourcery.com>
+
+       * elf32-ppc.c (ppc_elf_begin_write_processing): Use bytes to count
+       APUinfo slots.
+       (ppc_elf_final_write_processing): Likewise.
+
 2003-06-23  H.J. Lu <hongjiu.lu@intel.com>
 
        * elflink.h (elf_link_input_bfd): Check raw size when using
        in a local var.  Comment typo fixes.
        (h8300_bfd_link_add_symbols): Likewise.
 
-       * bfd/reloc.c (struct reloc_howto_struct): Revise src_mask and
+       * reloc.c (struct reloc_howto_struct): Revise src_mask and
        dst_mask comments.
        * bfd-in2.h: Regenerate.
 
        (aout_link_write_symbols): Cast enums in comparisons, int values to
        boolean, enums in assignments to int.
        (aout_link_input_section_std): Cast rel->r_index to unsigned int.
-       (aout_link_input_section_ext): Likewise.  Cast enums used in comparisons
-       with unsigned ints.
+       (aout_link_input_section_ext): Likewise.  Cast enums used in
+       comparisons with unsigned ints.
        (aout_link_reloc_link_order): Cast enum to int in assignment.
        * archive.c (_bfd_generic_read_ar_hdr_mag): Cast result of memchr
        calls to char *.
        (merge_strings): Add casts to const unsigned char *.
        * reloc.c (bfd_get_reloc_code_name): Cast enums in comparison to int.
        (bfd_generic_get_relocated_section_content): Cast enum to unsigned int.
-       * section.c (bfd_section_hash_newfunc): Cast bfd_hash_allocate result to
-       struct bfd_hash_entry *.
+       * section.c (bfd_section_hash_newfunc): Cast bfd_hash_allocate result
+       to struct bfd_hash_entry *.
        (bfd_set_section_content): Add cast to PTR in comparison.
        * simple.c (simple_dummy_warning, simple_dummy_undefined_symbol,
        simple_dummy_reloc_overflow, simple_dummy_reloc_dangerous,
 
 2002-08-16  Stephen Clarke <stephen.clarke@superh.com>
 
-       * bfd/elf32-sh.c (sh_elf_gc_mark_hook): For sh64, skip indirect
+       * elf32-sh.c (sh_elf_gc_mark_hook): For sh64, skip indirect
        symbols when looking for section referred to by a relocation.
-       * bfd/elf64-sh.c (sh_elf64_gc_mark_hook): Likewise.
+       * elf64-sh.c (sh_elf64_gc_mark_hook): Likewise.
 
 2002-08-15  Alan Modra  <amodra@bigpond.net.au>
 
This page took 0.027256 seconds and 4 git commands to generate.