Fix relro strip test for MIPS

H.J. Lu hjl@lucon.org
Thu Sep 20 19:02:00 GMT 2007


On Thu, Sep 20, 2007 at 02:07:51PM -0400, Daniel Jacobowitz wrote:
> On Thu, Sep 20, 2007 at 10:57:25AM -0700, H.J. Lu wrote:
> > What happens is linker will allocate a segment for PT_GNU_RELRO
> > if there is a .dynamic section. But it doesn't work for MIPS.
> > Is there a way for linker to remove a segment reserved for
> > PT_GNU_RELRO?
> 
> Not and reclaim its space.  That's why we convert it to PT_NULL.
> 

That was done before Alan wrote a patch to remove the empty PT_LOAD
segment. Maybe we can use the similar approach to remove empty
PT_GNU_RELRO segment.


H.J.



More information about the Binutils mailing list