[AArch64] Drop unused argument to elf_aarch64_create_or_find_stub_sec
[deliverable/binutils-gdb.git] / bfd / elfnn-aarch64.c
index 5d47f8e818a617e726f24dbb505f1d160402c926..acef708fc6d7c02d8cc12aa8197f81e4315a5f36 100644 (file)
@@ -3082,13 +3082,11 @@ erratum_835769_scan (bfd *input_bfd,
   return FALSE;
 }
 
-/* Find or create a stub section.  Returns a pointer to the stub section, and
-   the section to which the stub section will be attached (in *LINK_SEC_P).
-   LINK_SEC_P may be NULL.  */
+/* Find or create a stub section.  */
 
 static asection *
-elf_aarch64_create_or_find_stub_sec (asection **link_sec_p, asection *section,
-                                  struct elf_aarch64_link_hash_table *htab)
+elf_aarch64_create_or_find_stub_sec (asection *section,
+                                    struct elf_aarch64_link_hash_table *htab)
 {
   asection *link_sec;
   asection *stub_sec;
@@ -3123,9 +3121,6 @@ elf_aarch64_create_or_find_stub_sec (asection **link_sec_p, asection *section,
       htab->stub_group[section->id].stub_sec = stub_sec;
     }
 
-  if (link_sec_p)
-    *link_sec_p = link_sec;
-
   return stub_sec;
 }
 
@@ -3191,13 +3186,12 @@ elfNN_aarch64_size_stubs (bfd *output_bfd,
   while (1)
     {
       bfd *input_bfd;
-      unsigned int bfd_indx;
       asection *stub_sec;
       unsigned prev_num_erratum_835769_fixes = num_erratum_835769_fixes;
 
       num_erratum_835769_fixes = 0;
-      for (input_bfd = info->input_bfds, bfd_indx = 0;
-          input_bfd != NULL; input_bfd = input_bfd->link.next, bfd_indx++)
+      for (input_bfd = info->input_bfds;
+          input_bfd != NULL; input_bfd = input_bfd->link.next)
        {
          Elf_Internal_Shdr *symtab_hdr;
          asection *section;
@@ -3482,8 +3476,8 @@ elfNN_aarch64_size_stubs (bfd *output_bfd,
       if (htab->fix_erratum_835769)
        for (i = 0; i < num_erratum_835769_fixes; i++)
          {
-           stub_sec = elf_aarch64_create_or_find_stub_sec (NULL,
-                        erratum_835769_fixes[i].section, htab);
+           stub_sec = elf_aarch64_create_or_find_stub_sec
+             (erratum_835769_fixes[i].section, htab);
 
            if (stub_sec == NULL)
              goto error_ret_free_local;
This page took 0.024457 seconds and 4 git commands to generate.