git: a5afb6fe1ad0 - stable/13 - rtld: fix display of the mapbase for the traced objects

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 17 Aug 2022 00:34:25 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=a5afb6fe1ad0e2f9909586ad49e159620de3ae65

commit a5afb6fe1ad0e2f9909586ad49e159620de3ae65
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-08-14 14:57:40 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-08-17 00:34:09 +0000

    rtld: fix display of the mapbase for the traced objects
    
    (cherry picked from commit 008475d3c83aecb496b2b08086427f68b2f741d5)
---
 libexec/rtld-elf/rtld.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index ab3a0740bede..6c1e172651aa 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -5079,7 +5079,7 @@ trace_loaded_objects(Obj_Entry *obj, bool show_preload)
 				path = "not found";
 
 			name = obj->strtab + needed->name;
-			trace_print_obj(obj, name, path, main_local,
+			trace_print_obj(needed->obj, name, path, main_local,
 			    fmt1, fmt2);
 		}
 	}