This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]