summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2011-01-28 18:18:54 +0100
committerKhem Raj <raj.khem@gmail.com>2011-01-29 09:11:46 -0800
commit9657b26d293370032604891a361d944b8bf0b234 (patch)
tree3b1d3f25e7c87c749336f47a9126348e9fefa187 /ldso
parent3158d66d7060639225153b4cc9e373046f200ef6 (diff)
mips: avoid segmentation fault when RLD_MAP is 0
Signed-off-by: Richard Braun <rbraun@sceen.net> Acked-by: Joakim Tjernlund <joakim.tjernlund@transmode.se> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/mips/dl-sysdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/mips/dl-sysdep.h b/ldso/ldso/mips/dl-sysdep.h
index c1aad6661..80c089aed 100644
--- a/ldso/ldso/mips/dl-sysdep.h
+++ b/ldso/ldso/mips/dl-sysdep.h
@@ -109,7 +109,7 @@ else if (dpnt->d_tag == DT_MIPS_SYMTABNO) \
dynamic[DT_MIPS_SYMTABNO_IDX] = dpnt->d_un.d_val; \
else if (dpnt->d_tag == DT_MIPS_PLTGOT) \
dynamic[DT_MIPS_PLTGOT_IDX] = dpnt->d_un.d_val; \
-else if (dpnt->d_tag == DT_MIPS_RLD_MAP) \
+else if ((dpnt->d_tag == DT_MIPS_RLD_MAP) && (dpnt->d_un.d_ptr)) \
*(ElfW(Addr) *)(dpnt->d_un.d_ptr) = (ElfW(Addr)) debug_addr; \
} while (0)