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

Re: -ffunction-sections and profiling



> I wonder if jda has a comment about how to reach certain functions
> by means of more complex stubs?

This was done here:

2003-11-27  Randolph Chung  <tausq@debian.org>
            John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* pa.c (hppa_profile_hook): Split gen_call_profiler into separate
	insns.  Use the regular call expander for the call to the profiler.

What version of gcc are you using?

There's always the potential for the stub table to get too large.
You can play with the ld option --stub-group-size=N.  Another possibility
is to build PA 2.0 code.

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



Reply to: