| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:22+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "dl_iterate_phdr" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "dl_iterate_phdr - walk through list of shared objects" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "" |
| 77 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 78 |
"B<#include E<lt>link.hE<gt>>\n" |
| 79 |
msgstr "" |
| 80 |
|
| 81 |
#. type: Plain text |
| 82 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 83 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "" |
| 86 |
"B<int dl_iterate_phdr(>\n" |
| 87 |
"B< typeof(int (struct dl_phdr_info *>I<info>B<, size_t >I<size>B<, void *>I<data>B<))>\n" |
| 88 |
"B< *>I<callback>B<,>\n" |
| 89 |
"B< void *>I<data>B<);>\n" |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: SH |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "DESCRIPTION" |
| 97 |
msgstr "" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
msgid "" |
| 103 |
"The B<dl_iterate_phdr>() function allows an application to inquire at run " |
| 104 |
"time to find out which shared objects it has loaded, and the order in which " |
| 105 |
"they were loaded." |
| 106 |
msgstr "" |
| 107 |
|
| 108 |
#. type: Plain text |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
msgid "" |
| 112 |
"The B<dl_iterate_phdr>() function walks through the list of an " |
| 113 |
"application's shared objects and calls the function I<callback> once for " |
| 114 |
"each object, until either all shared objects have been processed or " |
| 115 |
"I<callback> returns a nonzero value." |
| 116 |
msgstr "" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
msgid "" |
| 122 |
"Each call to I<callback> receives three arguments: I<info>, which is a " |
| 123 |
"pointer to a structure containing information about the shared object; " |
| 124 |
"I<size>, which is the size of the structure pointed to by I<info>; and " |
| 125 |
"I<data>, which is a copy of whatever value was passed by the calling program " |
| 126 |
"as the second argument (also named I<data>) in the call to " |
| 127 |
"B<dl_iterate_phdr>()." |
| 128 |
msgstr "" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 132 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
msgid "The I<info> argument is a structure of the following type:" |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 138 |
#: opensuse-tumbleweed |
| 139 |
#, no-wrap |
| 140 |
msgid "" |
| 141 |
"struct dl_phdr_info {\n" |
| 142 |
" ElfW(Addr) dlpi_addr; /* Base address of object */\n" |
| 143 |
" const char *dlpi_name; /* (Null-terminated) name of\n" |
| 144 |
" object */\n" |
| 145 |
" const ElfW(Phdr) *dlpi_phdr; /* Pointer to array of\n" |
| 146 |
" ELF program headers\n" |
| 147 |
" for this object */\n" |
| 148 |
" ElfW(Half) dlpi_phnum; /* # of items in \\f[I]dlpi_phdr\\fR */\n" |
| 149 |
"\\&\n" |
| 150 |
" /* The following fields were added in glibc 2.4, after the first\n" |
| 151 |
" version of this structure was available. Check the \\f[I]size\\fR\n" |
| 152 |
" argument passed to the dl_iterate_phdr callback to determine\n" |
| 153 |
" whether or not each later member is available. */\n" |
| 154 |
"\\&\n" |
| 155 |
" unsigned long long dlpi_adds;\n" |
| 156 |
" /* Incremented when a new object may\n" |
| 157 |
" have been added */\n" |
| 158 |
" unsigned long long dlpi_subs;\n" |
| 159 |
" /* Incremented when an object may\n" |
| 160 |
" have been removed */\n" |
| 161 |
" size_t dlpi_tls_modid;\n" |
| 162 |
" /* If there is a PT_TLS segment, its module\n" |
| 163 |
" ID as used in TLS relocations, else zero */\n" |
| 164 |
" void *dlpi_tls_data;\n" |
| 165 |
" /* The address of the calling thread\\[aq]s instance\n" |
| 166 |
" of this module\\[aq]s PT_TLS segment, if it has\n" |
| 167 |
" one and it has been allocated in the calling\n" |
| 168 |
" thread, otherwise a null pointer */\n" |
| 169 |
"};\n" |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
msgid "" |
| 176 |
"(The I<ElfW>() macro definition turns its argument into the name of an ELF " |
| 177 |
"data type suitable for the hardware architecture. For example, on a 32-bit " |
| 178 |
"platform, I<ElfW(Addr)> yields the data type name I<Elf32_Addr>. Further " |
| 179 |
"information on these types can be found in the I<E<lt>elf.hE<gt>> and " |
| 180 |
"I<E<lt>link.hE<gt>> header files.)" |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "" |
| 187 |
"The I<dlpi_addr> field indicates the base address of the shared object " |
| 188 |
"(i.e., the difference between the virtual memory address of the shared " |
| 189 |
"object and the offset of that object in the file from which it was loaded). " |
| 190 |
"The I<dlpi_name> field is a null-terminated string giving the pathname from " |
| 191 |
"which the shared object was loaded." |
| 192 |
msgstr "" |
| 193 |
|
| 194 |
#. type: Plain text |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "" |
| 198 |
"To understand the meaning of the I<dlpi_phdr> and I<dlpi_phnum> fields, we " |
| 199 |
"need to be aware that an ELF shared object consists of a number of segments, " |
| 200 |
"each of which has a corresponding program header describing the segment. " |
| 201 |
"The I<dlpi_phdr> field is a pointer to an array of the program headers for " |
| 202 |
"this shared object. The I<dlpi_phnum> field indicates the size of this " |
| 203 |
"array." |
| 204 |
msgstr "" |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
msgid "These program headers are structures of the following form:" |
| 210 |
msgstr "" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
#, no-wrap |
| 216 |
msgid "" |
| 217 |
"typedef struct {\n" |
| 218 |
" Elf32_Word p_type; /* Segment type */\n" |
| 219 |
" Elf32_Off p_offset; /* Segment file offset */\n" |
| 220 |
" Elf32_Addr p_vaddr; /* Segment virtual address */\n" |
| 221 |
" Elf32_Addr p_paddr; /* Segment physical address */\n" |
| 222 |
" Elf32_Word p_filesz; /* Segment size in file */\n" |
| 223 |
" Elf32_Word p_memsz; /* Segment size in memory */\n" |
| 224 |
" Elf32_Word p_flags; /* Segment flags */\n" |
| 225 |
" Elf32_Word p_align; /* Segment alignment */\n" |
| 226 |
"} Elf32_Phdr;\n" |
| 227 |
msgstr "" |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
msgid "" |
| 233 |
"Note that we can calculate the location of a particular program header, " |
| 234 |
"I<x>, in virtual memory using the formula:" |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
#, no-wrap |
| 241 |
msgid "addr == info-E<gt>dlpi_addr + info-E<gt>dlpi_phdr[x].p_vaddr;\n" |
| 242 |
msgstr "" |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 246 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 247 |
msgid "" |
| 248 |
"Possible values for I<p_type> include the following (see I<E<lt>elf.hE<gt>> " |
| 249 |
"for further details):" |
| 250 |
msgstr "" |
| 251 |
|
| 252 |
#. For PT_GNU_STACK, see http://www.airs.com/blog/archives/518 |
| 253 |
#. type: Plain text |
| 254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 255 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
#, no-wrap |
| 257 |
msgid "" |
| 258 |
"#define PT_LOAD 1 /* Loadable program segment */\n" |
| 259 |
"#define PT_DYNAMIC 2 /* Dynamic linking information */\n" |
| 260 |
"#define PT_INTERP 3 /* Program interpreter */\n" |
| 261 |
"#define PT_NOTE 4 /* Auxiliary information */\n" |
| 262 |
"#define PT_SHLIB 5 /* Reserved */\n" |
| 263 |
"#define PT_PHDR 6 /* Entry for header table itself */\n" |
| 264 |
"#define PT_TLS 7 /* Thread-local storage segment */\n" |
| 265 |
"#define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */\n" |
| 266 |
"#define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */\n" |
| 267 |
"#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */\n" |
| 268 |
msgstr "" |
| 269 |
|
| 270 |
#. type: SH |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
#, no-wrap |
| 274 |
msgid "RETURN VALUE" |
| 275 |
msgstr "" |
| 276 |
|
| 277 |
#. type: Plain text |
| 278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 280 |
msgid "" |
| 281 |
"The B<dl_iterate_phdr>() function returns whatever value was returned by " |
| 282 |
"the last call to I<callback>." |
| 283 |
msgstr "" |
| 284 |
|
| 285 |
#. type: SH |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
#, no-wrap |
| 289 |
msgid "ATTRIBUTES" |
| 290 |
msgstr "" |
| 291 |
|
| 292 |
#. type: Plain text |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
msgid "" |
| 296 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 297 |
msgstr "" |
| 298 |
|
| 299 |
#. type: tbl table |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
#, no-wrap |
| 303 |
msgid "Interface" |
| 304 |
msgstr "" |
| 305 |
|
| 306 |
#. type: tbl table |
| 307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 308 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 309 |
#, no-wrap |
| 310 |
msgid "Attribute" |
| 311 |
msgstr "" |
| 312 |
|
| 313 |
#. type: tbl table |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
#, no-wrap |
| 317 |
msgid "Value" |
| 318 |
msgstr "" |
| 319 |
|
| 320 |
#. type: tbl table |
| 321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 323 |
#, no-wrap |
| 324 |
msgid ".na\n" |
| 325 |
msgstr "" |
| 326 |
|
| 327 |
#. type: tbl table |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, no-wrap |
| 331 |
msgid ".nh\n" |
| 332 |
msgstr "" |
| 333 |
|
| 334 |
#. type: tbl table |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
#, no-wrap |
| 338 |
msgid "B<dl_iterate_phdr>()" |
| 339 |
msgstr "" |
| 340 |
|
| 341 |
#. type: tbl table |
| 342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 344 |
#, no-wrap |
| 345 |
msgid "Thread safety" |
| 346 |
msgstr "" |
| 347 |
|
| 348 |
#. type: tbl table |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
#, no-wrap |
| 352 |
msgid "MT-Safe" |
| 353 |
msgstr "" |
| 354 |
|
| 355 |
#. type: SH |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
#, no-wrap |
| 359 |
msgid "VERSIONS" |
| 360 |
msgstr "" |
| 361 |
|
| 362 |
#. type: Plain text |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
msgid "" |
| 366 |
"Various other systems provide a version of this function, although details " |
| 367 |
"of the returned I<dl_phdr_info> structure differ. On the BSDs and Solaris, " |
| 368 |
"the structure includes the fields I<dlpi_addr>, I<dlpi_name>, I<dlpi_phdr>, " |
| 369 |
"and I<dlpi_phnum> in addition to other implementation-specific fields." |
| 370 |
msgstr "" |
| 371 |
|
| 372 |
#. type: Plain text |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
msgid "" |
| 376 |
"Future versions of the C library may add further fields to the " |
| 377 |
"I<dl_phdr_info> structure; in that event, the I<size> argument provides a " |
| 378 |
"mechanism for the callback function to discover whether it is running on a " |
| 379 |
"system with added fields." |
| 380 |
msgstr "" |
| 381 |
|
| 382 |
#. type: SH |
| 383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 385 |
#, no-wrap |
| 386 |
msgid "STANDARDS" |
| 387 |
msgstr "" |
| 388 |
|
| 389 |
#. type: Plain text |
| 390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 391 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 392 |
msgid "None." |
| 393 |
msgstr "" |
| 394 |
|
| 395 |
#. type: SH |
| 396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 397 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 398 |
#, no-wrap |
| 399 |
msgid "HISTORY" |
| 400 |
msgstr "" |
| 401 |
|
| 402 |
#. type: Plain text |
| 403 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 404 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 405 |
msgid "glibc 2.2.4." |
| 406 |
msgstr "" |
| 407 |
|
| 408 |
#. type: SH |
| 409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 411 |
#, no-wrap |
| 412 |
msgid "NOTES" |
| 413 |
msgstr "" |
| 414 |
|
| 415 |
#. type: Plain text |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
msgid "" |
| 419 |
"The first object visited by I<callback> is the main program. For the main " |
| 420 |
"program, the I<dlpi_name> field will be an empty string." |
| 421 |
msgstr "" |
| 422 |
|
| 423 |
#. type: SH |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
#, no-wrap |
| 427 |
msgid "EXAMPLES" |
| 428 |
msgstr "" |
| 429 |
|
| 430 |
#. type: Plain text |
| 431 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 432 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 433 |
msgid "" |
| 434 |
"The following program displays a list of pathnames of the shared objects it " |
| 435 |
"has loaded. For each shared object, the program lists some information " |
| 436 |
"(virtual address, size, flags, and type) for each of the objects ELF " |
| 437 |
"segments." |
| 438 |
msgstr "" |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "" |
| 444 |
"The following shell session demonstrates the output produced by the program " |
| 445 |
"on an x86-64 system. The first shared object for which output is displayed " |
| 446 |
"(where the name is an empty string) is the main program." |
| 447 |
msgstr "" |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 451 |
#: opensuse-tumbleweed |
| 452 |
#, no-wrap |
| 453 |
msgid "" |
| 454 |
"$B< ./a.out>;\n" |
| 455 |
"Name: \"\" (9 segments)\n" |
| 456 |
" 0: [ 0x400040; memsz: 1f8] flags: 0x5; PT_PHDR\n" |
| 457 |
" 1: [ 0x400238; memsz: 1c] flags: 0x4; PT_INTERP\n" |
| 458 |
" 2: [ 0x400000; memsz: ac4] flags: 0x5; PT_LOAD\n" |
| 459 |
" 3: [ 0x600e10; memsz: 240] flags: 0x6; PT_LOAD\n" |
| 460 |
" 4: [ 0x600e28; memsz: 1d0] flags: 0x6; PT_DYNAMIC\n" |
| 461 |
" 5: [ 0x400254; memsz: 44] flags: 0x4; PT_NOTE\n" |
| 462 |
" 6: [ 0x400970; memsz: 3c] flags: 0x4; PT_GNU_EH_FRAME\n" |
| 463 |
" 7: [ (nil); memsz: 0] flags: 0x6; PT_GNU_STACK\n" |
| 464 |
" 8: [ 0x600e10; memsz: 1f0] flags: 0x4; PT_GNU_RELRO\n" |
| 465 |
"Name: \"linux-vdso.so.1\" (4 segments)\n" |
| 466 |
" 0: [0x7ffc6edd1000; memsz: e89] flags: 0x5; PT_LOAD\n" |
| 467 |
" 1: [0x7ffc6edd1360; memsz: 110] flags: 0x4; PT_DYNAMIC\n" |
| 468 |
" 2: [0x7ffc6edd17b0; memsz: 3c] flags: 0x4; PT_NOTE\n" |
| 469 |
" 3: [0x7ffc6edd17ec; memsz: 3c] flags: 0x4; PT_GNU_EH_FRAME\n" |
| 470 |
"Name: \"/lib64/libc.so.6\" (10 segments)\n" |
| 471 |
" 0: [0x7f55712ce040; memsz: 230] flags: 0x5; PT_PHDR\n" |
| 472 |
" 1: [0x7f557145b980; memsz: 1c] flags: 0x4; PT_INTERP\n" |
| 473 |
" 2: [0x7f55712ce000; memsz: 1b6a5c] flags: 0x5; PT_LOAD\n" |
| 474 |
" 3: [0x7f55716857a0; memsz: 9240] flags: 0x6; PT_LOAD\n" |
| 475 |
" 4: [0x7f5571688b80; memsz: 1f0] flags: 0x6; PT_DYNAMIC\n" |
| 476 |
" 5: [0x7f55712ce270; memsz: 44] flags: 0x4; PT_NOTE\n" |
| 477 |
" 6: [0x7f55716857a0; memsz: 78] flags: 0x4; PT_TLS\n" |
| 478 |
" 7: [0x7f557145b99c; memsz: 544c] flags: 0x4; PT_GNU_EH_FRAME\n" |
| 479 |
" 8: [0x7f55712ce000; memsz: 0] flags: 0x6; PT_GNU_STACK\n" |
| 480 |
" 9: [0x7f55716857a0; memsz: 3860] flags: 0x4; PT_GNU_RELRO\n" |
| 481 |
"Name: \"/lib64/ld-linux-x86-64.so.2\" (7 segments)\n" |
| 482 |
" 0: [0x7f557168f000; memsz: 20828] flags: 0x5; PT_LOAD\n" |
| 483 |
" 1: [0x7f55718afba0; memsz: 15a8] flags: 0x6; PT_LOAD\n" |
| 484 |
" 2: [0x7f55718afe10; memsz: 190] flags: 0x6; PT_DYNAMIC\n" |
| 485 |
" 3: [0x7f557168f1c8; memsz: 24] flags: 0x4; PT_NOTE\n" |
| 486 |
" 4: [0x7f55716acec4; memsz: 604] flags: 0x4; PT_GNU_EH_FRAME\n" |
| 487 |
" 5: [0x7f557168f000; memsz: 0] flags: 0x6; PT_GNU_STACK\n" |
| 488 |
" 6: [0x7f55718afba0; memsz: 460] flags: 0x4; PT_GNU_RELRO\n" |
| 489 |
msgstr "" |
| 490 |
|
| 491 |
#. type: SS |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
#, no-wrap |
| 495 |
msgid "Program source" |
| 496 |
msgstr "" |
| 497 |
|
| 498 |
#. type: Plain text |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
#, no-wrap |
| 502 |
msgid "" |
| 503 |
"#define _GNU_SOURCE\n" |
| 504 |
"#include E<lt>link.hE<gt>\n" |
| 505 |
"#include E<lt>stdint.hE<gt>\n" |
| 506 |
"#include E<lt>stdio.hE<gt>\n" |
| 507 |
"#include E<lt>stdlib.hE<gt>\n" |
| 508 |
"\\&\n" |
| 509 |
"static int\n" |
| 510 |
"callback(struct dl_phdr_info *info, size_t size, void *data)\n" |
| 511 |
"{\n" |
| 512 |
" char *type;\n" |
| 513 |
" int p_type;\n" |
| 514 |
"\\&\n" |
| 515 |
" printf(\"Name: \\[rs]\"%s\\[rs]\" (%d segments)\\[rs]n\", info-E<gt>dlpi_name,\n" |
| 516 |
" info-E<gt>dlpi_phnum);\n" |
| 517 |
"\\&\n" |
| 518 |
" for (size_t j = 0; j E<lt> info-E<gt>dlpi_phnum; j++) {\n" |
| 519 |
" p_type = info-E<gt>dlpi_phdr[j].p_type;\n" |
| 520 |
" type = (p_type == PT_LOAD) ? \"PT_LOAD\" :\n" |
| 521 |
" (p_type == PT_DYNAMIC) ? \"PT_DYNAMIC\" :\n" |
| 522 |
" (p_type == PT_INTERP) ? \"PT_INTERP\" :\n" |
| 523 |
" (p_type == PT_NOTE) ? \"PT_NOTE\" :\n" |
| 524 |
" (p_type == PT_INTERP) ? \"PT_INTERP\" :\n" |
| 525 |
" (p_type == PT_PHDR) ? \"PT_PHDR\" :\n" |
| 526 |
" (p_type == PT_TLS) ? \"PT_TLS\" :\n" |
| 527 |
" (p_type == PT_GNU_EH_FRAME) ? \"PT_GNU_EH_FRAME\" :\n" |
| 528 |
" (p_type == PT_GNU_STACK) ? \"PT_GNU_STACK\" :\n" |
| 529 |
" (p_type == PT_GNU_RELRO) ? \"PT_GNU_RELRO\" : NULL;\n" |
| 530 |
"\\&\n" |
| 531 |
" printf(\" %2zu: [%14p; memsz:%7jx] flags: %#jx; \", j,\n" |
| 532 |
" (void *) (info-E<gt>dlpi_addr + info-E<gt>dlpi_phdr[j].p_vaddr),\n" |
| 533 |
" (uintmax_t) info-E<gt>dlpi_phdr[j].p_memsz,\n" |
| 534 |
" (uintmax_t) info-E<gt>dlpi_phdr[j].p_flags);\n" |
| 535 |
" if (type != NULL)\n" |
| 536 |
" printf(\"%s\\[rs]n\", type);\n" |
| 537 |
" else\n" |
| 538 |
" printf(\"[other (%#x)]\\[rs]n\", p_type);\n" |
| 539 |
" }\n" |
| 540 |
"\\&\n" |
| 541 |
" return 0;\n" |
| 542 |
"}\n" |
| 543 |
"\\&\n" |
| 544 |
"int\n" |
| 545 |
"main(void)\n" |
| 546 |
"{\n" |
| 547 |
" dl_iterate_phdr(callback, NULL);\n" |
| 548 |
"\\&\n" |
| 549 |
" exit(EXIT_SUCCESS);\n" |
| 550 |
"}\n" |
| 551 |
msgstr "" |
| 552 |
|
| 553 |
#. SRC END |
| 554 |
#. type: SH |
| 555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
#, no-wrap |
| 558 |
msgid "SEE ALSO" |
| 559 |
msgstr "" |
| 560 |
|
| 561 |
#. type: Plain text |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
msgid "" |
| 565 |
"B<ldd>(1), B<objdump>(1), B<readelf>(1), B<dladdr>(3), B<dlopen>(3), " |
| 566 |
"B<elf>(5), B<ld.so>(8)" |
| 567 |
msgstr "" |
| 568 |
|
| 569 |
#. type: Plain text |
| 570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 571 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 572 |
msgid "" |
| 573 |
"I<Executable and Linking Format Specification>, available at various " |
| 574 |
"locations online." |
| 575 |
msgstr "" |
| 576 |
|
| 577 |
#. type: TH |
| 578 |
#: debian-trixie |
| 579 |
#, no-wrap |
| 580 |
msgid "2024-06-15" |
| 581 |
msgstr "" |
| 582 |
|
| 583 |
#. type: TH |
| 584 |
#: debian-trixie |
| 585 |
#, no-wrap |
| 586 |
msgid "Linux man-pages 6.9.1" |
| 587 |
msgstr "" |
| 588 |
|
| 589 |
#. type: Plain text |
| 590 |
#: debian-trixie |
| 591 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 592 |
msgstr "" |
| 593 |
|
| 594 |
#. type: Plain text |
| 595 |
#: debian-trixie |
| 596 |
#, no-wrap |
| 597 |
msgid "" |
| 598 |
"B<int dl_iterate_phdr(>\n" |
| 599 |
"B< int (*>I<callback>B<)(struct dl_phdr_info *>I<info>B<,>\n" |
| 600 |
"B< size_t >I<size>B<, void *>I<data>B<),>\n" |
| 601 |
"B< void *>I<data>B<);>\n" |
| 602 |
msgstr "" |
| 603 |
|
| 604 |
#. type: Plain text |
| 605 |
#: debian-trixie fedora-44 fedora-rawhide |
| 606 |
#, no-wrap |
| 607 |
msgid "" |
| 608 |
"struct dl_phdr_info {\n" |
| 609 |
" ElfW(Addr) dlpi_addr; /* Base address of object */\n" |
| 610 |
" const char *dlpi_name; /* (Null-terminated) name of\n" |
| 611 |
" object */\n" |
| 612 |
" const ElfW(Phdr) *dlpi_phdr; /* Pointer to array of\n" |
| 613 |
" ELF program headers\n" |
| 614 |
" for this object */\n" |
| 615 |
" ElfW(Half) dlpi_phnum; /* # of items in I<dlpi_phdr> */\n" |
| 616 |
"\\&\n" |
| 617 |
" /* The following fields were added in glibc 2.4, after the first\n" |
| 618 |
" version of this structure was available. Check the I<size>\n" |
| 619 |
" argument passed to the dl_iterate_phdr callback to determine\n" |
| 620 |
" whether or not each later member is available. */\n" |
| 621 |
"\\&\n" |
| 622 |
" unsigned long long dlpi_adds;\n" |
| 623 |
" /* Incremented when a new object may\n" |
| 624 |
" have been added */\n" |
| 625 |
" unsigned long long dlpi_subs;\n" |
| 626 |
" /* Incremented when an object may\n" |
| 627 |
" have been removed */\n" |
| 628 |
" size_t dlpi_tls_modid;\n" |
| 629 |
" /* If there is a PT_TLS segment, its module\n" |
| 630 |
" ID as used in TLS relocations, else zero */\n" |
| 631 |
" void *dlpi_tls_data;\n" |
| 632 |
" /* The address of the calling thread\\[aq]s instance\n" |
| 633 |
" of this module\\[aq]s PT_TLS segment, if it has\n" |
| 634 |
" one and it has been allocated in the calling\n" |
| 635 |
" thread, otherwise a null pointer */\n" |
| 636 |
"};\n" |
| 637 |
msgstr "" |
| 638 |
|
| 639 |
#. type: Plain text |
| 640 |
#: debian-trixie fedora-44 fedora-rawhide |
| 641 |
#, no-wrap |
| 642 |
msgid "" |
| 643 |
"$ B<./a.out>\n" |
| 644 |
"Name: \"\" (9 segments)\n" |
| 645 |
" 0: [ 0x400040; memsz: 1f8] flags: 0x5; PT_PHDR\n" |
| 646 |
" 1: [ 0x400238; memsz: 1c] flags: 0x4; PT_INTERP\n" |
| 647 |
" 2: [ 0x400000; memsz: ac4] flags: 0x5; PT_LOAD\n" |
| 648 |
" 3: [ 0x600e10; memsz: 240] flags: 0x6; PT_LOAD\n" |
| 649 |
" 4: [ 0x600e28; memsz: 1d0] flags: 0x6; PT_DYNAMIC\n" |
| 650 |
" 5: [ 0x400254; memsz: 44] flags: 0x4; PT_NOTE\n" |
| 651 |
" 6: [ 0x400970; memsz: 3c] flags: 0x4; PT_GNU_EH_FRAME\n" |
| 652 |
" 7: [ (nil); memsz: 0] flags: 0x6; PT_GNU_STACK\n" |
| 653 |
" 8: [ 0x600e10; memsz: 1f0] flags: 0x4; PT_GNU_RELRO\n" |
| 654 |
"Name: \"linux-vdso.so.1\" (4 segments)\n" |
| 655 |
" 0: [0x7ffc6edd1000; memsz: e89] flags: 0x5; PT_LOAD\n" |
| 656 |
" 1: [0x7ffc6edd1360; memsz: 110] flags: 0x4; PT_DYNAMIC\n" |
| 657 |
" 2: [0x7ffc6edd17b0; memsz: 3c] flags: 0x4; PT_NOTE\n" |
| 658 |
" 3: [0x7ffc6edd17ec; memsz: 3c] flags: 0x4; PT_GNU_EH_FRAME\n" |
| 659 |
"Name: \"/lib64/libc.so.6\" (10 segments)\n" |
| 660 |
" 0: [0x7f55712ce040; memsz: 230] flags: 0x5; PT_PHDR\n" |
| 661 |
" 1: [0x7f557145b980; memsz: 1c] flags: 0x4; PT_INTERP\n" |
| 662 |
" 2: [0x7f55712ce000; memsz: 1b6a5c] flags: 0x5; PT_LOAD\n" |
| 663 |
" 3: [0x7f55716857a0; memsz: 9240] flags: 0x6; PT_LOAD\n" |
| 664 |
" 4: [0x7f5571688b80; memsz: 1f0] flags: 0x6; PT_DYNAMIC\n" |
| 665 |
" 5: [0x7f55712ce270; memsz: 44] flags: 0x4; PT_NOTE\n" |
| 666 |
" 6: [0x7f55716857a0; memsz: 78] flags: 0x4; PT_TLS\n" |
| 667 |
" 7: [0x7f557145b99c; memsz: 544c] flags: 0x4; PT_GNU_EH_FRAME\n" |
| 668 |
" 8: [0x7f55712ce000; memsz: 0] flags: 0x6; PT_GNU_STACK\n" |
| 669 |
" 9: [0x7f55716857a0; memsz: 3860] flags: 0x4; PT_GNU_RELRO\n" |
| 670 |
"Name: \"/lib64/ld-linux-x86-64.so.2\" (7 segments)\n" |
| 671 |
" 0: [0x7f557168f000; memsz: 20828] flags: 0x5; PT_LOAD\n" |
| 672 |
" 1: [0x7f55718afba0; memsz: 15a8] flags: 0x6; PT_LOAD\n" |
| 673 |
" 2: [0x7f55718afe10; memsz: 190] flags: 0x6; PT_DYNAMIC\n" |
| 674 |
" 3: [0x7f557168f1c8; memsz: 24] flags: 0x4; PT_NOTE\n" |
| 675 |
" 4: [0x7f55716acec4; memsz: 604] flags: 0x4; PT_GNU_EH_FRAME\n" |
| 676 |
" 5: [0x7f557168f000; memsz: 0] flags: 0x6; PT_GNU_STACK\n" |
| 677 |
" 6: [0x7f55718afba0; memsz: 460] flags: 0x4; PT_GNU_RELRO\n" |
| 678 |
msgstr "" |
| 679 |
|
| 680 |
#. type: TH |
| 681 |
#: fedora-44 fedora-rawhide |
| 682 |
#, no-wrap |
| 683 |
msgid "2024-12-13" |
| 684 |
msgstr "" |
| 685 |
|
| 686 |
#. type: TH |
| 687 |
#: fedora-44 fedora-rawhide |
| 688 |
#, no-wrap |
| 689 |
msgid "Linux man-pages 6.13" |
| 690 |
msgstr "" |
| 691 |
|
| 692 |
#. type: TH |
| 693 |
#: mageia-cauldron |
| 694 |
#, no-wrap |
| 695 |
msgid "Linux man-pages 6.17" |
| 696 |
msgstr "" |
| 697 |
|
| 698 |
#. type: TH |
| 699 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 700 |
#, no-wrap |
| 701 |
msgid "Linux man-pages (unreleased)" |
| 702 |
msgstr "" |