aboutsummaryrefslogtreecommitdiff
path: root/ldso/ldso/mips/dl-sysdep.h
diff options
context:
space:
mode:
authorGravatar Richard Braun <rbraun@sceen.net>2011-01-28 18:18:54 +0100
committerGravatar Khem Raj <raj.khem@gmail.com>2011-01-29 09:11:46 -0800
commit9657b26d293370032604891a361d944b8bf0b234 (patch)
tree3b1d3f25e7c87c749336f47a9126348e9fefa187 /ldso/ldso/mips/dl-sysdep.h
parent3158d66d7060639225153b4cc9e373046f200ef6 (diff)
downloaduClibc-9657b26d293370032604891a361d944b8bf0b234.tar.gz
uClibc-9657b26d293370032604891a361d944b8bf0b234.tar.bz2
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/ldso/mips/dl-sysdep.h')
-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)