mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-16 23:49:06 +00:00
2001-10-23 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check m != NULL before accessing it.
This commit is contained in:
parent
9bb28706c4
commit
1b58be7e74
@ -1,3 +1,8 @@
|
||||
2001-10-23 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
|
||||
m != NULL before accessing it.
|
||||
|
||||
2001-10-23 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
|
||||
|
@ -3510,7 +3510,7 @@ _bfd_mips_elf_modify_segment_map (abfd)
|
||||
if ((*pm)->p_type == PT_DYNAMIC)
|
||||
break;
|
||||
m = *pm;
|
||||
if (IRIX_COMPAT (abfd) == ict_none)
|
||||
if (m != NULL && IRIX_COMPAT (abfd) == ict_none)
|
||||
{
|
||||
/* For a normal mips executable the permissions for the PT_DYNAMIC
|
||||
segment are read, write and execute. We do that here since
|
||||
|
Loading…
x
Reference in New Issue
Block a user