[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24365] Crash due to RISC-V relocation
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/24365] Crash due to RISC-V relocation |
Date: |
Thu, 21 Mar 2019 22:17:37 +0000 |
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 <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a9f5a5517fb7df640f0fcd4cb0f9961818b6505b
commit a9f5a5517fb7df640f0fcd4cb0f9961818b6505b
Author: Jim Wilson <address@hidden>
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.