Magellan Linux

Annotation of /trunk/glibc/patches/glibc-2.15-lddebug-scopes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1806 - (hide annotations) (download)
Tue Jun 12 12:33:27 2012 UTC (11 years, 11 months ago) by niro
File size: 840 byte(s)
-added patches for 2.15-r1
1 niro 1806 From 0c95ab64cb4ec0d22bb222647d9d20c7b4903e38 Mon Sep 17 00:00:00 2001
2     From: Andreas Schwab <schwab@redhat.com>
3     Date: Fri, 7 Oct 2011 09:31:27 +0200
4     Subject: [PATCH] Horrible workaround for horribly broken software
5    
6     ---
7     elf/rtld.c | 4 +++-
8     1 files changed, 3 insertions(+), 1 deletions(-)
9    
10     diff --git a/elf/rtld.c b/elf/rtld.c
11     index 978c609..8422b9f 100644
12     --- a/elf/rtld.c
13     +++ b/elf/rtld.c
14     @@ -1393,7 +1393,9 @@ of this helper program; chances are you did not intend to run this program.\n\
15     char *copy = malloc (len);
16     if (copy == NULL)
17     _dl_fatal_printf ("out of memory\n");
18     - l->l_libname->name = l->l_name = memcpy (copy, dsoname, len);
19     + l->l_libname->name = memcpy (copy, dsoname, len);
20     + if (GLRO(dl_debug_mask))
21     + l->l_name = copy;
22     }
23    
24     /* Add the vDSO to the object list. */
25     --
26     1.7.3.4