From: GNU Libc Maintainers Date: Thu, 13 Jul 2023 18:07:47 +0000 (+0100) Subject: submitted-rld_map X-Git-Tag: archive/raspbian/2.36-9+rpi1+deb12u1^2~29 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=89d5af549a8c4f12507f0cdf666a85260fac7b57;p=glibc.git submitted-rld_map 2010-05-20 Aurelien Jarno * sysdeps/mips/dl-debug.h (ELF_MACHINE_DEBUG_SETUP): test for RLD_MAP pointer before using it. Gbp-Pq: Topic mips Gbp-Pq: Name submitted-rld_map.diff --- diff --git a/sysdeps/mips/dl-debug.h b/sysdeps/mips/dl-debug.h index c41329a61..fe9466eda 100644 --- a/sysdeps/mips/dl-debug.h +++ b/sysdeps/mips/dl-debug.h @@ -33,7 +33,8 @@ elf_setup_debug_entry (struct link_map *l, struct r_debug *r) ptr += l->l_info[DT_MIPS (RLD_MAP_REL)]->d_un.d_val; *(ElfW(Addr) *) ptr = (ElfW(Addr)) r; } - else if (l->l_info[DT_MIPS (RLD_MAP)] != NULL) + else if (l->l_info[DT_MIPS (RLD_MAP)] != NULL && + (l)->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) *(ElfW(Addr) *) (l->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) = (ElfW(Addr)) r; }