diff options
author | Andi Kleen <andi@firstfloor.org> | 2021-12-23 09:55:07 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-02-03 18:41:56 -0800 |
commit | fd3c53675c01472caaa4eb976781b9d6d2d3c53d (patch) | |
tree | fbdc0290490829e5835d8da542470167b08cfdaf /binutils/config.in | |
parent | 78110c3f7743e8177859fb03db1aeaf327a51459 (diff) | |
download | gdb-fd3c53675c01472caaa4eb976781b9d6d2d3c53d.zip gdb-fd3c53675c01472caaa4eb976781b9d6d2d3c53d.tar.gz gdb-fd3c53675c01472caaa4eb976781b9d6d2d3c53d.tar.bz2 |
Support symbol+offset lookup in addr2line
The Linux kernel usually ouputs symbol+offset instead of plain code
addresses these days, to avoid leaking ASLR secrets and to handle
dynamically loaded modules.
Converting those with addr2line is somewhat involved: it requires
looking up the symbol first using nm and then manually compute the
offset, and then pass it to addr2line.
This patch implements the necessary steps directly in addr2line,
by looking up the symbol (with demangling if needed) and computing
the offset.
It's possible that a symbol is ambigious with a hex number. In this
case it uses the symbol lookup if the string contains a +. When it isn't
ambigious the + is optional.
Diffstat (limited to 'binutils/config.in')
0 files changed, 0 insertions, 0 deletions