From: tuffkidtt@gmail.com (Gavin Guo)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Not able to see all the symbols in the output of "nm" command
Date: Fri, 10 Jun 2011 08:12:41 +0800 [thread overview]
Message-ID: <BANLkTin4veX4Ai3hAcq_yC+MDh=w+x_K7Q@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimHk+vBoJX+hOhZiDWvoW_4GoyRpA@mail.gmail.com>
It is possible that non-inline function will be translated to inline
function by compiler. when using back trace, I have suffered the
problems that the function calling sequence is impossible, because one
of the function is missed. Then I objdumped the elf file and found
that the missing function is inlined by compiler; However, you can use
2 method, I knowed, to avoid being inlined by compiler:
1. Putting __attribute__((optimized("O0"))) before the function definition.
2. Using the following gcc extension usage to avoid optimization.
#pragma GCC push_options
#pragma GCC optimized("O0")
your code block...
#pragma GCC pop_options
Gavin Guo
prev parent reply other threads:[~2011-06-10 0:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-13 15:21 Not able to see all the symbols in the output of "nm" command Madhavi Manchala
2011-04-14 2:46 ` Mulyadi Santosa
2011-04-14 4:55 ` Madhavi Manchala
2011-04-14 12:11 ` Mulyadi Santosa
2011-04-14 13:21 ` Madhavi Manchala
2011-06-10 0:12 ` Gavin Guo [this message]
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='BANLkTin4veX4Ai3hAcq_yC+MDh=w+x_K7Q@mail.gmail.com' \
--to=tuffkidtt@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).