bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot restore segment prot after reloc


From: Jim Wilson
Subject: Re: cannot restore segment prot after reloc
Date: Tue, 11 Mar 2008 21:50:08 -0700
User-agent: Thunderbird 2.0.0.12 (X11/20080226)

Paul Turner wrote:
What does this mean "cannot restore segment prot after reloc?
The message is from the dynamic linker, which is part of glibc.  See the 
glibc file elf/dl-reloc.c.
It means that you have a read-only section (like text) that contains 
relocs that require modifying the read-only section.  This requires a 
mprotect call before we can modify it, and a second mprotect call after 
the fact to make the section read-only again after we change it.  The 
second mprotect call failed.
Of course, if you have a proper shared library, you should not have any 
relocs against the text section.  Maybe you forgot to compile something 
as PIC?
Jim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]