Author: jhuntwork Date: 2005-10-14 09:06:10 -0600 (Fri, 14 Oct 2005) New Revision: 1188
Added: trunk/glibc/glibc-2.3.4-rtld_search_dirs-1.patch Log: Added patch to fix glibc segfaults for 6.1.1 book Added: trunk/glibc/glibc-2.3.4-rtld_search_dirs-1.patch =================================================================== --- trunk/glibc/glibc-2.3.4-rtld_search_dirs-1.patch 2005-10-13 22:38:16 UTC (rev 1187) +++ trunk/glibc/glibc-2.3.4-rtld_search_dirs-1.patch 2005-10-14 15:06:10 UTC (rev 1188) @@ -0,0 +1,23 @@ +Submitted By: Jeremy Huntwork (jhuntwork AT linuxfromscratch DOT org) +Date: 2005-10-14 +Initial Package Version: 3.3.4 +Upstream Status: From glibc-cvs +Origin: http://sources.redhat.com/ml/libc-hacker/2005-02/msg00005.html +Description: Avoid segfault if open_path doesn't find any of the standard search directories. + +--- libc/elf/dl-load.c.jj 2005-01-19 14:12:38.000000000 +0100 ++++ libc/elf/dl-load.c 2005-02-07 11:24:58.611074914 +0100 +@@ -1876,7 +1876,12 @@ open_path (const char *name, size_t name + must not be freed using the general free() in libc. */ + if (sps->malloced) + free (sps->dirs); +- sps->dirs = (void *) -1; ++#ifdef HAVE_Z_RELRO ++ /* rtld_search_dirs is attribute_relro, therefore avoid writing ++ into it. */ ++ if (sps != &rtld_search_dirs) ++#endif ++ sps->dirs = (void *) -1; + } + + return -1; -- http://linuxfromscratch.org/mailman/listinfo/patches FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
