diff options
author | Alan Modra <amodra@gmail.com> | 2021-07-06 10:23:10 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-07-06 10:41:36 +0930 |
commit | 07b2745f850232e1c2fdafb0f65ea88e6127218b (patch) | |
tree | f2e2d95ad24729aa660e5b29bd34f52732523bd3 /bfd | |
parent | 606afd7e116f5b4c101ae0ac22404fdf13bf8813 (diff) | |
download | gdb-07b2745f850232e1c2fdafb0f65ea88e6127218b.zip gdb-07b2745f850232e1c2fdafb0f65ea88e6127218b.tar.gz gdb-07b2745f850232e1c2fdafb0f65ea88e6127218b.tar.bz2 |
Re: PR28055, segfault in bpf special reloc function
PR 28055
* elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-bpf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f688d5c..dd72561 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2021-07-06 Alan Modra <amodra@gmail.com> + + PR 28055 + * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED. + 2021-07-05 Alan Modra <amodra@gmail.com> PR 28055 diff --git a/bfd/elf64-bpf.c b/bfd/elf64-bpf.c index 243df93..beabad7 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) { |