]> git.ipfire.org Git - thirdparty/glibc.git/commit
manual: Describe struct link_map, support link maps with dlinfo
authorFlorian Weimer <fweimer@redhat.com>
Mon, 5 Aug 2024 14:01:12 +0000 (16:01 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 2 Dec 2024 10:38:14 +0000 (11:38 +0100)
commitb7d4de086ce7fcc531cdd67a61dc27b5b3eff482
tree6976dc87fc000170f011fd3aa64c0a9da6dc2ab2
parent3c2b9dc41cd05da055fae6f793a355063156bdf3
manual: Describe struct link_map, support link maps with dlinfo

This does not describe how to use RTLD_DI_ORIGIN and l_name
to reconstruct a full path for the an object. The reason
is that I think we should not recommend further use of
RTLD_DI_ORIGIN due to its buffer overflow potential (bug 24298).
This should be covered by another dlinfo extension.  It would
also obsolete the need for the dladdr approach to obtain
the file name for the main executable.

Obtaining the lowest address from load segments in program
headers is quite clumsy and should be provided directly
via dlinfo.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
manual/dynlink.texi