fb633ea
From 0c95ab64cb4ec0d22bb222647d9d20c7b4903e38 Mon Sep 17 00:00:00 2001
fb633ea
From: Andreas Schwab <schwab@redhat.com>
fb633ea
Date: Fri, 7 Oct 2011 09:31:27 +0200
fb633ea
Subject: [PATCH] Horrible workaround for horribly broken software
fb633ea
fb633ea
* Tue Oct 11 2011 Andreas Schwab <schwab@redhat.com> - 2.14.90-11
fb633ea
- Horrible workaround for horribly broken software (#737223)
fb633ea
fb633ea
---
fb633ea
 elf/rtld.c |    4 +++-
fb633ea
 1 files changed, 3 insertions(+), 1 deletions(-)
fb633ea
fb633ea
diff --git a/elf/rtld.c b/elf/rtld.c
fb633ea
index 978c609..8422b9f 100644
fb633ea
--- a/elf/rtld.c
fb633ea
+++ b/elf/rtld.c
fb633ea
@@ -1404,7 +1404,9 @@ of this helper program; chances are you did not intend to run this program.\n\
fb633ea
 	      char *copy = malloc (len);
fb633ea
 	      if (copy == NULL)
fb633ea
 		_dl_fatal_printf ("out of memory\n");
fb633ea
-	      l->l_libname->name = l->l_name = memcpy (copy, dsoname, len);
fb633ea
+	      l->l_libname->name = memcpy (copy, dsoname, len);
fb633ea
+	      if (GLRO(dl_debug_mask))
fb633ea
+		l->l_name = copy;
fb633ea
 	    }
fb633ea
 
fb633ea
 	  /* Add the vDSO to the object list.  */