From: k8 s <uint32@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: compiling Kernel Modules with debugging information enabled
Date: Sat, 16 Jul 2005 22:41:42 +0530 [thread overview]
Message-ID: <699a19ea05071610115fcc827f@mail.gmail.com> (raw)
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
next reply other threads:[~2005-07-16 17:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-16 17:11 k8 s [this message]
2005-07-16 17:26 ` compiling Kernel Modules with debugging information enabled Brice Goglin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=699a19ea05071610115fcc827f@mail.gmail.com \
--to=uint32@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.