Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/gen/dlinfo.3
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
example 1. | example 1. | ||||
.Pp | .Pp | ||||
The | The | ||||
.Vt Link_map | .Vt Link_map | ||||
structure is defined in | structure is defined in | ||||
.In link.h | .In link.h | ||||
and has the following members: | and has the following members: | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
caddr_t l_addr; /* Load Offset of library */ | caddr_t l_base; /* Base Address of library */ | ||||
const char *l_name; /* Absolute Path to Library */ | const char *l_name; /* Absolute Path to Library */ | ||||
const void *l_ld; /* Pointer to .dynamic in memory */ | const void *l_ld; /* Pointer to .dynamic in memory */ | ||||
struct link_map *l_next, /* linked list of mapped libs */ | struct link_map *l_next, /* linked list of mapped libs */ | ||||
*l_prev; | *l_prev; | ||||
caddr_t l_addr; /* Load Offset of library */ | |||||
.Ed | .Ed | ||||
.Bl -tag -width ".Va l_addr" | .Bl -tag -width ".Va l_addr" | ||||
.It Va l_addr | .It Va l_base | ||||
The load offset of the object, that is, the difference between | The base address of the object loaded into memory. | ||||
the actual load address and the base virtual address the object | |||||
was linked at. | |||||
.It Va l_name | .It Va l_name | ||||
The full name of the loaded shared object. | The full name of the loaded shared object. | ||||
.It Va l_ld | .It Va l_ld | ||||
The address of the dynamic linking information segment | The address of the dynamic linking information segment | ||||
.Pq Dv PT_DYNAMIC | .Pq Dv PT_DYNAMIC | ||||
loaded into memory. | loaded into memory. | ||||
.It Va l_next | .It Va l_next | ||||
The next | The next | ||||
.Vt Link_map | .Vt Link_map | ||||
structure on the link-map list. | structure on the link-map list. | ||||
.It Va l_prev | .It Va l_prev | ||||
The previous | The previous | ||||
.Vt Link_map | .Vt Link_map | ||||
structure on the link-map list. | structure on the link-map list. | ||||
.It Va l_addr | |||||
The load offset of the object, that is, the difference between | |||||
the actual load address and the base virtual address the object | |||||
was linked at. | |||||
.El | .El | ||||
.It Dv RTLD_DI_SERINFO | .It Dv RTLD_DI_SERINFO | ||||
Retrieve the library search paths associated with the given | Retrieve the library search paths associated with the given | ||||
.Fa handle | .Fa handle | ||||
argument. | argument. | ||||
The | The | ||||
.Fa p | .Fa p | ||||
argument should point to | argument should point to | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |