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)
Dec 20 2023, 8:03 AM
Unknown Object (File)
Dec 12 2023, 12:27 PM
Unknown Object (File)
Nov 25 2023, 11:45 AM
Unknown Object (File)
Nov 21 2023, 10:01 PM
Unknown Object (File)
Nov 21 2023, 9:42 PM
Unknown Object (File)
Nov 15 2023, 12:57 PM
Unknown Object (File)
Sep 2 2023, 12:58 PM
Unknown Object (File)
Sep 2 2023, 12:57 PM
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