]> git.ipfire.org Git - thirdparty/gcc.git/commit
libbacktrace: read symbol table of debuginfo file
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2024 03:44:19 +0000 (19:44 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 1 Mar 2024 03:45:57 +0000 (19:45 -0800)
commitc6d4fb0062c6059fe21968a9fe44c56814c88873
tree7cc8b2014565497d0eb47f4756d52786ed1fa268
parentb05f474c8f7768dad50a99a2d676660ee4db09c6
libbacktrace: read symbol table of debuginfo file

These become another symbol table to search.  This is needed if people
use --strip-all rather than --strip-debug when adding a debuglink
section.

Patch is from GitHub user pickard1.

Fixes https://github.com/ianlancetaylor/libbacktrace/issues/113.

* elf.c (elf_add): Add the symbol table from a debuginfo file.
* Makefile.am (MAKETESTS): Add buildidfull and gnudebuglinkfull
variants of buildid and gnudebuglink tests.
(%_gnudebuglinkfull, %_buildidfull): New patterns.
* Makefile.in: Regenerate.
libbacktrace/Makefile.am
libbacktrace/Makefile.in
libbacktrace/elf.c