PATCH: Fix relro strip test for MIPS

Alan Modra amodra@bigpond.net.au
Thu Sep 27 06:44:00 GMT 2007


On Sat, Sep 22, 2007 at 02:17:08PM -0700, H.J. Lu wrote:
> We can call assign_file_positions_for_load_sections to get the
> load section layout and find out if the PT_GNU_RELRO segment will
> be empty or not.

I haven't been following this thread closely, but I really don't like
calling assign_file_positions_for_load_sections early like this.
Can't you determine whether a PT_GNU_RELRO program header will be
needed just by looking at the PT_LOAD sections in
_bfd_elf_map_sections_to_segments?

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list