aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-support.c
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2019-03-21 15:08:48 -0700
committerJim Wilson <jimw@sifive.com>2019-03-21 15:16:19 -0700
commita9f5a5517fb7df640f0fcd4cb0f9961818b6505b (patch)
treea72de21479b1e52dcf700b652378fd5d04430509 /gdb/cp-support.c
parent4e5391148d51c58785aad637f1a92d47b91b3ae6 (diff)
downloadgdb-a9f5a5517fb7df640f0fcd4cb0f9961818b6505b.zip
gdb-a9f5a5517fb7df640f0fcd4cb0f9961818b6505b.tar.gz
gdb-a9f5a5517fb7df640f0fcd4cb0f9961818b6505b.tar.bz2
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.
Diffstat (limited to 'gdb/cp-support.c')
0 files changed, 0 insertions, 0 deletions