https://sourceware.org/bugzilla/show_bug.cgi?id=24365
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jim Wilson <wil...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a9f5a5517fb7df640f0fcd4cb0f9961818b6505b commit a9f5a5517fb7df640f0fcd4cb0f9961818b6505b Author: Jim Wilson <j...@sifive.com> Date: Thu Mar 21 15:08:48 2019 -0700 RISC-V: Fix linker crash in section symbol check. sym is only set for local symbols. h is only set for global symbols. Gas won't let me create a global section symbol, but bfd appears to have some support for that, and I can't rule out that other assemblers might do this. So we need to support both, and verify sym and h are non-NULL before using. bfd/ PR 24365 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check, verify sym non-NULL before using. Add identical check using h. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils