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)
Mon, May 18, 10:54 AM
Unknown Object (File)
May 16 2026, 7:08 PM
Unknown Object (File)
May 12 2026, 8:30 AM
Unknown Object (File)
May 11 2026, 11:29 AM
Unknown Object (File)
May 9 2026, 7:05 AM
Unknown Object (File)
May 8 2026, 7:30 PM
Unknown Object (File)
May 7 2026, 1:55 AM
Unknown Object (File)
Apr 29 2026, 6:23 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