freebsd-src/libexec/rtld-elf
Konstantin Belousov 008475d3c8 rtld: fix display of the mapbase for the traced objects
Commit 24d0c9c1f5 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:	24d0c9c1f5
Reviewed by:	jrtc27
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D36198
2022-08-14 18:11:06 +03:00
..
aarch64 TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
amd64 TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
arm rtld-elf: Remove libsoft support 2022-01-06 22:44:07 -07:00
i386 TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
powerpc TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
powerpc64 TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
riscv TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
rtld-libc Have rtld query the page size from the kernel 2022-04-07 15:37:37 +01:00
tests rtld/tests: Avoid function name conflict with libc opendir() 2021-07-06 10:51:57 +01:00
debug.c
debug.h Use rtld_putstr() instead of write() for the rtld msg() macro 2019-06-26 15:43:26 +00:00
libmap.c rtld-elf/paths.h: Make it usable outside rtld 2021-10-21 03:08:54 +03:00
libmap.conf
libmap.h rtld: constify most variables holding references to the environment values 2021-08-17 15:06:08 +03:00
Makefile rtld: Do not install libmap.conf when installing the COMPAT32 version 2021-10-13 14:42:08 +02:00
Makefile.depend
map_object.c Have rtld query the page size from the kernel 2022-04-07 15:37:37 +01:00
rtld_lock.c rtld: initialize default dlerror_seen_val as true 2021-05-13 02:31:29 +03:00
rtld_lock.h rtld_lock.h: add some comments about versioning of struct RtldLockInfo 2021-04-11 11:16:13 +03:00
rtld_malloc.c rtld-elf/paths.h: Make it usable outside rtld 2021-10-21 03:08:54 +03:00
rtld_malloc.h Add header file missed in r343564. 2019-01-29 22:45:24 +00:00
rtld_paths.h rtld-elf: Remove libsoft support 2022-01-06 22:44:07 -07:00
rtld_printf.c rtld: add rtld_fdprintfx() 2021-11-13 19:33:13 +02:00
rtld_printf.h rtld: add rtld_fdprintfx() 2021-11-13 19:33:13 +02:00
rtld_tls.h Remove sparc64 specific parts of rtld-elf. 2020-02-26 18:49:25 +00:00
rtld_utrace.h
rtld.1 rtld.1: Fix misplaced text 2022-02-25 11:16:35 -05:00
rtld.c rtld: fix display of the mapbase for the traced objects 2022-08-14 18:11:06 +03:00
rtld.h Have rtld query the page size from the kernel 2022-04-07 15:37:37 +01:00
Symbol.map rtld dl_iterate_phdr(): dlpi_tls_data is wrong 2021-04-06 03:23:08 +03:00
xmalloc.c Make p_vaddr % p_align == p_offset % p_align for (some) TLS segments. 2020-04-04 22:37:50 +00:00