[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28055] Segment fault on nm-new -l
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/28055] Segment fault on nm-new -l |
Date: |
Mon, 05 Jul 2021 12:23:23 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28055
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b4c4b8aaad84853ddf1b2779a5f1bbe5be157397
commit b4c4b8aaad84853ddf1b2779a5f1bbe5be157397
Author: Alan Modra <amodra@gmail.com>
Date: Mon Jul 5 16:31:30 2021 +0930
PR28055, segfault in bpf special reloc function
The testcase in this PR tickled two bugs fixed here. output_bfd is
NULL when a reloc special_function is called for final linking and
when called from bfd_generic_get_relocated_section_contents. Clearly
using output_bfd is wrong as it results in segfaults. Not only that,
the endianness of the reloc field really should be that of the input.
The second bug was not checking that the entire reloc field was
contained in the section contents.
PR 28055
* elf64-bpf.c (bpf_elf_generic_reloc): Use correct bfd for bfd_put
and bfd_put_32 calls. Correct section limit checks.
--
You are receiving this mail because:
You are on the CC list for the bug.