From: GNU Libc Maintainers Date: Sat, 2 Oct 2021 12:47:40 +0000 (+0100) Subject: submitted-rld_map X-Git-Tag: archive/raspbian/2.31-13+rpi1+deb11u2^2~34 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bf0d19eefd63c7e2525856a6bac75b9c307d280a;p=glibc.git submitted-rld_map 2010-05-20 Aurelien Jarno * sysdeps/mips/dl-machine.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-machine.h b/sysdeps/mips/dl-machine.h index 06021ea9a..e5eaf0e75 100644 --- a/sysdeps/mips/dl-machine.h +++ b/sysdeps/mips/dl-machine.h @@ -78,7 +78,8 @@ do { if ((l)->l_info[DT_MIPS (RLD_MAP_REL)]) \ 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)]) \ + else if ((l)->l_info[DT_MIPS (RLD_MAP)] && \ + (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); \ } while (0)