diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-04-07 08:18:00 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-04-07 08:18:00 +0200 |
commit | 591cc9fbbfd6d51131c0f1d4a92e7893edcc7a28 (patch) | |
tree | 9ac81ea37fe5a69bf7b992be0a9f27ec22282b0c /gas/NEWS | |
parent | 0f47cb17d14172a5250b2146b82583271280d170 (diff) | |
download | gdb-591cc9fbbfd6d51131c0f1d4a92e7893edcc7a28.zip gdb-591cc9fbbfd6d51131c0f1d4a92e7893edcc7a28.tar.gz gdb-591cc9fbbfd6d51131c0f1d4a92e7893edcc7a28.tar.bz2 |
gas/Dwarf: record functions
To help tools like addr2line looking up function names, in particular
when dealing with e.g. PE/COFF binaries (linked from ELF objects), where
there's no ELF symbol table to fall back to, emit minimalistic
information for functions marked as such and having their size
specified.
Notes regarding the restriction to (pure) ELF:
- I realize this is a layering violation; I don't see how to deal with
that in a better way.
- S_GET_SIZE(), when OBJ_MAYBE_ELF is defined, looks wrong: Unlike
S_SET_SIZE() it does not check whether the hook is NULL.
- symbol_get_obj(), when OBJ_MAYBE_ELF is defined, looks unusable, as
its return type can only ever be one object format's type (and this
may then not be ELF's).
The new testcases are limited to x86 because I wanted to include the
case where function size can't be determined yet at the time Dwarf2 info
is generated. As .nops gains support by further targets, they could also
be added here then (with, as necessary, expecations suitably relaxed to
cover for insn size differences).
Diffstat (limited to 'gas/NEWS')
0 files changed, 0 insertions, 0 deletions