Check out my first novel, midnight's simulacra!

Libc: Difference between revisions

From dankwiki
No edit summary
No edit summary
Line 40: Line 40:
* <tt>backtrace_symbols</tt>, given the output of <tt>backtrace</tt>, will populate its argv-style return value with any symbols it can look up
* <tt>backtrace_symbols</tt>, given the output of <tt>backtrace</tt>, will populate its argv-style return value with any symbols it can look up
In order to extract symbols, appropriate binaries must:
In order to extract symbols, appropriate binaries must:
* not be stripped (or linked with -s), and
* not be stripped (or linked with -s),
* be linked with -rdynamic/--export-dynamic
* be linked with -rdynamic/--export-dynamic, and
* provide frame pointers (none for inlined code, omitted with most [[gcc]] optimization levels)