This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Backtrace_symbols and .symtab
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Yury Gribov <y dot gribov at samsung dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Viacheslav Garbuzov <v dot garbuzov at samsung dot com>, Andreas Jaeger <aj at suse dot com>
- Date: Wed, 22 Oct 2014 09:44:26 -0700 (PDT)
- Subject: Re: Backtrace_symbols and .symtab
- Authentication-results: sourceware.org; auth=none
- References: <5447C4FF dot 7090507 at samsung dot com> <5447D7C0 dot 80705 at samsung dot com>
Please be specific about exactly what you propose. How would the program
find its own executable file from which to read .symtab? The reason it
uses only .dynsym is that only .dynsym is part of the memory image in a
running program.
You mentioned sprof, but this is a completely different case. That's a
program that reads an ELF file off disk.