orphan section logic

Alan Modra amodra@gmail.com
Tue Jan 12 03:39:00 GMT 2010


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



More information about the Binutils mailing list