diff options
author | Marcus Shawcroft <marcus.shawcroft@arm.com> | 2015-02-28 00:06:26 +0000 |
---|---|---|
committer | Marcus Shawcroft <marcus.shawcroft@arm.com> | 2015-03-23 15:20:30 +0000 |
commit | 4c77202d000bab10f821a88c6da9664337f01f10 (patch) | |
tree | 62127ac1ece44e6564868d28a8f6d581d4812c2a /bfd/elfnn-aarch64.c | |
parent | 9b9971aac7b89596695f15ed4763d9fd2b876ca8 (diff) | |
download | gdb-4c77202d000bab10f821a88c6da9664337f01f10.zip gdb-4c77202d000bab10f821a88c6da9664337f01f10.tar.gz gdb-4c77202d000bab10f821a88c6da9664337f01f10.tar.bz2 |
[AArch64] Drop unused argument to elf_aarch64_create_or_find_stub_sec
Diffstat (limited to 'bfd/elfnn-aarch64.c')
-rw-r--r-- | bfd/elfnn-aarch64.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 65dab9a..acef708 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -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; } @@ -3481,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; |