* elf-bfd.h (struct elf_backend_data): Remove plt_header_size.
authorDaniel Jacobowitz <drow@false.org>
Mon, 3 Nov 2003 15:17:40 +0000 (15:17 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 3 Nov 2003 15:17:40 +0000 (15:17 +0000)
* elf-m10300.c (elf_backend_plt_header_size): Don't define.
* elf32-arm.h (elf_backend_plt_header_size): Don't define.
* elf32-cris.c (elf_backend_plt_header_size): Don't define.
* elf32-i386.c (elf_backend_plt_header_size): Don't define.
* elf32-mips.c (elf_backend_plt_header_size): Don't define.
* elf32-ppc.c (elf_backend_plt_header_size): Don't define.
* elf32-s390.c (elf_backend_plt_header_size): Don't define.
* elf32-sh.c (elf_backend_plt_header_size): Don't define.
* elf32-sparc.c (elf_backend_plt_header_size): Don't define.
* elf64-alpha.c (elf_backend_plt_header_size): Don't define.
* elf64-hppa.c (elf_backend_plt_header_size): Don't define.
* elf64-mips.c (elf_backend_plt_header_size): Don't define.
* elf64-ppc.c (elf_backend_plt_header_size): Don't define.
* elf64-s390.c (elf_backend_plt_header_size): Don't define.
* elf64-sh64.c (elf_backend_plt_header_size): Don't define.
* elf64-sparc.c (elf_backend_plt_header_size): Don't define.
* elf64-x86-64.c (elf_backend_plt_header_size): Don't define.
* elfn32-mips.c (elf_backend_plt_header_size): Don't define.
* elfxx-ia64.c (elf_backend_plt_header_size): Don't define.
* elfxx-target.h (elf_backend_plt_header_size): Don't define
or include in target initializer.

22 files changed:
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf-m10300.c
bfd/elf32-arm.h
bfd/elf32-cris.c
bfd/elf32-i386.c
bfd/elf32-mips.c
bfd/elf32-ppc.c
bfd/elf32-s390.c
bfd/elf32-sh.c
bfd/elf32-sparc.c
bfd/elf64-alpha.c
bfd/elf64-hppa.c
bfd/elf64-mips.c
bfd/elf64-ppc.c
bfd/elf64-s390.c
bfd/elf64-sh64.c
bfd/elf64-sparc.c
bfd/elf64-x86-64.c
bfd/elfn32-mips.c
bfd/elfxx-ia64.c
bfd/elfxx-target.h

index 23a604922abb8533d412ba2db6de0a680b584ba5..18e63ebfdcf655cf784ae90ab4e6650c4486bded 100644 (file)
@@ -1,3 +1,28 @@
+2003-11-03  Daniel Jacobowitz  <drow@mvista.com>
+
+       * elf-bfd.h (struct elf_backend_data): Remove plt_header_size.
+       * elf-m10300.c (elf_backend_plt_header_size): Don't define.
+       * elf32-arm.h (elf_backend_plt_header_size): Don't define.
+       * elf32-cris.c (elf_backend_plt_header_size): Don't define.
+       * elf32-i386.c (elf_backend_plt_header_size): Don't define.
+       * elf32-mips.c (elf_backend_plt_header_size): Don't define.
+       * elf32-ppc.c (elf_backend_plt_header_size): Don't define.
+       * elf32-s390.c (elf_backend_plt_header_size): Don't define.
+       * elf32-sh.c (elf_backend_plt_header_size): Don't define.
+       * elf32-sparc.c (elf_backend_plt_header_size): Don't define.
+       * elf64-alpha.c (elf_backend_plt_header_size): Don't define.
+       * elf64-hppa.c (elf_backend_plt_header_size): Don't define.
+       * elf64-mips.c (elf_backend_plt_header_size): Don't define.
+       * elf64-ppc.c (elf_backend_plt_header_size): Don't define.
+       * elf64-s390.c (elf_backend_plt_header_size): Don't define.
+       * elf64-sh64.c (elf_backend_plt_header_size): Don't define.
+       * elf64-sparc.c (elf_backend_plt_header_size): Don't define.
+       * elf64-x86-64.c (elf_backend_plt_header_size): Don't define.
+       * elfn32-mips.c (elf_backend_plt_header_size): Don't define.
+       * elfxx-ia64.c (elf_backend_plt_header_size): Don't define.
+       * elfxx-target.h (elf_backend_plt_header_size): Don't define
+       or include in target initializer.
+
 2003-11-03  Andrew Cagney  <cagney@redhat.com>
 
        * section.c (bfd_set_section_contents): Make the "location" buffer
index 6f98cc2f769610d4ba1f01b38604d743195af6b3..a1019b635dcd98bbeab9608601b062aafe5f6761 100644 (file)
@@ -894,10 +894,9 @@ struct elf_backend_data
      .got section */
   bfd_vma got_symbol_offset;
 
-  /* The size in bytes of the headers for the GOT and PLT.  This includes
-     the so-called reserved entries on some systems.  */
+  /* The size in bytes of the header for the GOT.  This includes the
+     so-called reserved entries on some systems.  */
   bfd_vma got_header_size;
-  bfd_vma plt_header_size;
 
   /* This is TRUE if the linker should act like collect and gather
      global constructors and destructors by name.  This is TRUE for
index dc25c38aff10b319904a98e18260af28bd5aea55..95005739ff1be75e4a13131614b4dad00ee1fc2f 100644 (file)
@@ -4874,6 +4874,5 @@ _bfd_mn10300_elf_finish_dynamic_sections (output_bfd, info)
 #define elf_backend_plt_readonly       1
 #define elf_backend_want_plt_sym       0
 #define elf_backend_got_header_size    12
-#define elf_backend_plt_header_size    PLT0_ENTRY_SIZE
 
 #include "elf32-target.h"
index a86f916f714729da51f66490c066844cc7dbcea5..a42f75a5c5fc134279471f62b950ebb133f9c0d2 100644 (file)
@@ -4148,7 +4148,6 @@ elf32_arm_final_write_processing (abfd, linker)
 #endif
 
 #define elf_backend_got_header_size    12
-#define elf_backend_plt_header_size    PLT_HEADER_SIZE
 
 #include "elf32-target.h"
 
index d630a2a84c9b359853a85d067b3b7007882397ac..762101a29dc52b7c025837b0aad4b957b24b740d 100644 (file)
@@ -3064,7 +3064,6 @@ elf_cris_reloc_type_class (rela)
 #define elf_backend_plt_readonly       1
 #define elf_backend_want_plt_sym       0
 #define elf_backend_got_header_size    12
-#define elf_backend_plt_header_size    PLT_ENTRY_SIZE
 
 /* Later, we my want to optimize RELA entries into REL entries for dynamic
    linking and libraries (if it's a win of any significance).  Until then,
index 11fadabc99819bb763cca5e1ae53c68800b361e1..8f50a3dd49b28b3dd05a1a767397bdc4db688226 100644 (file)
@@ -3240,7 +3240,6 @@ elf_i386_finish_dynamic_sections (bfd *output_bfd,
 #define elf_backend_plt_readonly       1
 #define elf_backend_want_plt_sym       0
 #define elf_backend_got_header_size    12
-#define elf_backend_plt_header_size    PLT_ENTRY_SIZE
 
 /* Support RELA for objdump of prelink objects.  */
 #define elf_info_to_howto                    elf_i386_info_to_howto_rel
index e495cc46dd57e7bf86ff5cab682e2427ce29bcc7..b17008eaaa42634f9fe4deb1f5ca3bfe54168768 100644 (file)
@@ -1940,7 +1940,6 @@ static const struct ecoff_debug_swap mips_elf32_ecoff_debug_swap = {
 #define elf_backend_ecoff_debug_swap   &mips_elf32_ecoff_debug_swap
 
 #define elf_backend_got_header_size    (4 * MIPS_RESERVED_GOTNO)
-#define elf_backend_plt_header_size    0
 #define elf_backend_may_use_rel_p      1
 #define elf_backend_may_use_rela_p     0
 #define elf_backend_default_use_rela_p 0
index a37eb3a284ad8598a46ffbbf12824c13531daff2..85755bb9dfa0bcb3681ad1ae92027434094e94e2 100644 (file)
@@ -6224,7 +6224,6 @@ static struct bfd_elf_special_section const ppc_elf_special_sections[]=
 #define elf_backend_can_gc_sections    1
 #define elf_backend_can_refcount       1
 #define elf_backend_got_header_size    12
-#define elf_backend_plt_header_size    PLT_INITIAL_ENTRY_SIZE
 #define elf_backend_rela_normal                1
 
 #define bfd_elf32_mkobject                     ppc_elf_mkobject
index 5b07ab0db7bde799684e064bf59731afe1a6a19e..7f6c54ffa9162fd5b264558b24acd03f31a41a1f 100644 (file)
@@ -3463,7 +3463,6 @@ elf_s390_grok_prstatus (abfd, note)
 #define elf_backend_plt_readonly       1
 #define elf_backend_want_plt_sym       0
 #define elf_backend_got_header_size    12
-#define elf_backend_plt_header_size    PLT_ENTRY_SIZE
 #define elf_backend_rela_normal                1
 
 #define elf_info_to_howto                    elf_s390_info_to_howto
index 134356d9ae7b46e1786a9f282ac34fd37ce759b9..4fa6620bcc11363c025cde30fcf27f176dd4dcd5 100644 (file)
@@ -7555,7 +7555,6 @@ elf32_shlin_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
 #define elf_backend_plt_readonly       1
 #define elf_backend_want_plt_sym       0
 #define elf_backend_got_header_size    12
-#define elf_backend_plt_header_size    PLT_ENTRY_SIZE
 
 #ifndef INCLUDE_SHMEDIA
 
index 50d968e6734cfde2090ef1592c299e68595199c0..f226b07be824f950c28bdcb500c06cd3abb19f84 100644 (file)
@@ -3478,7 +3478,6 @@ elf32_sparc_reloc_type_class (rela)
 #define elf_backend_plt_readonly 0
 #define elf_backend_want_plt_sym 1
 #define elf_backend_got_header_size 4
-#define elf_backend_plt_header_size (4*PLT_ENTRY_SIZE)
 #define elf_backend_rela_normal 1
 
 #include "elf32-target.h"
index 7b1592daa7f2dcd096dab7b8691e96372d9c287f..1d1eea7d5daa4a77a38bfa2bcf435fae73238e7e 100644 (file)
@@ -5600,7 +5600,6 @@ static const struct elf_size_info alpha_elf_size_info =
 #define elf_backend_plt_readonly 0
 #define elf_backend_want_plt_sym 1
 #define elf_backend_got_header_size 0
-#define elf_backend_plt_header_size PLT_HEADER_SIZE
 
 #include "elf64-target.h"
 \f
index 9eced4c9cc60db1670d8354ab39ec2862681b58b..b2ca72618f4e763444aeba0cad61a9d3abaa3991 100644 (file)
@@ -2772,7 +2772,6 @@ const struct elf_size_info hppa64_elf_size_info =
 #define elf_backend_plt_readonly       0
 #define elf_backend_want_plt_sym       0
 #define elf_backend_got_header_size     0
-#define elf_backend_plt_header_size     0
 #define elf_backend_type_change_ok     TRUE
 #define elf_backend_get_symbol_type    elf64_hppa_elf_get_symbol_type
 #define elf_backend_reloc_type_class   elf64_hppa_reloc_type_class
index 3a874d898e893393719c9e7b057fa11db4c10457..11d0565f6c6fc7386302ddc3d31dcdbc1d063611 100644 (file)
@@ -2913,7 +2913,6 @@ const struct elf_size_info mips_elf64_size_info =
 #define elf_backend_grok_psinfo                elf64_mips_grok_psinfo
 
 #define elf_backend_got_header_size    (4 * MIPS_RESERVED_GOTNO)
-#define elf_backend_plt_header_size    0
 
 /* MIPS ELF64 can use a mixture of REL and RELA, but some Relocations
    work better/work only in RELA, so we default to this.  */
index 283f6337f450259c8fc007965967cabe02daabc6..da3edc4703702389d52b82165df518c90b7c855e 100644 (file)
@@ -65,7 +65,6 @@ static bfd_reloc_status_type ppc64_elf_unhandled_reloc
 #define elf_backend_plt_not_loaded 1
 #define elf_backend_got_symbol_offset 0
 #define elf_backend_got_header_size 8
-#define elf_backend_plt_header_size PLT_INITIAL_ENTRY_SIZE
 #define elf_backend_can_gc_sections 1
 #define elf_backend_can_refcount 1
 #define elf_backend_rela_normal 1
index de712f77e3b9ec92e1b99c7feb72ab3538134f6c..b299bb7f03b076cce4b76679e1fb9aac3e1b66b5 100644 (file)
@@ -3411,7 +3411,6 @@ const struct elf_size_info s390_elf64_size_info =
 #define elf_backend_plt_readonly       1
 #define elf_backend_want_plt_sym       0
 #define elf_backend_got_header_size    24
-#define elf_backend_plt_header_size    PLT_ENTRY_SIZE
 #define elf_backend_rela_normal                1
 
 #define elf_info_to_howto              elf_s390_info_to_howto
index 1a679d376485ceeb4c120d8cd0a392518da0a639..f7d1afff6d57af18a6db606c9e073a62b0f289e7 100644 (file)
@@ -4209,7 +4209,6 @@ static struct bfd_elf_special_section const sh64_elf64_special_sections[]=
 #define elf_backend_plt_readonly       1
 #define elf_backend_want_plt_sym       0
 #define elf_backend_got_header_size    24
-#define elf_backend_plt_header_size    PLT_ENTRY_SIZE
 
 #include "elf64-target.h"
 
index a74a7f339c02504a6871abe0897554f0e54d1d64..8c99477fdfb9675d54394d7fa938377517fc0872 100644 (file)
@@ -3236,6 +3236,5 @@ const struct elf_size_info sparc64_elf_size_info =
 #define elf_backend_plt_alignment 8
 
 #define elf_backend_got_header_size 8
-#define elf_backend_plt_header_size PLT_HEADER_SIZE
 
 #include "elf64-target.h"
index 8aed4982337611deb2074a9a35999369447a27d9..9c5a1ea5b95d2d38d19182777a01f1de6837b416 100644 (file)
@@ -2792,7 +2792,6 @@ elf64_x86_64_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *inf
 #define elf_backend_plt_readonly           1
 #define elf_backend_want_plt_sym           0
 #define elf_backend_got_header_size        (GOT_ENTRY_SIZE*3)
-#define elf_backend_plt_header_size        PLT_ENTRY_SIZE
 #define elf_backend_rela_normal                    1
 
 #define elf_info_to_howto                  elf64_x86_64_info_to_howto
index 60c6ad0404fb1cf0230ddcebe122597b976b62e2..d944a467e64c8166c9a3b3ac3f037ac60b1dcec8 100644 (file)
@@ -2248,7 +2248,6 @@ static const struct ecoff_debug_swap mips_elf32_ecoff_debug_swap = {
 #define elf_backend_ecoff_debug_swap   &mips_elf32_ecoff_debug_swap
 
 #define elf_backend_got_header_size    (4 * MIPS_RESERVED_GOTNO)
-#define elf_backend_plt_header_size    0
 
 /* MIPS n32 ELF can use a mixture of REL and RELA, but some Relocations
    work better/work only in RELA, so we default to this.  */
index 74049197206df76c7bc09ad12a2c36b43f3af295..8a109e921f4d61ba1acc40473b0b2be027e282cb 100644 (file)
@@ -4900,7 +4900,6 @@ elfNN_hpux_backend_symbol_processing (bfd *abfd ATTRIBUTE_UNUSED,
 #define elf_backend_want_plt_sym       0
 #define elf_backend_plt_alignment      5
 #define elf_backend_got_header_size    0
-#define elf_backend_plt_header_size    PLT_HEADER_SIZE
 #define elf_backend_want_got_plt       1
 #define elf_backend_may_use_rel_p      1
 #define elf_backend_may_use_rela_p     1
index 40c49d7a92b456d5ca9f1bcd36dc5ed07523f6f3..40fe8e76ece6162f6c616757c3548cdd48b365a6 100644 (file)
 #ifndef elf_backend_got_header_size
 #define elf_backend_got_header_size    0
 #endif
-#ifndef elf_backend_plt_header_size
-#define elf_backend_plt_header_size    0
-#endif
 #ifndef elf_backend_post_process_headers
 #define elf_backend_post_process_headers       NULL
 #endif
@@ -507,7 +504,6 @@ static const struct elf_backend_data elfNN_bed =
   elf_backend_special_sections,
   elf_backend_got_symbol_offset,
   elf_backend_got_header_size,
-  elf_backend_plt_header_size,
   elf_backend_collect,
   elf_backend_type_change_ok,
   elf_backend_may_use_rel_p,