rtld: fix display of the mapbase for the traced objects
Commit24d0c9c1f5
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
This commit is contained in:
parent
7376c08cc6
commit
008475d3c8
@ -5033,7 +5033,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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user