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

Joseph Chiu josephc at idealab.com
Mon Jul 15 18:41:22 UTC 2002


Hi,

Just a follow-up on this issue -- the problem was in the linux-mips
kernel (broken __pte macro that then broke sys_mprotect).  Somehow,
it took uclibc to tickle the problem behavior!  The latest patch
in linux-mips corrects this problem.

Thanks for the help and suggestions!

Cheers,
Joseph

-----Original Message-----
From: uclibc-admin at uclibc.org [mailto:uclibc-admin at uclibc.org]On Behalf
Of Joseph Chiu
Sent: Wednesday, July 10, 2002 11:24 AM
To: andersen at codepoet.org
Cc: uclibc at uclibc.org
Subject: RE: [uClibc]shared library support on linux-MIPS with
CONFIG_64BIT_PHYS_ADDR


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--

_______________________________________________
uClibc mailing list
uClibc at uclibc.org
http://uclibc.org/mailman/listinfo/uclibc




More information about the uClibc mailing list