]> git.ipfire.org Git - thirdparty/linux.git/commit
gendwarfksyms: Add address matching
authorSami Tolvanen <samitolvanen@google.com>
Fri, 3 Jan 2025 20:45:24 +0000 (20:45 +0000)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 10 Jan 2025 16:25:25 +0000 (01:25 +0900)
commite982abf43749529687dd1d07fa4f495902910cf2
treeaf0ebfacae6a9e8fbf6d85f719014d582e058386
parentf28568841ae0a0dd48dfc5400aaebedf10a54d10
gendwarfksyms: Add address matching

The compiler may choose not to emit type information in DWARF for all
aliases, but it's possible for each alias to be exported separately.
To ensure we find type information for the aliases as well, read
{section, address} tuples from the symbol table and match symbols also
by address.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/gendwarfksyms/gendwarfksyms.c
scripts/gendwarfksyms/gendwarfksyms.h
scripts/gendwarfksyms/symbols.c