Fix relro strip test for MIPS

Daniel Jacobowitz drow@false.org
Thu Sep 20 18:58:00 GMT 2007


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.

On targets where .dynamic is not required to be writable, we know in
advance whether PT_GNU_RELRO will be necessary.  On MIPS we don't;
it depends on the link inputs.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list