Page MenuHomeFreeBSD

rtld: fix display of the mapbase for the traced objects
ClosedPublic

Authored by kib on Aug 14 2022, 3:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 21, 12:34 AM
Unknown Object (File)
Mon, Apr 20, 3:56 AM
Unknown Object (File)
Sun, Apr 19, 11:09 AM
Unknown Object (File)
Sat, Apr 18, 11:22 PM
Unknown Object (File)
Fri, Apr 17, 3:28 AM
Unknown Object (File)
Wed, Apr 15, 11:50 AM
Unknown Object (File)
Wed, Apr 8, 9:13 PM
Unknown Object (File)
Mar 6 2026, 12:32 AM
Subscribers

Details

Summary
Commit 24d0c9c1f565bab6e introduced the following regression:
% ldd /bin/ls
~/work/DEV/src
/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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable