* compiling Kernel Modules with debugging information enabled
@ 2005-07-16 17:11 k8 s
2005-07-16 17:26 ` Brice Goglin
0 siblings, 1 reply; 2+ messages in thread
From: k8 s @ 2005-07-16 17:11 UTC (permalink / raw)
To: linux-kernel
Hello,
How can I compile a kernel module ,that is statically compiled at the
kernel compilation time, with debugging information.
To be more clear, say I have selected CONFIG_XFRM=y in .config file
I want to make a change such that net/xfrm/Makefile has an entry
CFLAGS += -g so that it generates debugging information for all the
modules in that directory
I successfully did it for dynamically compiled modules that are insmod'ed.
How can I do it for statically linked modules.
The idea is to do the following
objdump -DS xyz.o
so that I know the source lines and their assembly translations.
This is useful in crashdump analysis where we get the information of
<function name + offset>
S Kartikeyan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-16 17:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-16 17:11 compiling Kernel Modules with debugging information enabled k8 s
2005-07-16 17:26 ` Brice Goglin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox