libdwfl: Call xlatetom on aligned buffers in dwfl_link_map_report
authorMark Wielaard <mark@klomp.org>
Fri, 24 Dec 2021 00:44:57 +0000 (01:44 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 3 Jan 2022 23:36:52 +0000 (00:36 +0100)
commit5b490793e2ab651df6bbf87f3a06e2552f48be81
tree9d8d8d3fe4d3e3674114758bb6800330a34461e7
parent1cf73965853037301a6099dea5368a1303cde2ba
libdwfl: Call xlatetom on aligned buffers in dwfl_link_map_report

Make sure that when calling xlatetom for Phdrs and Dyns in
dwfl_link_map_report the input buffer is correctly aligned by calling
memcpy and setting in.d_buf to out.d_buf.

https://sourceware.org/bugzilla/show_bug.cgi?id=28720

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/link_map.c