https://sourceware.org/bugzilla/show_bug.cgi?id=32662
--- Comment #1 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <amo...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=38ee3a7664f00778fcc895a7f279c289a12cdbfd commit 38ee3a7664f00778fcc895a7f279c289a12cdbfd Author: Alan Modra <amo...@gmail.com> Date: Sun Feb 9 12:52:23 2025 +1030 PR32662, segv in _bfd_generic_link_output_symbols asymbol flags zero can result from certain combinations of ELF st_info binding and type. asymbol section is set to bfd_abs_section for genuine absolute symbols and also ones with a bogus st_shndx. A fuzzed ELF object with such a symbol can tickle a bug in generic linker code added by commit d3a65d4dea to avoid an abort, resulting in a segfault. This patch fixes the segfault by removing the sym->section->owner->flags test. I think it should be OK to exclude all symbols without any BSF flags set, not just IR symbols. PR 32662 * linker.c (_bfd_generic_link_output_symbols): Exclude all symbols with zero flags. Replace abort with assertion. Tidy logic. -- You are receiving this mail because: You are on the CC list for the bug.