Sparc v9 ABI compliant PLT:
authorRichard Henderson <rth@redhat.com>
Wed, 28 Jan 1998 05:48:34 +0000 (05:48 +0000)
committerRichard Henderson <rth@redhat.com>
Wed, 28 Jan 1998 05:48:34 +0000 (05:48 +0000)
* elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
(plt_templates, sparc64_elf_build_plt_entry): Delete.
(LARGE_PLT_THRESHOLD): New define.
(GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
(sparc64_elf_build_plt): New function.
(sparc64_elf_plt_entry_offset): Likewise.
(sparc64_elf_plt_ptr_offset): Likewise.
(sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
contain the index for convenience.  Skip the initial entries
in .rela.plt.
(sparc64_elf_size_dynamic_sections): Zero the allocated contents
memory for the benefit of .rela.plt.
(sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
(sparc64_elf_finish_dynamic_symbol): Kill template stuff.  Use
sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
(sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
Call sparc64_elf_build_plt.
(elf_backend_want_got_plt): No.
(elf_backend_plt_readonly): No.
(elf_backend_plt_alignment): 8.
* elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
* elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
* elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
to be called.

bfd/ChangeLog
bfd/elf.c

index 516bcfff58e40a0490c347f7ca28d9843f198807..c2755e785cb5c0cb7414bb3dfe69440074176b0e 100644 (file)
@@ -1,3 +1,32 @@
+Tue Jan 27 21:43:55 1998  Richard Henderson  <rth@cygnus.com>
+
+       Sparc v9 ABI compliant PLT:
+       * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
+       (plt_templates, sparc64_elf_build_plt_entry): Delete.
+       (LARGE_PLT_THRESHOLD): New define.
+       (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
+       (sparc64_elf_build_plt): New function.
+       (sparc64_elf_plt_entry_offset): Likewise.
+       (sparc64_elf_plt_ptr_offset): Likewise.
+       (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to 
+       contain the index for convenience.  Skip the initial entries 
+       in .rela.plt.
+       (sparc64_elf_size_dynamic_sections): Zero the allocated contents
+       memory for the benefit of .rela.plt.
+       (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
+       (sparc64_elf_finish_dynamic_symbol): Kill template stuff.  Use
+       sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
+       (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
+       Call sparc64_elf_build_plt.
+       (elf_backend_want_got_plt): No.
+       (elf_backend_plt_readonly): No.
+       (elf_backend_plt_alignment): 8.
+
+       * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
+       * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
+       * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it 
+       to be called.
+
 Tue Jan 27 21:45:15 1998  Jeffrey A Law  (law@cygnus.com)
 
        * archures.c (bfd_mach_mips*): Add definitions for various MIPS
index ab9d7575faac3cccd831bda364fb19d35a9c0d1e..fa83495d3309fae885389b3751d577dcda67028a 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4231,3 +4231,12 @@ _bfd_elf_validate_reloc (abfd, areloc)
   bfd_set_error (bfd_error_bad_value);
   return false;
 }
+
+boolean
+_bfd_elf_close_and_cleanup (abfd)
+     bfd *abfd;
+{
+  if (elf_shstrtab (abfd))
+    _bfd_stringtab_free (elf_shstrtab (abfd));
+  return _bfd_generic_close_and_cleanup (abfd);
+}
This page took 0.034057 seconds and 4 git commands to generate.