All of lore.kernel.org
 help / color / mirror / Atom feed
* FUNCTION_TRACER and parisc kernel
@ 2009-02-07  1:19 Helge Deller
  2009-02-07  3:25 ` John David Anglin
  0 siblings, 1 reply; 4+ messages in thread
From: Helge Deller @ 2009-02-07  1:19 UTC (permalink / raw)
  To: Carlos O'Donell, John David Anglin, linux-parisc

Hi Carlos, Dave & parisc-linux mailing list,

I just started looking into implementing function tracer functionality 
into the parisc kernel (http://cateee.net/lkddb/web-lkddb/FUNCTION_TRACER.html).

While doing so, I noticed that gcc issues lots of warnings like this one:
  CC      arch/parisc/lib/iomap.o
cc1: warning: -ffunction-sections disabled; it makes profiling impossible

So it seems that this statement in arch/parisc/Makefile:
# Without this, "ld -r" results in .text sections that are too big
# (> 0x40000) for branches to reach stubs.
cflags-y        += -ffunction-sections

breaks with the -pg compile option which is needed for function tracing.

Some searching with google brought up this thread:
http://gcc.gnu.org/ml/gcc-help/2008-11/msg00128.html
and esp. this answer:
http://gcc.gnu.org/ml/gcc-help/2008-11/msg00141.html

Or this thread:
http://osdir.com/ml/linux.debian.ports.hppa/2005-06/msg00045.html

Since it's late I felt too tired to look deeply into glibc and gcc myself and
just thought I should ask here: Do you see any chance that -pg and -ffunction-sections
could work together on hppa/linux?

Helge

PS: I assume my latest patches to fix loading of xfs modules only worked
because we compile the kernel with -ffunction-sections by default. Disabling
-ffunction-sections will then probably bring back the module loading bug... :-(

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-07 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-07  1:19 FUNCTION_TRACER and parisc kernel Helge Deller
2009-02-07  3:25 ` John David Anglin
2009-02-07 18:32   ` John David Anglin
2009-02-07 19:05   ` Helge Deller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.