Lines Matching refs:code

30 must be a pointer returned by @code{dlopen} or @code{dlmopen}; it must
31 not have been closed by @code{dlclose}.
33 On success, @code{dlinfo} returns 0 for most request types; exceptions
35 and @code{dlerror} can be used to obtain a corresponding error message.
39 @vtable @code
41 The corresponding @code{struct link_map} pointer for @var{handle} is
42 written to @code{*@var{arg}}. The @var{arg} argument must be the
43 address of an object of type @code{struct link_map *}.
47 @code{*@var{arg}}. The @var{arg} argument must be the address of an
48 object of type @code{Lmid_t}.
51 The value of the @code{$ORIGIN} dynamic string token for @var{handle} is
62 @code{Dl_serinfo} object. The @code{RTLD_DI_SERINFOSIZE} request must
63 be made first; it updates the @code{dls_size} and @code{dls_cnt} members
64 of the @code{Dl_serinfo} object. The caller should then allocate memory
65 to store at least @code{dls_size} bytes and pass that buffer to a
66 @code{RTLD_DI_SERINFO} request. This second request fills the
67 @code{dls_serpath} array. The number of array elements was returned in
68 the @code{dls_cnt} member in the initial @code{RTLD_DI_SERINFOSIZE}
73 @code{RTLD_DI_SERINFOSIZE} and @code{RTLD_DI_SERINFO} requests.
77 for the shared object identified by @var{handle} to @code{*@var{arg}}.
79 @code{void *}. A null pointer is written if the object does not have
84 to @code{*@var{arg}}. The argument @var{arg} must be the address of an
85 object of type @code{size_t}. The module ID is zero if the object
90 @code{*@var{arg}}. The argument @var{arg} must be the address of an
91 object of type @code{const ElfW(Phdr) *} (that is,
92 @code{const Elf32_Phdr *} or @code{const Elf64_Phdr *}, as appropriate
94 @code{dlinfo} is the number of program headers in the program header
98 The @code{dlinfo} function is a GNU extension.
101 The remainder of this section documents the @code{_dl_find_object}
107 object. The @code{_dl_find_object} function uses it to return
110 @table @code
127 object. See @code{DLFO_EH_SEGMENT_TYPE} below.
136 On most targets, this macro is defined as @code{0}. If it is defined to
137 @code{1}, @code{struct dl_find_object} contains an additional member
138 @code{dlfo_eh_dbase} of type @code{void *}. It is the base address for
139 @code{DW_EH_PE_datarel} DWARF encodings to this location.
146 On most targets, this macro is defined as @code{0}. If it is defined to
147 @code{1}, @code{struct dl_find_object} contains an additional member
148 @code{dlfo_eh_count} of type @code{int}. It is the number of exception
150 @code{dlfo_eh_frame} member.
158 @code{PT_GNU_EH_FRAME}. This indicates that @code{dlfo_eh_frame} in
159 @code{struct dl_find_object} points to the @code{PT_GNU_EH_FRAME}
170 surrounding the address to @code{*@var{result}}. On failure, -1 is
173 The @var{address} can be a code address or data address. On
176 implemented, @code{_dl_find_object} may return the object that defines
177 the function descriptor (and not the object that contains the code
181 @code{@var{result}->dlfo_map_start} and less than
182 @code{@var{result}->dlfo_map_end}, that is, the supplied code address is
186 object that contains the program code @var{address} in
187 @code{@var{result}->dlfo_eh_frame}. If the platform uses DWARF
189 @code{PT_GNU_EH_FRAME} segment. See @code{DLFO_EH_SEGMENT_TYPE} above.
191 the function still returns 0, but sets @code{@var{result}->dlfo_eh_frame}
194 @code{_dl_find_object} itself is thread-safe. However, if the
195 application invokes @code{dlclose} for the object that contains
196 @var{address} concurrently with @code{_dl_find_object} or after the call
198 (through @code{@var{result}->dlfo_link_map}) is not safe. Therefore, the
200 @var{address} remains a valid code address while the unwinding