[uClibc] mips dynamic section marked RWE

Ned Ludd solar at gentoo.org
Fri Nov 12 00:22:45 UTC 2004


On Thu, 2004-11-11 at 14:48, Erik Andersen wrote:
> On Thu Nov 11, 2004 at 08:15:13PM +0100, Peter S. Mazinger wrote:
> > On Thu, 11 Nov 2004, Erik Andersen wrote:
> > 
> > > On Thu Nov 11, 2004 at 06:42:18PM +0100, Peter S. Mazinger wrote:
> > > > Hello!
> > > > 
> > > > Does anyone have an idea why the dynamic section on mips[el] is marked RWE 
> > > > (on other archs it is RW). Is it necessary or is it a toolchain problem 
> > > > only?
> > > 
> > > As I recall, that was done on mips[el] since we were having
> > > problems making gdb work.  I suspect that setting things RWE
> > > is no longer necessary.  Care to revert that and confirm that
> > > gdb still works?
> > 
> > How/what to revert?
> 
> It turns out that the mprotect call I was thinking of has already
> been reverted.  And because I wasn't reading carefully it turns
> out I didn't answer your question at all...  :-)
> 
> I have no idea why this happens.  I see nothing causing it in the
> kernel, or in uClibc/ldso/ldso/.  The mips ABI (SysV ABI, MIPS
> Supplement, 3rd Edition) only shows .dynamic as type SHF_ALLOC
> (section occupies memory during process execution), and doesn't
> show READ, WRITE, or EXEC...

It's probably coming from the toolchain/binutils marking it this way.
Seems mips native/cross uClibc/glibc big/little endian built ELF's show
up the same way.

Peter,
The binutils ml would probably be the best place to find out.

>  -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
-- 
Ned Ludd <solar at gentoo.org>
Gentoo (hardened,security,infrastructure,embedded) Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20041111/016fbf78/attachment-0002.pgp 


More information about the uClibc mailing list