]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: specify optional sysroot to search for shared libraries and binaries
authorLuke Diamand <ldiamand@roku.com>
Tue, 2 Jul 2024 17:30:58 +0000 (19:30 +0200)
committerAaron Merey <amerey@redhat.com>
Thu, 4 Jul 2024 22:41:19 +0000 (18:41 -0400)
commit798c92d68701a95da50ebe3b2bf99ad9cff02072
tree6f5792e915832ac08ae748f3c345927b7b292f6c
parent3c57968144f27a6885442ccd1f07864823018aeb
libdwfl: specify optional sysroot to search for shared libraries and binaries

When searching the list of modules in a core file, if the core was
generated on a different system to the current one, we need to look
in a sysroot for the various shared objects.

For example, we might be looking at a core file from an ARM system
using elfutils running on an x86 host.

This change adds a new function, dwfl_set_sysroot(), which then
gets used when searching for libraries and binaries.

Signed-off-by: Luke Diamand <ldiamand@roku.com>
Signed-off-by: Michal Sekletar <msekleta@redhat.com>
libdw/libdw.map
libdwfl/Makefile.am
libdwfl/core-file.c
libdwfl/dwfl_end.c
libdwfl/dwfl_segment_report_module.c
libdwfl/dwfl_set_sysroot.c [new file with mode: 0644]
libdwfl/libdwfl.h
libdwfl/libdwflP.h
libdwfl/link_map.c