From: GNU Libc Maintainers Date: Thu, 6 Mar 2025 22:46:53 +0000 (+0100) Subject: submitted-rld_map X-Git-Tag: archive/raspbian/2.36-9+rpi1+deb12u10^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e4e76acaf274c2fad72dcf2ae00005c6244d1119;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; }