diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-10-23 20:24:23 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-10-23 20:24:23 +0000 |
commit | 1b58be7e74fd9ed4c4fac804663e8f61178fc017 (patch) | |
tree | 7723f4f3e8295dac992a90b894ef8d8b58b5908f /bfd/elf32-mips.c | |
parent | 9bb28706c4945adade7aa8c1e43e54522df58099 (diff) | |
download | gdb-1b58be7e74fd9ed4c4fac804663e8f61178fc017.zip gdb-1b58be7e74fd9ed4c4fac804663e8f61178fc017.tar.gz gdb-1b58be7e74fd9ed4c4fac804663e8f61178fc017.tar.bz2 |
2001-10-23 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
m != NULL before accessing it.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r-- | bfd/elf32-mips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 0bd473d..38b0f8b 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -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 |