[uClibc]shared library support on linux-MIPS with CONFIG_64BIT_PHYS_ADDR

Joseph Chiu josephc at idealab.com
Wed Jul 10 18:24:05 UTC 2002


Well, I sprinkled uclibc/ldso/ldso/ldso.c with lots of printf's,
and it appears that the shared library loader dies while doing its 
_dl_mprotect "hack" on the shared library/dynamic linker code.  

This only happens when the kernel is built with 
CONFIG_64BIT_PHYS_ADDR turned on.  The common [default] configuration 
for MIPS kernels don't use the 64 bit [36bit] physical address feature,
so most people probably won't see this.

> I'd take a close look at your kernel.  Sounds to me like your kernel
> is executing apps with their stack all hosed up.  What kernel are you
> using?


I am running 2.4.18 + the sourceforge linux-mips (top of CVS) code.  
As I write this, I can get gcc/glibc-compiled shared-library programs 
to run, so I'm starting to wonder if uclibc-compiled programs somehow
gives wrong information for use with mprotect.

I'm now looking into why this is happening.  

Joseph 
(Grrrr.)

-----Original Message-----
From: Erik Andersen [mailto:andersen at codepoet.org]
Sent: Wednesday, July 10, 2002 12:41 AM
To: Joseph Chiu
Cc: uclibc at uclibc.org
Subject: Re: [uClibc]shared library support on linux-MIPS with
CONFIG_64BIT_PHYS_ADDR

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--




More information about the uClibc mailing list