summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/bfd
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2015-02-28 00:06:26 +0000
committerAndrew Hsieh <andrewhsieh@google.com>2015-03-30 21:38:52 -0700
commit568a7f8e3e43848c9927cda5dd926e00b3982254 (patch)
tree8f4b75369a174d15710d7c321225ccc53dffae04 /binutils-2.25/bfd
parentda54d4b3675d62fc53835f3b70f5711b8bfd98da (diff)
downloadtoolchain_binutils-568a7f8e3e43848c9927cda5dd926e00b3982254.zip
toolchain_binutils-568a7f8e3e43848c9927cda5dd926e00b3982254.tar.gz
toolchain_binutils-568a7f8e3e43848c9927cda5dd926e00b3982254.tar.bz2
[AArch64] Drop unused argument to elf_aarch64_create_or_find_stub_sec
Change-Id: I0454073cfad254ee5e28c5d597d615abdef9331d
Diffstat (limited to 'binutils-2.25/bfd')
-rw-r--r--binutils-2.25/bfd/elfnn-aarch64.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/binutils-2.25/bfd/elfnn-aarch64.c b/binutils-2.25/bfd/elfnn-aarch64.c
index 49547c0..a84207c 100644
--- a/binutils-2.25/bfd/elfnn-aarch64.c
+++ b/binutils-2.25/bfd/elfnn-aarch64.c
@@ -3055,13 +3055,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;
@@ -3096,9 +3094,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;
}
@@ -3454,8 +3449,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;