Sourceware Bugzilla – Attachment 4805 Details for
Bug 11615
ld.so segfaults when RLD_MAP is 0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
mips-rld_map.diff (text/plain), 760 bytes, created by
Aurelien Jarno
on 2010-05-20 12:52:29 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Aurelien Jarno
Created:
2010-05-20 12:52:29 UTC
Size:
760 bytes
patch
obsolete
>2010-05-20 Aurelien Jarno <aurelien@aurel32.net> > > * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): test for > RLD_MAP pointer before using it. > >diff --git a/sysdeps/mips/dl-machine.h b/sysdeps/mips/dl-machine.h >index 123b4d6..3bed59c 100644 >--- a/sysdeps/mips/dl-machine.h >+++ b/sysdeps/mips/dl-machine.h >@@ -70,7 +70,8 @@ > /* If there is a DT_MIPS_RLD_MAP entry in the dynamic section, fill it in > with the run-time address of the r_debug structure */ > #define ELF_MACHINE_DEBUG_SETUP(l,r) \ >-do { if ((l)->l_info[DT_MIPS (RLD_MAP)]) \ >+do { 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)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11615
: 4805