From: GNU Libc Maintainers Date: Sat, 30 Sep 2023 08:31:05 +0000 (+0100) Subject: submitted-rld_map X-Git-Tag: archive/raspbian/2.36-9+rpi1+deb12u3^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=25128df8f3a2cb948386b293ea837e882ceefba5;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; }