Fixes for powerpc64 libc_p

Alan Modra amodra@bigpond.net.au
Wed Oct 6 18:41:00 GMT 2004


On Wed, Oct 06, 2004 at 08:56:43AM -0500, Steve Munroe wrote:
> looks good. I assume that [get|make|set|swap]context.S need the same 
> treatment?

Yes, and other files under sysdep/unix.  I missed them first time
around.

BTW, I'm seeing lots of glibc testsuite failures.  For example:

GCONV_PATH=/home/alan/build/ppc/glibc64/iconvdata LC_ALL=C   /home/alan/build/ppc/glibc64/elf/ld64.so.1 --library-path /home/alan/build/ppc/glibc64:/home/alan/build/ppc/glibc64/math:/home/alan/build/ppc/glibc64/elf:/home/alan/build/ppc/glibc64/dlfcn:/home/alan/build/ppc/glibc64/nss:/home/alan/build/ppc/glibc64/nis:/home/alan/build/ppc/glibc64/rt:/home/alan/build/ppc/glibc64/resolv:/home/alan/build/ppc/glibc64/crypt:/home/alan/build/ppc/glibc64/nptl /home/alan/build/ppc/glibc64/dlfcn/failtest  > /home/alan/build/ppc/glibc64/dlfcn/failtest.out
make[2]: *** [/home/alan/build/ppc/glibc64/dlfcn/failtest.out] Error 139

This segv is due to open_path being called with &rtld_search_dirs as its
sps param, and this line, dl-load.c:1763:
      sps->dirs = (void *) -1;

rtld_search_dirs is declared as
static struct r_search_path_struct rtld_search_dirs attribute_relro;
ie. the struct will be write protected.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Libc-alpha mailing list