This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: orphan section logic
On Mon, Jan 11, 2010 at 09:47:53PM -0500, DJ Delorie wrote:
>
> > > + if (strcmp (os->name, secname) == 0)
> >
> > You don't need to check the name here,
>
> Why not? How else are we going to know which output section to assign
> the section to?
for (os = lang_output_section_find (secname);
os != NULL;
os = next_matching_output_section_statement (os, 0))
iterates over sections that match the name..
--
Alan Modra
Australia Development Lab, IBM