This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
static functions appearing in the symbol table
- From: Martin Faltesek <martin dot faltesek at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 23 Aug 2015 09:15:47 -0400
- Subject: static functions appearing in the symbol table
- Authentication-results: sourceware.org; auth=none
While using gcc, I've noticed that some static functions appear in the
symbol table while others do not. What are the conditions that control
when a static function's symbol appears? I would have thought all
statics would not be included.
This observation arose while debugging stack traces in the linux
kernel. (and using ftrace).
Using arm-linux-gcc 4.9.1.
Thanks