From: Alan Modra Date: Tue, 6 Jul 2021 00:53:10 +0000 (+0930) Subject: Re: PR28055, segfault in bpf special reloc function X-Git-Tag: binutils-2_38~1957 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07b2745f850232e1c2fdafb0f65ea88e6127218b;p=thirdparty%2Fbinutils-gdb.git Re: PR28055, segfault in bpf special reloc function PR 28055 * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f688d5ce5c7..dd725612716 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2021-07-06 Alan Modra + + PR 28055 + * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED. + 2021-07-05 Alan Modra PR 28055 diff --git a/bfd/elf64-bpf.c b/bfd/elf64-bpf.c index 243df93ae82..beabad79aff 100644 --- a/bfd/elf64-bpf.c +++ b/bfd/elf64-bpf.c @@ -599,7 +599,7 @@ elf64_bpf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) static bfd_reloc_status_type bpf_elf_generic_reloc (bfd *abfd, arelent *reloc_entry, asymbol *symbol, void *data, asection *input_section, - bfd *output_bfd, + bfd *output_bfd ATTRIBUTE_UNUSED, char **error_message ATTRIBUTE_UNUSED) {