From 07b2745f850232e1c2fdafb0f65ea88e6127218b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 6 Jul 2021 10:23:10 +0930 Subject: [PATCH] Re: PR28055, segfault in bpf special reloc function PR 28055 * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED. --- bfd/ChangeLog | 5 +++++ bfd/elf64-bpf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.30.2