libdwfl: Calculate addr to read by hand in link_map.c read_addrs.
authorMark Wielaard <mark@klomp.org>
Fri, 24 Dec 2021 01:01:32 +0000 (02:01 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 3 Jan 2022 23:36:52 +0000 (00:36 +0100)
commit9f70a762ab88ceebb8a48a7c9c3ce39ff7f205af
treedf754f137ff272259fce7f453c5e06639e7b9707
parent5b490793e2ab651df6bbf87f3a06e2552f48be81
libdwfl: Calculate addr to read by hand in link_map.c read_addrs.

The gcc undefined sanitizer doesn't like the trick we use to calculate
the (possibly) unaligned addresses to read. So calculate them by hand
as unsigned char pointers.

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

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