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