From: Marcus Shawcroft Date: Sat, 28 Feb 2015 00:06:26 +0000 (+0000) Subject: Drop unused argument to elf_aarch64_create_or_find_stub_sec X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b83066ee241e565b856d5555c0856f06a37a9b4;p=thirdparty%2Fbinutils-gdb.git Drop unused argument to elf_aarch64_create_or_find_stub_sec --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 936a4edf803..e191ccadfbf 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ 2015-03-04 Marcus Shawcroft + * elfnn-aarch64.c (elf_aarch64_create_or_find_stub_sec): + Remove unused parameter. + (elfNN_aarch64_size_stubs): Adjust for above. + +2015-03-23 Marcus Shawcroft + * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Remove bfd_indx. 2015-03-23 Marcus Shawcroft diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 49547c0eef5..a84207c5b80 100644 --- a/bfd/elfnn-aarch64.c +++ b/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;