[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: -ffunction-sections and profiling



> > > -ffunction-sections makes profiling impossible.  I suppose I could try
> > 
> > I'm not sure either.  It might have something to do with the labels
> > emitted for profiling support and the .section directives used for
> > function sections.  It's been this way since function sections were
> > introduced:
> 
> Yes, I think the problem is that binutils doesn't know how to take label
> differences between two sections.

You can't do it in the obvious way but I believe the following works:

	L1+(.+8-L0)-$PIC_pcrel$0

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)



Reply to: