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)
Sat, May 16, 7:08 PM
Unknown Object (File)
Tue, May 12, 8:30 AM
Unknown Object (File)
Mon, May 11, 11:29 AM
Unknown Object (File)
Sat, May 9, 7:05 AM
Unknown Object (File)
Fri, May 8, 7:30 PM
Unknown Object (File)
Thu, May 7, 1:55 AM
Unknown Object (File)
Wed, Apr 29, 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