libdwelf: Add dwelf_elf_gnu_build_id.
authorMark Wielaard <mjw@redhat.com>
Wed, 30 Apr 2014 21:00:40 +0000 (23:00 +0200)
committerMark Wielaard <mjw@redhat.com>
Thu, 1 May 2014 11:51:31 +0000 (13:51 +0200)
commitd81d32d2a4f92355e4c677b578147dfe819251b9
tree79c9bf17a4334d86c220676fc8c6b54b1dacee34
parent920f03dcd3a6dd46b3d88c45be8dbfa0adc780dd
libdwelf: Add dwelf_elf_gnu_build_id.

Move internal function __libdwfl_find_build_id to libdwelf and use it to
add a public dwelf_elf_gnu_build_id function to extract the NT_GNU_BUILD_ID
from an ELF file using either the shdrs or phdrs. Adjust internal callers
and add a testcase.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
16 files changed:
libdw/ChangeLog
libdw/libdw.map
libdwelf/ChangeLog
libdwelf/Makefile.am
libdwelf/dwelf_elf_gnu_build_id.c [new file with mode: 0644]
libdwelf/libdwelf.h
libdwelf/libdwelfP.h
libdwfl/ChangeLog
libdwfl/dwfl_module_build_id.c
libdwfl/dwfl_module_getdwarf.c
libdwfl/dwfl_segment_report_module.c
tests/ChangeLog
tests/Makefile.am
tests/buildid.c [new file with mode: 0644]
tests/run-buildid.sh [new file with mode: 0755]
tests/testfile42_noshdrs.bz2 [new file with mode: 0644]