]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtld: fix display of the mapbase for the traced objects
authorKonstantin Belousov <kib@FreeBSD.org>
Sun, 14 Aug 2022 14:57:40 +0000 (17:57 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Sun, 14 Aug 2022 15:11:06 +0000 (18:11 +0300)
commit008475d3c83aecb496b2b08086427f68b2f741d5
tree2efbe09518b124840ac66d154b465588e925d9bf
parent7376c08cc67e65ee660d51873129e34745ef5dd4
rtld: fix display of the mapbase for the traced objects

Commit 24d0c9c1f565bab6e introduced the following regression:
% ldd /bin/ls
/bin/ls:
        libutil.so.9 => /lib/libutil.so.9 (0x1021000)
        libncursesw.so.9 => /lib/libncursesw.so.9 (0x1021000)
        libc.so.7 => /lib/libc.so.7 (0x1021000)
Note that the base address is the same for all displayed libraries.

Fix it by passing correct object to trace_print_obj().

Fixes: 24d0c9c1f565bab6e
Reviewed by: jrtc27
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential revision: https://reviews.freebsd.org/D36198
libexec/rtld-elf/rtld.c