]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Add dwfl_module_addrsym_elf and dwfl_module_getsym_elf.
authorMark Wielaard <mjw@redhat.com>
Wed, 27 Nov 2013 15:45:44 +0000 (16:45 +0100)
committerMark Wielaard <mjw@redhat.com>
Wed, 27 Nov 2013 15:45:44 +0000 (16:45 +0100)
commit819c349f6339512d6961a6172c539fdf2c2f1328
treec7be311a37ac6ebae7d27b10f401d131d7d8be0d
parent16bc4569a9d4c86aac4de749ccf27fa7b1ae24d5
libdwfl: Add dwfl_module_addrsym_elf and dwfl_module_getsym_elf.

Introduce two new functions that also return the elf associated with a
symbol to make symbol section indexing work for non-special sections.
Simplify code by removing dwfl_file where appropriate and just track Elf
directly. Document limitations of shndx with existing dwfl_module_addrsym
and dwfl_module_getsym. Extend dwflsyms testcase to check some more symbol
and section (index) properties.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 files changed:
libdw/ChangeLog
libdw/libdw.map
libdwfl/ChangeLog
libdwfl/dwfl_module_addrsym.c
libdwfl/dwfl_module_getsym.c
libdwfl/dwfl_module_info.c
libdwfl/libdwfl.h
libdwfl/libdwflP.h
libdwfl/relocate.c
tests/ChangeLog
tests/dwflsyms.c
tests/run-dwflsyms.sh