This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix relro strip test for MIPS
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