[GOLD] mapping input to output sections

Alan Modra amodra@gmail.com
Tue Aug 14 04:40:00 GMT 2012


On Mon, Aug 13, 2012 at 07:54:05PM -0700, Ian Lance Taylor wrote:
> On Mon, Aug 13, 2012 at 5:54 PM, Alan Modra <amodra@gmail.com> wrote:
> >
> >         * target.h (Target::output_section_name): New function.
> >         (Target::do_output_section_name): New function.
> >         * layout.cc (Layout::choose_output_section): Call the above.
> >         * powerpc.cc (Target_powerpc::do_output_section_name): New function.
> 
> > +  do_output_section_name(const Relobj*, const char* name, size_t* plen) const
> > +  {
> > +    if (size == 64 && strcmp (name, ".toc") == 0)
> 
> Remove space after "strcmp".

The funny thing about this is that of all the GNU C coding
conventions, this is the one I still dislike after many years of
writing GNU C.  Habit dies hard.  Fixed and committed.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list