-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-9.3.0.z
-
None
-
Low
-
rhel-sst-pt-perf-debug
-
ssg_platform_tools
-
1
-
False
-
-
No
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
Unspecified Release Note Type - Unknown
-
None
What were you trying to do that didn't work?
I'm looking at info share as a way to obtain the load address of shared objects. This data is helpful to make sense of addresses if shared objects lack debugging information. Having a convenient command for this helps in support scenarios.
Please provide the package NVR for which bug is seen:
gdb-10.2-11.el9.x86_64
How reproducible:
Always.
Steps to reproduce
- gdb -p $$
- info share
- print/x _rtld_global._dl_rtld_map.l_addr
Expected results
info share prints the page-aligned load address of shared objects.
Actual results
(gdb) info share From To Syms Read Shared Object Library 0x00007f2d5b58d570 0x00007f2d5b59a05c Yes (*) /lib64/libtinfo.so.6 0x00007f2d5b228700 0x00007f2d5b39b1ed Yes /lib64/libc.so.6 0x00007f2d5b5be090 0x00007f2d5b5e3ac3 Yes /lib64/ld-linux-x86-64.so.2 (*): Shared library is missing debugging information. (gdb) print/x _rtld_global._dl_rtld_map.l_addr $2 = 0x7f2d5b5bc000
Note how the load addresses of the shared objects are not page-aligned.