S/390: Get rid of superfluous parameter to s390_elf_allocate_ifunc_dyn_relocs.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Mon, 19 Oct 2015 11:08:27 +0000 (13:08 +0200)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 22 Oct 2015 07:59:40 +0000 (09:59 +0200)
bfd/ChangeLog:
* elf-s390-common.c (s390_elf_allocate_ifunc_dyn_relocs): Remove
`head' parameter.
* elf32-s390.c (allocate_dynrelocs): Don't use last parameter.
* elf64-s390.c (allocate_dynrelocs): Don't use last parameter.

bfd/ChangeLog
bfd/elf-s390-common.c
bfd/elf32-s390.c
bfd/elf64-s390.c

index 862664a44df8242cab5a052a1a9fe84a9c25f73b..6eec6650a1bc08b2e25ad8a172a4b918a1aa335d 100644 (file)
@@ -1,3 +1,10 @@
+2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
+
+       * elf-s390-common.c (s390_elf_allocate_ifunc_dyn_relocs): Remove
+       `head' parameter.
+       * elf32-s390.c (allocate_dynrelocs): Don't use last parameter.
+       * elf64-s390.c (allocate_dynrelocs): Don't use last parameter.
+
 2015-10-20  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * mmo.c (mmo_write_symbols_and_terminator): Correct printed value
index 6b5b17b1846da6ec8e56677eeb58c40f0360dc6e..2daeef6fbb9cc596c0e3d69cb9f9fb039eb1e4fe 100644 (file)
@@ -87,12 +87,12 @@ s390_elf_create_ifunc_sections (bfd *abfd, struct bfd_link_info *info)
 
 static bfd_boolean
 s390_elf_allocate_ifunc_dyn_relocs (struct bfd_link_info *info,
-                                   struct elf_link_hash_entry *h,
-                                   struct elf_dyn_relocs **head)
+                                   struct elf_link_hash_entry *h)
 {
   struct elf_dyn_relocs *p;
   struct elf_link_hash_table *htab;
   struct elf_s390_link_hash_entry *eh = (struct elf_s390_link_hash_entry*)h;
+  struct elf_dyn_relocs **head = &eh->dyn_relocs;
 
   htab = elf_hash_table (info);
   eh->ifunc_resolver_address = h->root.u.def.value;
index dc2d80ff2e3cf1f79f74bbd6bd265047402b939d..509d8f9d198e357d1ed8a90c999f1939ec3bb7e2 100644 (file)
@@ -1787,8 +1787,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf)
   /* Since STT_GNU_IFUNC symbol must go through PLT, we handle it
      here if it is defined and referenced in a non-shared object.  */
   if (s390_is_ifunc_symbol_p (h) && h->def_regular)
-    return s390_elf_allocate_ifunc_dyn_relocs (info, h,
-                                              &eh->dyn_relocs);
+    return s390_elf_allocate_ifunc_dyn_relocs (info, h);
   else if (htab->elf.dynamic_sections_created
           && h->plt.refcount > 0)
     {
index 7cc0489d84db76098add11234c60575b46d35aec..d988b121c318d6de25fd5b808ef9ce51bb630694 100644 (file)
@@ -1734,8 +1734,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h,
   /* Since STT_GNU_IFUNC symbol must go through PLT, we handle it
      here if it is defined and referenced in a non-shared object.  */
   if (s390_is_ifunc_symbol_p (h) && h->def_regular)
-    return s390_elf_allocate_ifunc_dyn_relocs (info, h,
-                                              &eh->dyn_relocs);
+    return s390_elf_allocate_ifunc_dyn_relocs (info, h);
   else if (htab->elf.dynamic_sections_created
           && h->plt.refcount > 0)
     {
This page took 0.028881 seconds and 4 git commands to generate.