OSDN Git Service

(split) LDP: Update POT and ja.po to LDP v3.40.
[linuxjm/LDP_man-pages.git] / po4a / ld / po / ld.pot
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: 2012-05-01 04:38+0900\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=CHARSET\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: build/C/man3/dl_iterate_phdr.3:24
21 #, no-wrap
22 msgid "DL_ITERATE_PHDR"
23 msgstr ""
24
25 #. type: TH
26 #: build/C/man3/dl_iterate_phdr.3:24
27 #, no-wrap
28 msgid "2007-05-18"
29 msgstr ""
30
31 #. type: TH
32 #: build/C/man3/dl_iterate_phdr.3:24 build/C/man3/end.3:25 build/C/man8/ld.so.8:2 build/C/man8/ldconfig.8:22
33 #, no-wrap
34 msgid "GNU"
35 msgstr ""
36
37 #. type: TH
38 #: build/C/man3/dl_iterate_phdr.3:24 build/C/man3/dlopen.3:35 build/C/man5/elf.5:33 build/C/man3/end.3:25 build/C/man8/ld.so.8:2 build/C/man8/ldconfig.8:22 build/C/man1/ldd.1:10 build/C/man7/rtld-audit.7:26
39 #, no-wrap
40 msgid "Linux Programmer's Manual"
41 msgstr ""
42
43 #. type: SH
44 #: build/C/man3/dl_iterate_phdr.3:25 build/C/man3/dlopen.3:36 build/C/man5/elf.5:34 build/C/man3/end.3:26 build/C/man8/ld.so.8:3 build/C/man8/ldconfig.8:23 build/C/man1/ldd.1:11 build/C/man7/rtld-audit.7:27
45 #, no-wrap
46 msgid "NAME"
47 msgstr ""
48
49 #. type: Plain text
50 #: build/C/man3/dl_iterate_phdr.3:27
51 msgid "dl_iterate_phdr - walk through list of shared objects"
52 msgstr ""
53
54 #. type: SH
55 #: build/C/man3/dl_iterate_phdr.3:27 build/C/man3/dlopen.3:39 build/C/man5/elf.5:36 build/C/man3/end.3:28 build/C/man8/ld.so.8:5 build/C/man8/ldconfig.8:25 build/C/man1/ldd.1:13 build/C/man7/rtld-audit.7:29
56 #, no-wrap
57 msgid "SYNOPSIS"
58 msgstr ""
59
60 #. type: Plain text
61 #: build/C/man3/dl_iterate_phdr.3:31
62 #, no-wrap
63 msgid ""
64 "B<#define _GNU_SOURCE>         /* See feature_test_macros(7) */\n"
65 "B<#include E<lt>link.hE<gt>>\n"
66 msgstr ""
67
68 #. type: Plain text
69 #: build/C/man3/dl_iterate_phdr.3:37
70 #, no-wrap
71 msgid ""
72 "B<int dl_iterate_phdr(>\n"
73 "          B<int (*>callbackB<) (struct dl_phdr_info *>infoB<,>\n"
74 "                           B<size_t> sizeB<, void *>dataB<),>\n"
75 "          B<void *>dataB<);>\n"
76 msgstr ""
77
78 #. type: SH
79 #: build/C/man3/dl_iterate_phdr.3:38 build/C/man3/dlopen.3:51 build/C/man5/elf.5:41 build/C/man3/end.3:34 build/C/man8/ld.so.8:15 build/C/man8/ldconfig.8:54 build/C/man1/ldd.1:15 build/C/man7/rtld-audit.7:33
80 #, no-wrap
81 msgid "DESCRIPTION"
82 msgstr ""
83
84 #. type: Plain text
85 #: build/C/man3/dl_iterate_phdr.3:43
86 msgid ""
87 "The B<dl_iterate_phdr>()  function allows an application to inquire at run "
88 "time to find out which shared objects it has loaded."
89 msgstr ""
90
91 #. type: Plain text
92 #: build/C/man3/dl_iterate_phdr.3:53
93 msgid ""
94 "The B<dl_iterate_phdr>()  function walks through the list of an "
95 "application's shared objects and calls the function I<callback> once for "
96 "each object, until either all shared objects have been processed or "
97 "I<callback> returns a nonzero value."
98 msgstr ""
99
100 #. type: Plain text
101 #: build/C/man3/dl_iterate_phdr.3:70
102 msgid ""
103 "Each call to I<callback> receives three arguments: I<info>, which is a "
104 "pointer to a structure containing information about the shared object; "
105 "I<size>, which is the size of the structure pointed to by I<info>; and "
106 "I<data>, which is a copy of whatever value was passed by the calling program "
107 "as the second argument (also named I<data>)  in the call to "
108 "B<dl_iterate_phdr>()."
109 msgstr ""
110
111 #. type: Plain text
112 #: build/C/man3/dl_iterate_phdr.3:74
113 msgid "The I<info> argument is a structure of the following type:"
114 msgstr ""
115
116 #. type: Plain text
117 #: build/C/man3/dl_iterate_phdr.3:86
118 #, no-wrap
119 msgid ""
120 "struct dl_phdr_info {\n"
121 "    ElfW(Addr)        dlpi_addr;  /* Base address of object */\n"
122 "    const char       *dlpi_name;  /* (Null-terminated) name of\n"
123 "                                     object */\n"
124 "    const ElfW(Phdr) *dlpi_phdr;  /* Pointer to array of\n"
125 "                                     ELF program headers\n"
126 "                                     for this object */\n"
127 "    ElfW(Half)        dlpi_phnum; /* # of items in I<dlpi_phdr> */\n"
128 "};\n"
129 msgstr ""
130
131 #. type: Plain text
132 #: build/C/man3/dl_iterate_phdr.3:98
133 msgid ""
134 "(The I<ElfW>()  macro definition turns its argument into the name of an ELF "
135 "data type suitable for the hardware architecture.  For example, on a 32-bit "
136 "platform, ElfW(Addr) yields the data type name Elf32_Addr.  Further "
137 "information on these types can be found in the I<E<lt>elf.hE<gt>> and "
138 "I<E<lt>link.hE<gt>> header files.)"
139 msgstr ""
140
141 #. type: Plain text
142 #: build/C/man3/dl_iterate_phdr.3:109
143 msgid ""
144 "The I<dlpi_addr> field indicates the base address of the shared object "
145 "(i.e., the difference between the virtual memory address of the shared "
146 "object and the offset of that object in the file from which it was loaded).  "
147 "The I<dlpi_name> field is a null-terminated string giving the pathname from "
148 "which the shared object was loaded."
149 msgstr ""
150
151 #. type: Plain text
152 #: build/C/man3/dl_iterate_phdr.3:124
153 msgid ""
154 "To understand the meaning of the I<dlpi_phdr> and I<dlpi_phnum> fields, we "
155 "need to be aware that an ELF shared object consists of a number of segments, "
156 "each of which has a corresponding program header describing the segment.  "
157 "The I<dlpi_phdr> field is a pointer to an array of the program headers for "
158 "this shared object.  The I<dlpi_phnum> field indicates the size of this "
159 "array."
160 msgstr ""
161
162 #. type: Plain text
163 #: build/C/man3/dl_iterate_phdr.3:126
164 msgid "These program headers are structures of the following form:"
165 msgstr ""
166
167 #. type: Plain text
168 #: build/C/man3/dl_iterate_phdr.3:139
169 #, no-wrap
170 msgid ""
171 "typedef struct {\n"
172 "    Elf32_Word  p_type;    /* Segment type */\n"
173 "    Elf32_Off   p_offset;  /* Segment file offset */\n"
174 "    Elf32_Addr  p_vaddr;   /* Segment virtual address */\n"
175 "    Elf32_Addr  p_paddr;   /* Segment physical address */\n"
176 "    Elf32_Word  p_filesz;  /* Segment size in file */\n"
177 "    Elf32_Word  p_memsz;   /* Segment size in memory */\n"
178 "    Elf32_Word  p_flags;   /* Segment flags */\n"
179 "    Elf32_Word  p_align;   /* Segment alignment */\n"
180 "} Elf32_Phdr;\n"
181 msgstr ""
182
183 #. type: Plain text
184 #: build/C/man3/dl_iterate_phdr.3:145
185 msgid ""
186 "Note that we can calculate the location of a particular program header, "
187 "I<x>, in virtual memory using the formula:"
188 msgstr ""
189
190 #. type: Plain text
191 #: build/C/man3/dl_iterate_phdr.3:148
192 #, no-wrap
193 msgid "  addr == info-E<gt>dlpi_addr + info-E<gt>dlpi_phdr[x].p_vaddr;\n"
194 msgstr ""
195
196 #. type: SH
197 #: build/C/man3/dl_iterate_phdr.3:149
198 #, no-wrap
199 msgid "RETURN VALUE"
200 msgstr ""
201
202 #. type: Plain text
203 #: build/C/man3/dl_iterate_phdr.3:154
204 msgid ""
205 "The B<dl_iterate_phdr>()  function returns whatever value was returned by "
206 "the last call to I<callback>."
207 msgstr ""
208
209 #. type: SH
210 #: build/C/man3/dl_iterate_phdr.3:154
211 #, no-wrap
212 msgid "VERSIONS"
213 msgstr ""
214
215 #. type: Plain text
216 #: build/C/man3/dl_iterate_phdr.3:157
217 msgid "B<dl_iterate_phdr>()  has been supported in glibc since version 2.2.4."
218 msgstr ""
219
220 #. type: SH
221 #: build/C/man3/dl_iterate_phdr.3:157 build/C/man3/dlopen.3:381 build/C/man3/end.3:49 build/C/man7/rtld-audit.7:459
222 #, no-wrap
223 msgid "CONFORMING TO"
224 msgstr ""
225
226 #. type: Plain text
227 #: build/C/man3/dl_iterate_phdr.3:161
228 msgid ""
229 "The B<dl_iterate_phdr>()  function is Linux-specific and should be avoided "
230 "in portable applications."
231 msgstr ""
232
233 #. type: SH
234 #: build/C/man3/dl_iterate_phdr.3:161 build/C/man3/dlopen.3:446 build/C/man3/end.3:75 build/C/man7/rtld-audit.7:490
235 #, no-wrap
236 msgid "EXAMPLE"
237 msgstr ""
238
239 #. type: Plain text
240 #: build/C/man3/dl_iterate_phdr.3:166
241 msgid ""
242 "The following program displays a list of pathnames of the shared objects it "
243 "has loaded.  For each shared object, the program lists the virtual addresses "
244 "at which the object's ELF segments are loaded."
245 msgstr ""
246
247 #. type: Plain text
248 #: build/C/man3/dl_iterate_phdr.3:172
249 #, no-wrap
250 msgid ""
251 "#define _GNU_SOURCE\n"
252 "#include E<lt>link.hE<gt>\n"
253 "#include E<lt>stdlib.hE<gt>\n"
254 "#include E<lt>stdio.hE<gt>\n"
255 msgstr ""
256
257 #. type: Plain text
258 #: build/C/man3/dl_iterate_phdr.3:177
259 #, no-wrap
260 msgid ""
261 "static int\n"
262 "callback(struct dl_phdr_info *info, size_t size, void *data)\n"
263 "{\n"
264 "    int j;\n"
265 msgstr ""
266
267 #. type: Plain text
268 #: build/C/man3/dl_iterate_phdr.3:180
269 #, no-wrap
270 msgid ""
271 "    printf(\"name=%s (%d segments)\\en\", info-E<gt>dlpi_name,\n"
272 "        info-E<gt>dlpi_phnum);\n"
273 msgstr ""
274
275 #. type: Plain text
276 #: build/C/man3/dl_iterate_phdr.3:186
277 #, no-wrap
278 msgid ""
279 "    for (j = 0; j E<lt> info-E<gt>dlpi_phnum; j++)\n"
280 "         printf(\"\\et\\et header %2d: address=%10p\\en\", j,\n"
281 "             (void *) (info-E<gt>dlpi_addr + "
282 "info-E<gt>dlpi_phdr[j].p_vaddr));\n"
283 "    return 0;\n"
284 "}\n"
285 msgstr ""
286
287 #. type: Plain text
288 #: build/C/man3/dl_iterate_phdr.3:191
289 #, no-wrap
290 msgid ""
291 "int\n"
292 "main(int argc, char *argv[])\n"
293 "{\n"
294 "    dl_iterate_phdr(callback, NULL);\n"
295 msgstr ""
296
297 #. type: Plain text
298 #: build/C/man3/dl_iterate_phdr.3:194 build/C/man3/end.3:106
299 #, no-wrap
300 msgid ""
301 "    exit(EXIT_SUCCESS);\n"
302 "}\n"
303 msgstr ""
304
305 #. type: SH
306 #: build/C/man3/dl_iterate_phdr.3:195 build/C/man3/dlopen.3:507 build/C/man5/elf.5:1935 build/C/man3/end.3:107 build/C/man8/ld.so.8:409 build/C/man8/ldconfig.8:175 build/C/man1/ldd.1:75 build/C/man7/rtld-audit.7:600
307 #, no-wrap
308 msgid "SEE ALSO"
309 msgstr ""
310
311 #. type: Plain text
312 #: build/C/man3/dl_iterate_phdr.3:205
313 msgid ""
314 "B<ldd>(1), B<objdump>(1), B<readelf>(1), B<dlopen>(3), B<elf>(5), "
315 "B<ld.so>(8), and the I<Executable and Linking Format Specification> "
316 "available at various locations online."
317 msgstr ""
318
319 #. type: SH
320 #: build/C/man3/dl_iterate_phdr.3:205 build/C/man3/dlopen.3:515 build/C/man5/elf.5:1959 build/C/man3/end.3:112 build/C/man8/ld.so.8:419 build/C/man8/ldconfig.8:178 build/C/man1/ldd.1:78 build/C/man7/rtld-audit.7:605
321 #, no-wrap
322 msgid "COLOPHON"
323 msgstr ""
324
325 #. type: Plain text
326 #: build/C/man3/dl_iterate_phdr.3:212 build/C/man3/dlopen.3:522 build/C/man5/elf.5:1966 build/C/man3/end.3:119 build/C/man8/ld.so.8:426 build/C/man8/ldconfig.8:185 build/C/man1/ldd.1:85 build/C/man7/rtld-audit.7:612
327 msgid ""
328 "This page is part of release 3.40 of the Linux I<man-pages> project.  A "
329 "description of the project, and information about reporting bugs, can be "
330 "found at http://www.kernel.org/doc/man-pages/."
331 msgstr ""
332
333 #. type: TH
334 #: build/C/man3/dlopen.3:35
335 #, no-wrap
336 msgid "DLOPEN"
337 msgstr ""
338
339 #. type: TH
340 #: build/C/man3/dlopen.3:35
341 #, no-wrap
342 msgid "2008-12-06"
343 msgstr ""
344
345 #. type: TH
346 #: build/C/man3/dlopen.3:35 build/C/man5/elf.5:33 build/C/man7/rtld-audit.7:26
347 #, no-wrap
348 msgid "Linux"
349 msgstr ""
350
351 #. type: Plain text
352 #: build/C/man3/dlopen.3:39
353 msgid ""
354 "dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym - programming interface to "
355 "dynamic linking loader"
356 msgstr ""
357
358 #. type: Plain text
359 #: build/C/man3/dlopen.3:41
360 msgid "B<#include E<lt>dlfcn.hE<gt>>"
361 msgstr ""
362
363 #. type: Plain text
364 #: build/C/man3/dlopen.3:43
365 msgid "B<void *dlopen(const char *>I<filename>B<, int >I<flag>B<);>"
366 msgstr ""
367
368 #. type: Plain text
369 #: build/C/man3/dlopen.3:45
370 msgid "B<char *dlerror(void);>"
371 msgstr ""
372
373 #. type: Plain text
374 #: build/C/man3/dlopen.3:47
375 msgid "B<void *dlsym(void *>I<handle>B<, const char *>I<symbol>B<);>"
376 msgstr ""
377
378 #. type: Plain text
379 #: build/C/man3/dlopen.3:49
380 msgid "B<int dlclose(void *>I<handle>B<);>"
381 msgstr ""
382
383 #. type: Plain text
384 #: build/C/man3/dlopen.3:51
385 msgid "Link with I<-ldl>."
386 msgstr ""
387
388 #. type: Plain text
389 #: build/C/man3/dlopen.3:58
390 msgid ""
391 "The four functions B<dlopen>(), B<dlsym>(), B<dlclose>(), B<dlerror>()  "
392 "implement the interface to the dynamic linking loader."
393 msgstr ""
394
395 #. type: SS
396 #: build/C/man3/dlopen.3:58
397 #, no-wrap
398 msgid "dlerror()"
399 msgstr ""
400
401 #. type: Plain text
402 #: build/C/man3/dlopen.3:71
403 msgid ""
404 "The function B<dlerror>()  returns a human readable string describing the "
405 "most recent error that occurred from B<dlopen>(), B<dlsym>()  or "
406 "B<dlclose>()  since the last call to B<dlerror>().  It returns NULL if no "
407 "errors have occurred since initialization or since it was last called."
408 msgstr ""
409
410 #. type: SS
411 #: build/C/man3/dlopen.3:71
412 #, no-wrap
413 msgid "dlopen()"
414 msgstr ""
415
416 #. type: Plain text
417 #: build/C/man3/dlopen.3:89
418 msgid ""
419 "The function B<dlopen>()  loads the dynamic library file named by the "
420 "null-terminated string I<filename> and returns an opaque \"handle\" for the "
421 "dynamic library.  If I<filename> is NULL, then the returned handle is for "
422 "the main program.  If I<filename> contains a slash (\"/\"), then it is "
423 "interpreted as a (relative or absolute) pathname.  Otherwise, the dynamic "
424 "linker searches for the library as follows (see B<ld.so>(8)  for further "
425 "details):"
426 msgstr ""
427
428 #. type: IP
429 #: build/C/man3/dlopen.3:89 build/C/man3/dlopen.3:93 build/C/man3/dlopen.3:100 build/C/man3/dlopen.3:104 build/C/man3/dlopen.3:111 build/C/man8/ld.so.8:45 build/C/man8/ld.so.8:50 build/C/man8/ld.so.8:55 build/C/man8/ld.so.8:59 build/C/man8/ld.so.8:69
430 #, no-wrap
431 msgid "o"
432 msgstr ""
433
434 #. type: Plain text
435 #: build/C/man3/dlopen.3:93
436 msgid ""
437 "(ELF only) If the executable file for the calling program contains a "
438 "DT_RPATH tag, and does not contain a DT_RUNPATH tag, then the directories "
439 "listed in the DT_RPATH tag are searched."
440 msgstr ""
441
442 #. type: Plain text
443 #: build/C/man3/dlopen.3:100
444 msgid ""
445 "If, at the time that the program was started, the environment variable "
446 "B<LD_LIBRARY_PATH> was defined to contain a colon-separated list of "
447 "directories, then these are searched.  (As a security measure this variable "
448 "is ignored for set-user-ID and set-group-ID programs.)"
449 msgstr ""
450
451 #. type: Plain text
452 #: build/C/man3/dlopen.3:104
453 msgid ""
454 "(ELF only) If the executable file for the calling program contains a "
455 "DT_RUNPATH tag, then the directories listed in that tag are searched."
456 msgstr ""
457
458 #. type: Plain text
459 #: build/C/man3/dlopen.3:111
460 msgid ""
461 "The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8))  is "
462 "checked to see whether it contains an entry for I<filename>."
463 msgstr ""
464
465 #. type: Plain text
466 #: build/C/man3/dlopen.3:117
467 msgid "The directories I</lib> and I</usr/lib> are searched (in that order)."
468 msgstr ""
469
470 #. type: Plain text
471 #: build/C/man3/dlopen.3:123
472 msgid ""
473 "If the library has dependencies on other shared libraries, then these are "
474 "also automatically loaded by the dynamic linker using the same rules.  (This "
475 "process may occur recursively, if those libraries in turn have dependencies, "
476 "and so on.)"
477 msgstr ""
478
479 #. type: Plain text
480 #: build/C/man3/dlopen.3:126
481 msgid "One of the following two values must be included in I<flag>:"
482 msgstr ""
483
484 #. type: TP
485 #: build/C/man3/dlopen.3:126
486 #, no-wrap
487 msgid "B<RTLD_LAZY>"
488 msgstr ""
489
490 #. type: Plain text
491 #: build/C/man3/dlopen.3:134
492 msgid ""
493 "Perform lazy binding.  Only resolve symbols as the code that references them "
494 "is executed.  If the symbol is never referenced, then it is never resolved.  "
495 "(Lazy binding is only performed for function references; references to "
496 "variables are always immediately bound when the library is loaded.)"
497 msgstr ""
498
499 #. type: TP
500 #: build/C/man3/dlopen.3:134
501 #, no-wrap
502 msgid "B<RTLD_NOW>"
503 msgstr ""
504
505 #. type: Plain text
506 #: build/C/man3/dlopen.3:143
507 msgid ""
508 "If this value is specified, or the environment variable B<LD_BIND_NOW> is "
509 "set to a nonempty string, all undefined symbols in the library are resolved "
510 "before B<dlopen>()  returns.  If this cannot be done, an error is returned."
511 msgstr ""
512
513 #. type: Plain text
514 #: build/C/man3/dlopen.3:146
515 msgid "Zero or more of the following values may also be ORed in I<flag>:"
516 msgstr ""
517
518 #. type: TP
519 #: build/C/man3/dlopen.3:146
520 #, no-wrap
521 msgid "B<RTLD_GLOBAL>"
522 msgstr ""
523
524 #. type: Plain text
525 #: build/C/man3/dlopen.3:150
526 msgid ""
527 "The symbols defined by this library will be made available for symbol "
528 "resolution of subsequently loaded libraries."
529 msgstr ""
530
531 #. type: TP
532 #: build/C/man3/dlopen.3:150
533 #, no-wrap
534 msgid "B<RTLD_LOCAL>"
535 msgstr ""
536
537 #. type: Plain text
538 #: build/C/man3/dlopen.3:157
539 msgid ""
540 "This is the converse of B<RTLD_GLOBAL>, and the default if neither flag is "
541 "specified.  Symbols defined in this library are not made available to "
542 "resolve references in subsequently loaded libraries."
543 msgstr ""
544
545 #. type: TP
546 #: build/C/man3/dlopen.3:157
547 #, no-wrap
548 msgid "B<RTLD_NODELETE> (since glibc 2.2)"
549 msgstr ""
550
551 #.  (But it is present on Solaris.)
552 #. type: Plain text
553 #: build/C/man3/dlopen.3:167
554 msgid ""
555 "Do not unload the library during B<dlclose>().  Consequently, the library's "
556 "static variables are not reinitialized if the library is reloaded with "
557 "B<dlopen>()  at a later time.  This flag is not specified in POSIX.1-2001."
558 msgstr ""
559
560 #. type: TP
561 #: build/C/man3/dlopen.3:167
562 #, no-wrap
563 msgid "B<RTLD_NOLOAD> (since glibc 2.2)"
564 msgstr ""
565
566 #.  (But it is present on Solaris.)
567 #. type: Plain text
568 #: build/C/man3/dlopen.3:182
569 msgid ""
570 "Don't load the library.  This can be used to test if the library is already "
571 "resident (B<dlopen>()  returns NULL if it is not, or the library's handle if "
572 "it is resident).  This flag can also be used to promote the flags on a "
573 "library that is already loaded.  For example, a library that was previously "
574 "loaded with B<RTLD_LOCAL> can be reopened with B<RTLD_NOLOAD\\ |\\ "
575 "RTLD_GLOBAL>.  This flag is not specified in POSIX.1-2001."
576 msgstr ""
577
578 #. type: TP
579 #: build/C/man3/dlopen.3:182
580 #, no-wrap
581 msgid "B<RTLD_DEEPBIND> (since glibc 2.3.4)"
582 msgstr ""
583
584 #.  Inimitably described by UD in
585 #.  http://sources.redhat.com/ml/libc-hacker/2004-09/msg00083.html.
586 #. type: Plain text
587 #: build/C/man3/dlopen.3:192
588 msgid ""
589 "Place the lookup scope of the symbols in this library ahead of the global "
590 "scope.  This means that a self-contained library will use its own symbols in "
591 "preference to global symbols with the same name contained in libraries that "
592 "have already been loaded.  This flag is not specified in POSIX.1-2001."
593 msgstr ""
594
595 #. type: Plain text
596 #: build/C/man3/dlopen.3:204
597 msgid ""
598 "If I<filename> is a NULL pointer, then the returned handle is for the main "
599 "program.  When given to B<dlsym>(), this handle causes a search for a symbol "
600 "in the main program, followed by all shared libraries loaded at program "
601 "startup, and then all shared libraries loaded by B<dlopen>()  with the flag "
602 "B<RTLD_GLOBAL>."
603 msgstr ""
604
605 #. type: Plain text
606 #: build/C/man3/dlopen.3:214
607 msgid ""
608 "External references in the library are resolved using the libraries in that "
609 "library's dependency list and any other libraries previously opened with the "
610 "B<RTLD_GLOBAL> flag.  If the executable was linked with the flag "
611 "\"-rdynamic\" (or, synonymously, \"--export-dynamic\"), then the global "
612 "symbols in the executable will also be used to resolve references in a "
613 "dynamically loaded library."
614 msgstr ""
615
616 #. type: Plain text
617 #: build/C/man3/dlopen.3:232
618 msgid ""
619 "If the same library is loaded again with B<dlopen>(), the same file handle "
620 "is returned.  The dl library maintains reference counts for library handles, "
621 "so a dynamic library is not deallocated until B<dlclose>()  has been called "
622 "on it as many times as B<dlopen>()  has succeeded on it.  The B<_init>()  "
623 "routine, if present, is only called once.  But a subsequent call with "
624 "B<RTLD_NOW> may force symbol resolution for a library earlier loaded with "
625 "B<RTLD_LAZY>."
626 msgstr ""
627
628 #. type: Plain text
629 #: build/C/man3/dlopen.3:236
630 msgid "If B<dlopen>()  fails for any reason, it returns NULL."
631 msgstr ""
632
633 #. type: SS
634 #: build/C/man3/dlopen.3:236
635 #, no-wrap
636 msgid "dlsym()"
637 msgstr ""
638
639 #. type: Plain text
640 #: build/C/man3/dlopen.3:265
641 msgid ""
642 "The function B<dlsym>()  takes a \"handle\" of a dynamic library returned by "
643 "B<dlopen>()  and the null-terminated symbol name, returning the address "
644 "where that symbol is loaded into memory.  If the symbol is not found, in the "
645 "specified library or any of the libraries that were automatically loaded by "
646 "B<dlopen>()  when that library was loaded, B<dlsym>()  returns NULL.  (The "
647 "search performed by B<dlsym>()  is breadth first through the dependency tree "
648 "of these libraries.)  Since the value of the symbol could actually be NULL "
649 "(so that a NULL return from B<dlsym>()  need not indicate an error), the "
650 "correct way to test for an error is to call B<dlerror>()  to clear any old "
651 "error conditions, then call B<dlsym>(), and then call B<dlerror>()  again, "
652 "saving its return value into a variable, and check whether this saved value "
653 "is not NULL."
654 msgstr ""
655
656 #. type: Plain text
657 #: build/C/man3/dlopen.3:277
658 msgid ""
659 "There are two special pseudo-handles, B<RTLD_DEFAULT> and B<RTLD_NEXT>.  The "
660 "former will find the first occurrence of the desired symbol using the "
661 "default library search order.  The latter will find the next occurrence of a "
662 "function in the search order after the current library.  This allows one to "
663 "provide a wrapper around a function in another shared library."
664 msgstr ""
665
666 #. type: SS
667 #: build/C/man3/dlopen.3:277
668 #, no-wrap
669 msgid "dlclose()"
670 msgstr ""
671
672 #. type: Plain text
673 #: build/C/man3/dlopen.3:284
674 msgid ""
675 "The function B<dlclose>()  decrements the reference count on the dynamic "
676 "library handle I<handle>.  If the reference count drops to zero and no other "
677 "loaded libraries use symbols in it, then the dynamic library is unloaded."
678 msgstr ""
679
680 #. type: Plain text
681 #: build/C/man3/dlopen.3:288
682 msgid "The function B<dlclose>()  returns 0 on success, and nonzero on error."
683 msgstr ""
684
685 #. type: SS
686 #: build/C/man3/dlopen.3:288
687 #, no-wrap
688 msgid "The obsolete symbols _init() and _fini()"
689 msgstr ""
690
691 #. type: Plain text
692 #: build/C/man3/dlopen.3:306
693 msgid ""
694 "The linker recognizes special symbols B<_init> and B<_fini>.  If a dynamic "
695 "library exports a routine named B<_init>(), then that code is executed after "
696 "the loading, before B<dlopen>()  returns.  If the dynamic library exports a "
697 "routine named B<_fini>(), then that routine is called just before the "
698 "library is unloaded.  In case you need to avoid linking against the system "
699 "startup files, this can be done by using the B<gcc>(1)  I<-nostartfiles> "
700 "command-line option."
701 msgstr ""
702
703 #.  void _init(void) __attribute__((constructor));
704 #.  void _fini(void) __attribute__((destructor));
705 #. type: Plain text
706 #: build/C/man3/dlopen.3:317
707 msgid ""
708 "Using these routines, or the gcc B<-nostartfiles> or B<-nostdlib> options, "
709 "is not recommended.  Their use may result in undesired behavior, since the "
710 "constructor/destructor routines will not be executed (unless special "
711 "measures are taken)."
712 msgstr ""
713
714 #. type: Plain text
715 #: build/C/man3/dlopen.3:329
716 msgid ""
717 "Instead, libraries should export routines using the "
718 "B<__attribute__((constructor))> and B<__attribute__((destructor))> function "
719 "attributes.  See the gcc info pages for information on these.  Constructor "
720 "routines are executed before B<dlopen>()  returns, and destructor routines "
721 "are executed before B<dlclose>()  returns."
722 msgstr ""
723
724 #. type: SS
725 #: build/C/man3/dlopen.3:329
726 #, no-wrap
727 msgid "Glibc extensions: dladdr() and dlvsym()"
728 msgstr ""
729
730 #. type: Plain text
731 #: build/C/man3/dlopen.3:331
732 msgid "Glibc adds two functions not described by POSIX, with prototypes"
733 msgstr ""
734
735 #. type: Plain text
736 #: build/C/man3/dlopen.3:335
737 #, no-wrap
738 msgid ""
739 "B<#define _GNU_SOURCE>         /* See feature_test_macros(7) */\n"
740 "B<#include E<lt>dlfcn.hE<gt>>\n"
741 msgstr ""
742
743 #. type: Plain text
744 #: build/C/man3/dlopen.3:337
745 #, no-wrap
746 msgid "B<int dladdr(void *>I<addr>B<, Dl_info *>I<info>B<);>\n"
747 msgstr ""
748
749 #. type: Plain text
750 #: build/C/man3/dlopen.3:339
751 #, no-wrap
752 msgid ""
753 "B<void *dlvsym(void *>I<handle>B<, char *>I<symbol>B<, char "
754 "*>I<version>B<);>\n"
755 msgstr ""
756
757 #. type: Plain text
758 #: build/C/man3/dlopen.3:348
759 msgid ""
760 "The function B<dladdr>()  takes a function pointer and tries to resolve name "
761 "and file where it is located.  Information is stored in the I<Dl_info> "
762 "structure:"
763 msgstr ""
764
765 #. type: Plain text
766 #: build/C/man3/dlopen.3:361
767 #, no-wrap
768 msgid ""
769 "typedef struct {\n"
770 "    const char *dli_fname;  /* Pathname of shared object that\n"
771 "                               contains address */\n"
772 "    void       *dli_fbase;  /* Address at which shared object\n"
773 "                               is loaded */\n"
774 "    const char *dli_sname;  /* Name of nearest symbol with address\n"
775 "                               lower than I<addr> */\n"
776 "    void       *dli_saddr;  /* Exact address of symbol named\n"
777 "                               in I<dli_sname> */\n"
778 "} Dl_info;\n"
779 msgstr ""
780
781 #. type: Plain text
782 #: build/C/man3/dlopen.3:371
783 msgid ""
784 "If no symbol matching I<addr> could be found, then I<dli_sname> and "
785 "I<dli_saddr> are set to NULL."
786 msgstr ""
787
788 #. type: Plain text
789 #: build/C/man3/dlopen.3:374
790 msgid "B<dladdr>()  returns 0 on error, and nonzero on success."
791 msgstr ""
792
793 #. type: Plain text
794 #: build/C/man3/dlopen.3:381
795 msgid ""
796 "The function B<dlvsym>(), provided by glibc since version 2.1, does the same "
797 "as B<dlsym>()  but takes a version string as an additional argument."
798 msgstr ""
799
800 #. type: Plain text
801 #: build/C/man3/dlopen.3:388
802 msgid ""
803 "POSIX.1-2001 describes B<dlclose>(), B<dlerror>(), B<dlopen>(), and "
804 "B<dlsym>()."
805 msgstr ""
806
807 #. type: SH
808 #: build/C/man3/dlopen.3:388 build/C/man5/elf.5:1908 build/C/man3/end.3:52 build/C/man8/ld.so.8:403 build/C/man1/ldd.1:42 build/C/man7/rtld-audit.7:465
809 #, no-wrap
810 msgid "NOTES"
811 msgstr ""
812
813 #.  .LP
814 #.  The string returned by
815 #.  .BR dlerror ()
816 #.  should not be modified.
817 #.  Some systems give the prototype as
818 #.  .sp
819 #.  .in +5
820 #.  .B "const char *dlerror(void);"
821 #.  .in
822 #. type: Plain text
823 #: build/C/man3/dlopen.3:407
824 msgid ""
825 "The symbols B<RTLD_DEFAULT> and B<RTLD_NEXT> are defined by "
826 "I<E<lt>dlfcn.hE<gt>> only when B<_GNU_SOURCE> was defined before including "
827 "it."
828 msgstr ""
829
830 #. type: Plain text
831 #: build/C/man3/dlopen.3:412
832 msgid ""
833 "Since glibc 2.2.3, B<atexit>(3)  can be used to register an exit handler "
834 "that is automatically called when a library is unloaded."
835 msgstr ""
836
837 #. type: SS
838 #: build/C/man3/dlopen.3:412
839 #, no-wrap
840 msgid "History"
841 msgstr ""
842
843 #. type: Plain text
844 #: build/C/man3/dlopen.3:418
845 msgid ""
846 "The dlopen interface standard comes from SunOS.  That system also has "
847 "B<dladdr>(), but not B<dlvsym>()."
848 msgstr ""
849
850 #. type: SH
851 #: build/C/man3/dlopen.3:418 build/C/man1/ldd.1:59 build/C/man7/rtld-audit.7:590
852 #, no-wrap
853 msgid "BUGS"
854 msgstr ""
855
856 #. type: Plain text
857 #: build/C/man3/dlopen.3:430
858 msgid ""
859 "Sometimes, the function pointers you pass to B<dladdr>()  may surprise you.  "
860 "On some architectures (notably i386 and x86_64), I<dli_fname> and "
861 "I<dli_fbase> may end up pointing back at the object from which you called "
862 "B<dladdr>(), even if the function used as an argument should come from a "
863 "dynamically linked library."
864 msgstr ""
865
866 #. type: Plain text
867 #: build/C/man3/dlopen.3:446
868 msgid ""
869 "The problem is that the function pointer will still be resolved at compile "
870 "time, but merely point to the I<plt> (Procedure Linkage Table)  section of "
871 "the original object (which dispatches the call after asking the dynamic "
872 "linker to resolve the symbol).  To work around this, you can try to compile "
873 "the code to be position-independent: then, the compiler cannot prepare the "
874 "pointer at compile time anymore and today's B<gcc>(1)  will generate code "
875 "that just loads the final symbol address from the I<got> (Global Offset "
876 "Table) at run time before passing it to B<dladdr>()."
877 msgstr ""
878
879 #. type: Plain text
880 #: build/C/man3/dlopen.3:448
881 msgid "Load the math library, and print the cosine of 2.0:"
882 msgstr ""
883
884 #. type: Plain text
885 #: build/C/man3/dlopen.3:453
886 #, no-wrap
887 msgid ""
888 "#include E<lt>stdio.hE<gt>\n"
889 "#include E<lt>stdlib.hE<gt>\n"
890 "#include E<lt>dlfcn.hE<gt>\n"
891 msgstr ""
892
893 #. type: Plain text
894 #: build/C/man3/dlopen.3:460
895 #, no-wrap
896 msgid ""
897 "int\n"
898 "main(int argc, char **argv)\n"
899 "{\n"
900 "    void *handle;\n"
901 "    double (*cosine)(double);\n"
902 "    char *error;\n"
903 msgstr ""
904
905 #. type: Plain text
906 #: build/C/man3/dlopen.3:466
907 #, no-wrap
908 msgid ""
909 "    handle = dlopen(\"libm.so\", RTLD_LAZY);\n"
910 "    if (!handle) {\n"
911 "        fprintf(stderr, \"%s\\en\", dlerror());\n"
912 "        exit(EXIT_FAILURE);\n"
913 "    }\n"
914 msgstr ""
915
916 #. type: Plain text
917 #: build/C/man3/dlopen.3:468
918 #, no-wrap
919 msgid "    dlerror();    /* Clear any existing error */\n"
920 msgstr ""
921
922 #. type: Plain text
923 #: build/C/man3/dlopen.3:475
924 #, no-wrap
925 msgid ""
926 "    /* Writing: cosine = (double (*)(double)) dlsym(handle, \"cos\");\n"
927 "       would seem more natural, but the C99 standard leaves\n"
928 "       casting from \"void *\" to a function pointer undefined.\n"
929 "       The assignment used below is the POSIX.1-2003 (Technical\n"
930 "       Corrigendum 1) workaround; see the Rationale for the\n"
931 "       POSIX specification of dlsym(). */\n"
932 msgstr ""
933
934 #.  But in fact "gcc -O2 -Wall" will complain about the preceding cast.
935 #. type: Plain text
936 #: build/C/man3/dlopen.3:478
937 #, no-wrap
938 msgid "    *(void **) (&cosine) = dlsym(handle, \"cos\");\n"
939 msgstr ""
940
941 #. type: Plain text
942 #: build/C/man3/dlopen.3:483
943 #, no-wrap
944 msgid ""
945 "    if ((error = dlerror()) != NULL)  {\n"
946 "        fprintf(stderr, \"%s\\en\", error);\n"
947 "        exit(EXIT_FAILURE);\n"
948 "    }\n"
949 msgstr ""
950
951 #. type: Plain text
952 #: build/C/man3/dlopen.3:488
953 #, no-wrap
954 msgid ""
955 "    printf(\"%f\\en\", (*cosine)(2.0));\n"
956 "    dlclose(handle);\n"
957 "    exit(EXIT_SUCCESS);\n"
958 "}\n"
959 msgstr ""
960
961 #. type: Plain text
962 #: build/C/man3/dlopen.3:492
963 msgid ""
964 "If this program were in a file named \"foo.c\", you would build the program "
965 "with the following command:"
966 msgstr ""
967
968 #. type: Plain text
969 #: build/C/man3/dlopen.3:495
970 #, no-wrap
971 msgid "    gcc -rdynamic -o foo foo.c -ldl\n"
972 msgstr ""
973
974 #. type: Plain text
975 #: build/C/man3/dlopen.3:503
976 msgid ""
977 "Libraries exporting B<_init>()  and B<_fini>()  will want to be compiled as "
978 "follows, using I<bar.c> as the example name:"
979 msgstr ""
980
981 #. type: Plain text
982 #: build/C/man3/dlopen.3:506
983 #, no-wrap
984 msgid "    gcc -shared -nostartfiles -o bar bar.c\n"
985 msgstr ""
986
987 #. type: Plain text
988 #: build/C/man3/dlopen.3:515
989 msgid ""
990 "B<ld>(1), B<ldd>(1), B<dl_iterate_phdr>(3), B<rtld-audit>(7), B<ld.so>(8), "
991 "B<ldconfig>(8), ld.so info pages, gcc info pages, ld info pages"
992 msgstr ""
993
994 #. type: TH
995 #: build/C/man5/elf.5:33
996 #, no-wrap
997 msgid "ELF"
998 msgstr ""
999
1000 #. type: TH
1001 #: build/C/man5/elf.5:33
1002 #, no-wrap
1003 msgid "2010-06-19"
1004 msgstr ""
1005
1006 #. type: Plain text
1007 #: build/C/man5/elf.5:36
1008 msgid "elf - format of Executable and Linking Format (ELF) files"
1009 msgstr ""
1010
1011 #.  .B #include <elf_abi.h>
1012 #. type: Plain text
1013 #: build/C/man5/elf.5:40
1014 #, no-wrap
1015 msgid "B<#include E<lt>elf.hE<gt>>\n"
1016 msgstr ""
1017
1018 #. type: Plain text
1019 #: build/C/man5/elf.5:48
1020 msgid ""
1021 "The header file I<E<lt>elf.hE<gt>> defines the format of ELF executable "
1022 "binary files.  Amongst these files are normal executable files, relocatable "
1023 "object files, core files and shared libraries."
1024 msgstr ""
1025
1026 #. type: Plain text
1027 #: build/C/man5/elf.5:57
1028 msgid ""
1029 "An executable file using the ELF file format consists of an ELF header, "
1030 "followed by a program header table or a section header table, or both.  The "
1031 "ELF header is always at offset zero of the file.  The program header table "
1032 "and the section header table's offset in the file are defined in the ELF "
1033 "header.  The two tables describe the rest of the particularities of the "
1034 "file."
1035 msgstr ""
1036
1037 #.  Applications which wish to process ELF binary files for their native
1038 #.  architecture only should include
1039 #.  .I <elf_abi.h>
1040 #.  in their source code.
1041 #.  These applications should need to refer to
1042 #.  all the types and structures by their generic names
1043 #.  "Elf_xxx"
1044 #.  and to the macros by
1045 #.  ELF_xxx".
1046 #.  Applications written this way can be compiled on any architecture,
1047 #.  regardless of whether the host is 32-bit or 64-bit.
1048 #.  .PP
1049 #.  Should an application need to process ELF files of an unknown
1050 #.  architecture, then the application needs to explicitly use either
1051 #.  "Elf32_xxx"
1052 #.  or
1053 #.  "Elf64_xxx"
1054 #.  type and structure names.
1055 #.  Likewise, the macros need to be identified by
1056 #.  "ELF32_xxx"
1057 #.  or
1058 #.  "ELF64_xxx".
1059 #.  .PP
1060 #. type: Plain text
1061 #: build/C/man5/elf.5:84
1062 msgid ""
1063 "This header file describes the above mentioned headers as C structures and "
1064 "also includes structures for dynamic sections, relocation sections and "
1065 "symbol tables."
1066 msgstr ""
1067
1068 #. type: Plain text
1069 #: build/C/man5/elf.5:96
1070 msgid ""
1071 "The following types are used for N-bit architectures (N=32,64, I<ElfN> "
1072 "stands for I<Elf32> or I<Elf64>, I<uintN_t> stands for I<uint32_t> or "
1073 "I<uint64_t>):"
1074 msgstr ""
1075
1076 #.  Elf32_Size  Unsigned object size
1077 #. type: Plain text
1078 #: build/C/man5/elf.5:110
1079 #, no-wrap
1080 msgid ""
1081 "ElfN_Addr       Unsigned program address, uintN_t\n"
1082 "ElfN_Off        Unsigned file offset, uintN_t\n"
1083 "ElfN_Section    Unsigned section index, uint16_t\n"
1084 "ElfN_Versym     Unsigned version symbol information, uint16_t\n"
1085 "Elf_Byte        unsigned char\n"
1086 "ElfN_Half       uint16_t\n"
1087 "ElfN_Sword      int32_t\n"
1088 "ElfN_Word       uint32_t\n"
1089 "ElfN_Sxword     int64_t\n"
1090 "ElfN_Xword      uint64_t\n"
1091 msgstr ""
1092
1093 #. type: Plain text
1094 #: build/C/man5/elf.5:125
1095 msgid ""
1096 "(Note: The *BSD terminology is a bit different.  There I<Elf64_Half> is "
1097 "twice as large as I<Elf32_Half>, and I<Elf64Quarter> is used for "
1098 "I<uint16_t>.  In order to avoid confusion these types are replaced by "
1099 "explicit ones in the below.)"
1100 msgstr ""
1101
1102 #. type: Plain text
1103 #: build/C/man5/elf.5:132
1104 msgid ""
1105 "All data structures that the file format defines follow the \"natural\" size "
1106 "and alignment guidelines for the relevant class.  If necessary, data "
1107 "structures contain explicit padding to ensure 4-byte alignment for 4-byte "
1108 "objects, to force structure sizes to a multiple of 4, etc."
1109 msgstr ""
1110
1111 #. type: Plain text
1112 #: build/C/man5/elf.5:137
1113 msgid "The ELF header is described by the type I<Elf32_Ehdr> or I<Elf64_Ehdr>:"
1114 msgstr ""
1115
1116 #. type: Plain text
1117 #: build/C/man5/elf.5:141
1118 #, no-wrap
1119 msgid "#define EI_NIDENT 16\n"
1120 msgstr ""
1121
1122 #. type: Plain text
1123 #: build/C/man5/elf.5:158
1124 #, no-wrap
1125 msgid ""
1126 "typedef struct {\n"
1127 "    unsigned char e_ident[EI_NIDENT];\n"
1128 "    uint16_t      e_type;\n"
1129 "    uint16_t      e_machine;\n"
1130 "    uint32_t      e_version;\n"
1131 "    ElfN_Addr     e_entry;\n"
1132 "    ElfN_Off      e_phoff;\n"
1133 "    ElfN_Off      e_shoff;\n"
1134 "    uint32_t      e_flags;\n"
1135 "    uint16_t      e_ehsize;\n"
1136 "    uint16_t      e_phentsize;\n"
1137 "    uint16_t      e_phnum;\n"
1138 "    uint16_t      e_shentsize;\n"
1139 "    uint16_t      e_shnum;\n"
1140 "    uint16_t      e_shstrndx;\n"
1141 "} ElfN_Ehdr;\n"
1142 msgstr ""
1143
1144 #.  .Bl -tag -width "e_phentsize"
1145 #. type: Plain text
1146 #: build/C/man5/elf.5:163
1147 msgid "The fields have the following meanings:"
1148 msgstr ""
1149
1150 #. type: TP
1151 #: build/C/man5/elf.5:163
1152 #, no-wrap
1153 msgid "I<e_ident>"
1154 msgstr ""
1155
1156 #. type: Plain text
1157 #: build/C/man5/elf.5:173
1158 msgid ""
1159 "This array of bytes specifies to interpret the file, independent of the "
1160 "processor or the file's remaining contents.  Within this array everything is "
1161 "named by macros, which start with the prefix B<EI_> and may contain values "
1162 "which start with the prefix B<ELF>.  The following macros are defined:"
1163 msgstr ""
1164
1165 #. type: TP
1166 #: build/C/man5/elf.5:175
1167 #, no-wrap
1168 msgid "B<EI_MAG0>"
1169 msgstr ""
1170
1171 #. type: Plain text
1172 #: build/C/man5/elf.5:181
1173 msgid ""
1174 "The first byte of the magic number.  It must be filled with B<ELFMAG0>.  (0: "
1175 "0x7f)"
1176 msgstr ""
1177
1178 #. type: TP
1179 #: build/C/man5/elf.5:181
1180 #, no-wrap
1181 msgid "B<EI_MAG1>"
1182 msgstr ""
1183
1184 #. type: Plain text
1185 #: build/C/man5/elf.5:187
1186 msgid ""
1187 "The second byte of the magic number.  It must be filled with B<ELFMAG1>.  "
1188 "(1: \\(aqE\\(aq)"
1189 msgstr ""
1190
1191 #. type: TP
1192 #: build/C/man5/elf.5:187
1193 #, no-wrap
1194 msgid "B<EI_MAG2>"
1195 msgstr ""
1196
1197 #. type: Plain text
1198 #: build/C/man5/elf.5:193
1199 msgid ""
1200 "The third byte of the magic number.  It must be filled with B<ELFMAG2>.  (2: "
1201 "\\(aqL\\(aq)"
1202 msgstr ""
1203
1204 #. type: TP
1205 #: build/C/man5/elf.5:193
1206 #, no-wrap
1207 msgid "B<EI_MAG3>"
1208 msgstr ""
1209
1210 #. type: Plain text
1211 #: build/C/man5/elf.5:199
1212 msgid ""
1213 "The fourth byte of the magic number.  It must be filled with B<ELFMAG3>.  "
1214 "(3: \\(aqF\\(aq)"
1215 msgstr ""
1216
1217 #. type: TP
1218 #: build/C/man5/elf.5:199
1219 #, no-wrap
1220 msgid "B<EI_CLASS>"
1221 msgstr ""
1222
1223 #. type: Plain text
1224 #: build/C/man5/elf.5:202
1225 msgid "The fifth byte identifies the architecture for this binary:"
1226 msgstr ""
1227
1228 #. type: TP
1229 #: build/C/man5/elf.5:204
1230 #, no-wrap
1231 msgid "B<ELFCLASSNONE>"
1232 msgstr ""
1233
1234 #. type: Plain text
1235 #: build/C/man5/elf.5:208
1236 msgid "This class is invalid."
1237 msgstr ""
1238
1239 #. type: TP
1240 #: build/C/man5/elf.5:208
1241 #, no-wrap
1242 msgid "B<ELFCLASS32>"
1243 msgstr ""
1244
1245 #. type: Plain text
1246 #: build/C/man5/elf.5:213
1247 msgid ""
1248 "This defines the 32-bit architecture.  It supports machines with files and "
1249 "virtual address spaces up to 4 Gigabytes."
1250 msgstr ""
1251
1252 #. type: TP
1253 #: build/C/man5/elf.5:213
1254 #, no-wrap
1255 msgid "B<ELFCLASS64>"
1256 msgstr ""
1257
1258 #. type: Plain text
1259 #: build/C/man5/elf.5:216
1260 msgid "This defines the 64-bit architecture."
1261 msgstr ""
1262
1263 #. type: TP
1264 #: build/C/man5/elf.5:219
1265 #, no-wrap
1266 msgid "B<EI_DATA>"
1267 msgstr ""
1268
1269 #.  .Bl -tag -width "ELFDATA2LSB" -compact
1270 #. type: Plain text
1271 #: build/C/man5/elf.5:225
1272 msgid ""
1273 "The sixth byte specifies the data encoding of the processor-specific data in "
1274 "the file.  Currently these encodings are supported:"
1275 msgstr ""
1276
1277 #. type: TP
1278 #: build/C/man5/elf.5:226
1279 #, no-wrap
1280 msgid "B<ELFDATANONE>"
1281 msgstr ""
1282
1283 #. type: Plain text
1284 #: build/C/man5/elf.5:230
1285 msgid "Unknown data format."
1286 msgstr ""
1287
1288 #. type: TP
1289 #: build/C/man5/elf.5:230
1290 #, no-wrap
1291 msgid "B<ELFDATA2LSB>"
1292 msgstr ""
1293
1294 #. type: Plain text
1295 #: build/C/man5/elf.5:233
1296 msgid "Two's complement, little-endian."
1297 msgstr ""
1298
1299 #. type: TP
1300 #: build/C/man5/elf.5:233
1301 #, no-wrap
1302 msgid "B<ELFDATA2MSB>"
1303 msgstr ""
1304
1305 #. type: Plain text
1306 #: build/C/man5/elf.5:236
1307 msgid "Two's complement, big-endian."
1308 msgstr ""
1309
1310 #. type: TP
1311 #: build/C/man5/elf.5:239
1312 #, no-wrap
1313 msgid "B<EI_VERSION>"
1314 msgstr ""
1315
1316 #.  .Bl -tag -width "EV_CURRENT" -compact
1317 #. type: Plain text
1318 #: build/C/man5/elf.5:244
1319 msgid "The version number of the ELF specification:"
1320 msgstr ""
1321
1322 #. type: TP
1323 #: build/C/man5/elf.5:245 build/C/man5/elf.5:498
1324 #, no-wrap
1325 msgid "B<EV_NONE>"
1326 msgstr ""
1327
1328 #. type: Plain text
1329 #: build/C/man5/elf.5:248 build/C/man5/elf.5:502
1330 msgid "Invalid version."
1331 msgstr ""
1332
1333 #. type: TP
1334 #: build/C/man5/elf.5:248 build/C/man5/elf.5:502
1335 #, no-wrap
1336 msgid "B<EV_CURRENT>"
1337 msgstr ""
1338
1339 #.  .El
1340 #. type: Plain text
1341 #: build/C/man5/elf.5:251 build/C/man5/elf.5:506
1342 msgid "Current version."
1343 msgstr ""
1344
1345 #. type: TP
1346 #: build/C/man5/elf.5:254
1347 #, no-wrap
1348 msgid "B<EI_OSABI>"
1349 msgstr ""
1350
1351 #.  .Bl -tag -width "ELFOSABI_STANDALONE" -compact
1352 #. type: Plain text
1353 #: build/C/man5/elf.5:263
1354 msgid ""
1355 "This byte identifies the operating system and ABI to which the object is "
1356 "targeted.  Some fields in other ELF structures have flags and values that "
1357 "have platform-specific meanings; the interpretation of those fields is "
1358 "determined by the value of this byte.  E.g.:"
1359 msgstr ""
1360
1361 #. type: TP
1362 #: build/C/man5/elf.5:264
1363 #, no-wrap
1364 msgid "B<ELFOSABI_NONE>"
1365 msgstr ""
1366
1367 #.  0
1368 #. type: Plain text
1369 #: build/C/man5/elf.5:269
1370 msgid "Same as ELFOSABI_SYSV"
1371 msgstr ""
1372
1373 #. type: TP
1374 #: build/C/man5/elf.5:269
1375 #, no-wrap
1376 msgid "B<ELFOSABI_SYSV>"
1377 msgstr ""
1378
1379 #.  0
1380 #.  synonym: ELFOSABI_NONE
1381 #. type: Plain text
1382 #: build/C/man5/elf.5:274
1383 msgid "UNIX System V ABI."
1384 msgstr ""
1385
1386 #. type: TP
1387 #: build/C/man5/elf.5:274
1388 #, no-wrap
1389 msgid "B<ELFOSABI_HPUX>"
1390 msgstr ""
1391
1392 #.  1
1393 #. type: Plain text
1394 #: build/C/man5/elf.5:278
1395 msgid "HP-UX ABI."
1396 msgstr ""
1397
1398 #. type: TP
1399 #: build/C/man5/elf.5:278
1400 #, no-wrap
1401 msgid "B<ELFOSABI_NETBSD>"
1402 msgstr ""
1403
1404 #.  2
1405 #. type: Plain text
1406 #: build/C/man5/elf.5:282
1407 msgid "NetBSD ABI."
1408 msgstr ""
1409
1410 #. type: TP
1411 #: build/C/man5/elf.5:282
1412 #, no-wrap
1413 msgid "B<ELFOSABI_LINUX>"
1414 msgstr ""
1415
1416 #.  3
1417 #.  .TP
1418 #.  .BR ELFOSABI_HURD
1419 #.  Hurd ABI.
1420 #.  4
1421 #.  .TP
1422 #.  .BR ELFOSABI_86OPEN
1423 #.  86Open Common IA32 ABI.
1424 #.  5
1425 #. type: Plain text
1426 #: build/C/man5/elf.5:294
1427 msgid "Linux ABI."
1428 msgstr ""
1429
1430 #. type: TP
1431 #: build/C/man5/elf.5:294
1432 #, no-wrap
1433 msgid "B<ELFOSABI_SOLARIS>"
1434 msgstr ""
1435
1436 #.  6
1437 #.  .TP
1438 #.  .BR ELFOSABI_MONTEREY
1439 #.  Monterey project ABI. Now replaced by
1440 #.  ELFOSABI_AIX
1441 #.  7
1442 #. type: Plain text
1443 #: build/C/man5/elf.5:303
1444 msgid "Solaris ABI."
1445 msgstr ""
1446
1447 #. type: TP
1448 #: build/C/man5/elf.5:303
1449 #, no-wrap
1450 msgid "B<ELFOSABI_IRIX>"
1451 msgstr ""
1452
1453 #.  8
1454 #. type: Plain text
1455 #: build/C/man5/elf.5:307
1456 msgid "IRIX ABI."
1457 msgstr ""
1458
1459 #. type: TP
1460 #: build/C/man5/elf.5:307
1461 #, no-wrap
1462 msgid "B<ELFOSABI_FREEBSD>"
1463 msgstr ""
1464
1465 #.  9
1466 #. type: Plain text
1467 #: build/C/man5/elf.5:311
1468 msgid "FreeBSD ABI."
1469 msgstr ""
1470
1471 #. type: TP
1472 #: build/C/man5/elf.5:311
1473 #, no-wrap
1474 msgid "B<ELFOSABI_TRU64>"
1475 msgstr ""
1476
1477 #.  10
1478 #.  ELFOSABI_MODESTO
1479 #.  11
1480 #.  ELFOSABI_OPENBSD
1481 #.  12
1482 #. type: Plain text
1483 #: build/C/man5/elf.5:319
1484 msgid "TRU64 UNIX ABI."
1485 msgstr ""
1486
1487 #. type: TP
1488 #: build/C/man5/elf.5:319
1489 #, no-wrap
1490 msgid "B<ELFOSABI_ARM>"
1491 msgstr ""
1492
1493 #.  97
1494 #. type: Plain text
1495 #: build/C/man5/elf.5:323
1496 msgid "ARM architecture ABI."
1497 msgstr ""
1498
1499 #. type: TP
1500 #: build/C/man5/elf.5:323
1501 #, no-wrap
1502 msgid "B<ELFOSABI_STANDALONE>"
1503 msgstr ""
1504
1505 #.  255
1506 #.  .El
1507 #. type: Plain text
1508 #: build/C/man5/elf.5:328
1509 msgid "Stand-alone (embedded) ABI."
1510 msgstr ""
1511
1512 #. type: TP
1513 #: build/C/man5/elf.5:330
1514 #, no-wrap
1515 msgid "B<EI_ABIVERSION>"
1516 msgstr ""
1517
1518 #. type: Plain text
1519 #: build/C/man5/elf.5:340
1520 msgid ""
1521 "This byte identifies the version of the ABI to which the object is "
1522 "targeted.  This field is used to distinguish among incompatible versions of "
1523 "an ABI.  The interpretation of this version number is dependent on the ABI "
1524 "identified by the B<EI_OSABI> field.  Applications conforming to this "
1525 "specification use the value 0."
1526 msgstr ""
1527
1528 #. type: TP
1529 #: build/C/man5/elf.5:340
1530 #, no-wrap
1531 msgid "B<EI_PAD>"
1532 msgstr ""
1533
1534 #.  As reported by Yuri Kozlov and confirmed by Mike Frysinger, EI_BRAND is
1535 #.  not in GABI (http://www.sco.com/developers/gabi/latest/ch4.eheader.html)
1536 #.  It looks to be a BSDism
1537 #.  .TP
1538 #.  .BR EI_BRAND
1539 #.  Start of architecture identification.
1540 #. type: Plain text
1541 #: build/C/man5/elf.5:356
1542 msgid ""
1543 "Start of padding.  These bytes are reserved and set to zero.  Programs which "
1544 "read them should ignore them.  The value for B<EI_PAD> will change in the "
1545 "future if currently unused bytes are given meanings."
1546 msgstr ""
1547
1548 #. type: TP
1549 #: build/C/man5/elf.5:356
1550 #, no-wrap
1551 msgid "B<EI_NIDENT>"
1552 msgstr ""
1553
1554 #.  .El
1555 #. type: Plain text
1556 #: build/C/man5/elf.5:362
1557 msgid "The size of the I<e_ident> array."
1558 msgstr ""
1559
1560 #. type: TP
1561 #: build/C/man5/elf.5:363
1562 #, no-wrap
1563 msgid "I<e_type>"
1564 msgstr ""
1565
1566 #. type: Plain text
1567 #: build/C/man5/elf.5:366
1568 msgid "This member of the structure identifies the object file type:"
1569 msgstr ""
1570
1571 #. type: TP
1572 #: build/C/man5/elf.5:368
1573 #, no-wrap
1574 msgid "B<ET_NONE>"
1575 msgstr ""
1576
1577 #. type: Plain text
1578 #: build/C/man5/elf.5:372
1579 msgid "An unknown type."
1580 msgstr ""
1581
1582 #. type: TP
1583 #: build/C/man5/elf.5:372
1584 #, no-wrap
1585 msgid "B<ET_REL>"
1586 msgstr ""
1587
1588 #. type: Plain text
1589 #: build/C/man5/elf.5:375
1590 msgid "A relocatable file."
1591 msgstr ""
1592
1593 #. type: TP
1594 #: build/C/man5/elf.5:375
1595 #, no-wrap
1596 msgid "B<ET_EXEC>"
1597 msgstr ""
1598
1599 #. type: Plain text
1600 #: build/C/man5/elf.5:378
1601 msgid "An executable file."
1602 msgstr ""
1603
1604 #. type: TP
1605 #: build/C/man5/elf.5:378
1606 #, no-wrap
1607 msgid "B<ET_DYN>"
1608 msgstr ""
1609
1610 #. type: Plain text
1611 #: build/C/man5/elf.5:381
1612 msgid "A shared object."
1613 msgstr ""
1614
1615 #. type: TP
1616 #: build/C/man5/elf.5:381
1617 #, no-wrap
1618 msgid "B<ET_CORE>"
1619 msgstr ""
1620
1621 #. type: Plain text
1622 #: build/C/man5/elf.5:384
1623 msgid "A core file."
1624 msgstr ""
1625
1626 #. type: TP
1627 #: build/C/man5/elf.5:387
1628 #, no-wrap
1629 msgid "I<e_machine>"
1630 msgstr ""
1631
1632 #. type: Plain text
1633 #: build/C/man5/elf.5:391
1634 msgid ""
1635 "This member specifies the required architecture for an individual file.  "
1636 "E.g.:"
1637 msgstr ""
1638
1639 #. type: TP
1640 #: build/C/man5/elf.5:393
1641 #, no-wrap
1642 msgid "B<EM_NONE>"
1643 msgstr ""
1644
1645 #.  0
1646 #. type: Plain text
1647 #: build/C/man5/elf.5:398
1648 msgid "An unknown machine."
1649 msgstr ""
1650
1651 #. type: TP
1652 #: build/C/man5/elf.5:398
1653 #, no-wrap
1654 msgid "B<EM_M32>"
1655 msgstr ""
1656
1657 #.  1
1658 #. type: Plain text
1659 #: build/C/man5/elf.5:402
1660 msgid "AT&T WE 32100."
1661 msgstr ""
1662
1663 #. type: TP
1664 #: build/C/man5/elf.5:402
1665 #, no-wrap
1666 msgid "B<EM_SPARC>"
1667 msgstr ""
1668
1669 #.  2
1670 #. type: Plain text
1671 #: build/C/man5/elf.5:406
1672 msgid "Sun Microsystems SPARC."
1673 msgstr ""
1674
1675 #. type: TP
1676 #: build/C/man5/elf.5:406
1677 #, no-wrap
1678 msgid "B<EM_386>"
1679 msgstr ""
1680
1681 #.  3
1682 #. type: Plain text
1683 #: build/C/man5/elf.5:410
1684 msgid "Intel 80386."
1685 msgstr ""
1686
1687 #. type: TP
1688 #: build/C/man5/elf.5:410
1689 #, no-wrap
1690 msgid "B<EM_68K>"
1691 msgstr ""
1692
1693 #.  4
1694 #. type: Plain text
1695 #: build/C/man5/elf.5:414
1696 msgid "Motorola 68000."
1697 msgstr ""
1698
1699 #. type: TP
1700 #: build/C/man5/elf.5:414
1701 #, no-wrap
1702 msgid "B<EM_88K>"
1703 msgstr ""
1704
1705 #.  5
1706 #.  .TP
1707 #.  .BR EM_486
1708 #.  Intel 80486.
1709 #.  6
1710 #. type: Plain text
1711 #: build/C/man5/elf.5:422
1712 msgid "Motorola 88000."
1713 msgstr ""
1714
1715 #. type: TP
1716 #: build/C/man5/elf.5:422
1717 #, no-wrap
1718 msgid "B<EM_860>"
1719 msgstr ""
1720
1721 #.  7
1722 #. type: Plain text
1723 #: build/C/man5/elf.5:426
1724 msgid "Intel 80860."
1725 msgstr ""
1726
1727 #. type: TP
1728 #: build/C/man5/elf.5:426
1729 #, no-wrap
1730 msgid "B<EM_MIPS>"
1731 msgstr ""
1732
1733 #.  8
1734 #.  EM_S370
1735 #.  9
1736 #.  .TP
1737 #.  .BR EM_MIPS_RS4_BE
1738 #.  MIPS RS4000 (big-endian only). Deprecated.
1739 #.  10
1740 #.  EM_MIPS_RS3_LE (MIPS R3000 little-endian)
1741 #.  10
1742 #. type: Plain text
1743 #: build/C/man5/elf.5:438
1744 msgid "MIPS RS3000 (big-endian only)."
1745 msgstr ""
1746
1747 #. type: TP
1748 #: build/C/man5/elf.5:438
1749 #, no-wrap
1750 msgid "B<EM_PARISC>"
1751 msgstr ""
1752
1753 #.  15
1754 #. type: Plain text
1755 #: build/C/man5/elf.5:442
1756 msgid "HP/PA."
1757 msgstr ""
1758
1759 #. type: TP
1760 #: build/C/man5/elf.5:442
1761 #, no-wrap
1762 msgid "B<EM_SPARC32PLUS>"
1763 msgstr ""
1764
1765 #.  18
1766 #. type: Plain text
1767 #: build/C/man5/elf.5:446
1768 msgid "SPARC with enhanced instruction set."
1769 msgstr ""
1770
1771 #. type: TP
1772 #: build/C/man5/elf.5:446
1773 #, no-wrap
1774 msgid "B<EM_PPC>"
1775 msgstr ""
1776
1777 #.  20
1778 #. type: Plain text
1779 #: build/C/man5/elf.5:450
1780 msgid "PowerPC."
1781 msgstr ""
1782
1783 #. type: TP
1784 #: build/C/man5/elf.5:450
1785 #, no-wrap
1786 msgid "B<EM_PPC64>"
1787 msgstr ""
1788
1789 #.  21
1790 #. type: Plain text
1791 #: build/C/man5/elf.5:454
1792 msgid "PowerPC 64-bit."
1793 msgstr ""
1794
1795 #. type: TP
1796 #: build/C/man5/elf.5:454
1797 #, no-wrap
1798 msgid "B<EM_S390>"
1799 msgstr ""
1800
1801 #.  22
1802 #. type: Plain text
1803 #: build/C/man5/elf.5:458
1804 msgid "IBM S/390"
1805 msgstr ""
1806
1807 #. type: TP
1808 #: build/C/man5/elf.5:458
1809 #, no-wrap
1810 msgid "B<EM_ARM>"
1811 msgstr ""
1812
1813 #.  40
1814 #. type: Plain text
1815 #: build/C/man5/elf.5:462
1816 msgid "Advanced RISC Machines"
1817 msgstr ""
1818
1819 #. type: TP
1820 #: build/C/man5/elf.5:462
1821 #, no-wrap
1822 msgid "B<EM_SH>"
1823 msgstr ""
1824
1825 #.  42
1826 #. type: Plain text
1827 #: build/C/man5/elf.5:466
1828 msgid "Renesas SuperH"
1829 msgstr ""
1830
1831 #. type: TP
1832 #: build/C/man5/elf.5:466
1833 #, no-wrap
1834 msgid "B<EM_SPARCV9>"
1835 msgstr ""
1836
1837 #.  43
1838 #. type: Plain text
1839 #: build/C/man5/elf.5:470
1840 msgid "SPARC v9 64-bit."
1841 msgstr ""
1842
1843 #. type: TP
1844 #: build/C/man5/elf.5:470
1845 #, no-wrap
1846 msgid "B<EM_IA_64>"
1847 msgstr ""
1848
1849 #.  50
1850 #. type: Plain text
1851 #: build/C/man5/elf.5:474
1852 msgid "Intel Itanium"
1853 msgstr ""
1854
1855 #. type: TP
1856 #: build/C/man5/elf.5:474
1857 #, no-wrap
1858 msgid "B<EM_X86_64>"
1859 msgstr ""
1860
1861 #.  62
1862 #. type: Plain text
1863 #: build/C/man5/elf.5:478
1864 msgid "AMD x86-64"
1865 msgstr ""
1866
1867 #. type: TP
1868 #: build/C/man5/elf.5:478
1869 #, no-wrap
1870 msgid "B<EM_VAX>"
1871 msgstr ""
1872
1873 #.  75
1874 #.  EM_CRIS
1875 #.  76
1876 #.  .TP
1877 #.  .BR EM_ALPHA
1878 #.  Compaq [DEC] Alpha.
1879 #.  .TP
1880 #.  .BR EM_ALPHA_EXP
1881 #.  Compaq [DEC] Alpha with enhanced instruction set.
1882 #. type: Plain text
1883 #: build/C/man5/elf.5:490
1884 msgid "DEC Vax."
1885 msgstr ""
1886
1887 #. type: TP
1888 #: build/C/man5/elf.5:493
1889 #, no-wrap
1890 msgid "I<e_version>"
1891 msgstr ""
1892
1893 #.  .Bl -tag -width "EV_CURRENT" -compact
1894 #. type: Plain text
1895 #: build/C/man5/elf.5:497
1896 msgid "This member identifies the file version:"
1897 msgstr ""
1898
1899 #. type: TP
1900 #: build/C/man5/elf.5:508
1901 #, no-wrap
1902 msgid "I<e_entry>"
1903 msgstr ""
1904
1905 #. type: Plain text
1906 #: build/C/man5/elf.5:514
1907 msgid ""
1908 "This member gives the virtual address to which the system first transfers "
1909 "control, thus starting the process.  If the file has no associated entry "
1910 "point, this member holds zero."
1911 msgstr ""
1912
1913 #. type: TP
1914 #: build/C/man5/elf.5:514
1915 #, no-wrap
1916 msgid "I<e_phoff>"
1917 msgstr ""
1918
1919 #. type: Plain text
1920 #: build/C/man5/elf.5:519
1921 msgid ""
1922 "This member holds the program header table's file offset in bytes.  If the "
1923 "file has no program header table, this member holds zero."
1924 msgstr ""
1925
1926 #. type: TP
1927 #: build/C/man5/elf.5:519
1928 #, no-wrap
1929 msgid "I<e_shoff>"
1930 msgstr ""
1931
1932 #. type: Plain text
1933 #: build/C/man5/elf.5:524
1934 msgid ""
1935 "This member holds the section header table's file offset in bytes.  If the "
1936 "file has no section header table this member holds zero."
1937 msgstr ""
1938
1939 #. type: TP
1940 #: build/C/man5/elf.5:524
1941 #, no-wrap
1942 msgid "I<e_flags>"
1943 msgstr ""
1944
1945 #. type: Plain text
1946 #: build/C/man5/elf.5:529
1947 msgid ""
1948 "This member holds processor-specific flags associated with the file.  Flag "
1949 "names take the form EF_`machine_flag'.  Currently no flags have been "
1950 "defined."
1951 msgstr ""
1952
1953 #. type: TP
1954 #: build/C/man5/elf.5:529
1955 #, no-wrap
1956 msgid "I<e_ehsize>"
1957 msgstr ""
1958
1959 #. type: Plain text
1960 #: build/C/man5/elf.5:532
1961 msgid "This member holds the ELF header's size in bytes."
1962 msgstr ""
1963
1964 #. type: TP
1965 #: build/C/man5/elf.5:532
1966 #, no-wrap
1967 msgid "I<e_phentsize>"
1968 msgstr ""
1969
1970 #. type: Plain text
1971 #: build/C/man5/elf.5:536
1972 msgid ""
1973 "This member holds the size in bytes of one entry in the file's program "
1974 "header table; all entries are the same size."
1975 msgstr ""
1976
1977 #. type: TP
1978 #: build/C/man5/elf.5:536
1979 #, no-wrap
1980 msgid "I<e_phnum>"
1981 msgstr ""
1982
1983 #. type: Plain text
1984 #: build/C/man5/elf.5:549
1985 msgid ""
1986 "This member holds the number of entries in the program header table.  Thus "
1987 "the product of I<e_phentsize> and I<e_phnum> gives the table's size in "
1988 "bytes.  If a file has no program header, I<e_phnum> holds the value zero."
1989 msgstr ""
1990
1991 #.  This is a Linux extension, added in Linux 2.6.34.
1992 #.  .Bl -tag -width "PN_XNUM"
1993 #. type: Plain text
1994 #: build/C/man5/elf.5:563
1995 msgid ""
1996 "If the number of entries in the program header table is larger than or equal "
1997 "to B<PN_XNUM> (0xffff), this member holds B<PN_XNUM> (0xffff) and the real "
1998 "number of entries in the program header table is held in the I<sh_info> "
1999 "member of the initial entry in section header table.  Otherwise, the "
2000 "I<sh_info> member of the initial entry contains the value zero."
2001 msgstr ""
2002
2003 #. type: TP
2004 #: build/C/man5/elf.5:564
2005 #, no-wrap
2006 msgid "B<PN_XNUM>"
2007 msgstr ""
2008
2009 #. type: Plain text
2010 #: build/C/man5/elf.5:569
2011 msgid ""
2012 "This is defined as 0xffff, the largest number I<e_phnum> can have, "
2013 "specifying where the actual number of program headers is assigned."
2014 msgstr ""
2015
2016 #. type: TP
2017 #: build/C/man5/elf.5:573
2018 #, no-wrap
2019 msgid "I<e_shentsize>"
2020 msgstr ""
2021
2022 #. type: Plain text
2023 #: build/C/man5/elf.5:578
2024 msgid ""
2025 "This member holds a sections header's size in bytes.  A section header is "
2026 "one entry in the section header table; all entries are the same size."
2027 msgstr ""
2028
2029 #. type: TP
2030 #: build/C/man5/elf.5:578
2031 #, no-wrap
2032 msgid "I<e_shnum>"
2033 msgstr ""
2034
2035 #. type: Plain text
2036 #: build/C/man5/elf.5:591
2037 msgid ""
2038 "This member holds the number of entries in the section header table.  Thus "
2039 "the product of I<e_shentsize> and I<e_shnum> gives the section header "
2040 "table's size in bytes.  If a file has no section header table, I<e_shnum> "
2041 "holds the value of zero."
2042 msgstr ""
2043
2044 #. type: Plain text
2045 #: build/C/man5/elf.5:603
2046 msgid ""
2047 "If the number of entries in the section header table is larger than or equal "
2048 "to B<SHN_LORESERVE> (0xff00), I<e_shnum> holds the value zero and the real "
2049 "number of entries in the section header table is held in the I<sh_size> "
2050 "member of the initial entry in section header table.  Otherwise, the "
2051 "I<sh_size> member of the initial entry in the section header table holds the "
2052 "value zero."
2053 msgstr ""
2054
2055 #. type: TP
2056 #: build/C/man5/elf.5:603
2057 #, no-wrap
2058 msgid "I<e_shstrndx>"
2059 msgstr ""
2060
2061 #. type: Plain text
2062 #: build/C/man5/elf.5:610
2063 msgid ""
2064 "This member holds the section header table index of the entry associated "
2065 "with the section name string table.  If the file has no section name string "
2066 "table, this member holds the value B<SHN_UNDEF>."
2067 msgstr ""
2068
2069 #. type: Plain text
2070 #: build/C/man5/elf.5:621
2071 msgid ""
2072 "If the index of section name string table section is larger than or equal to "
2073 "B<SHN_LORESERVE> (0xff00), this member holds B<SHN_XINDEX> (0xffff) and the "
2074 "real index of the section name string table section is held in the "
2075 "I<sh_link> member of the initial entry in section header table. Otherwise, "
2076 "the I<sh_link> member of the initial entry in section header table contains "
2077 "the value zero."
2078 msgstr ""
2079
2080 #. type: TP
2081 #: build/C/man5/elf.5:623 build/C/man5/elf.5:910
2082 #, no-wrap
2083 msgid "B<SHN_UNDEF>"
2084 msgstr ""
2085
2086 #. type: Plain text
2087 #: build/C/man5/elf.5:632
2088 msgid ""
2089 "This value marks an undefined, missing, irrelevant, or otherwise meaningless "
2090 "section reference.  For example, a symbol \"defined\" relative to section "
2091 "number B<SHN_UNDEF> is an undefined symbol."
2092 msgstr ""
2093
2094 #. type: TP
2095 #: build/C/man5/elf.5:632 build/C/man5/elf.5:914
2096 #, no-wrap
2097 msgid "B<SHN_LORESERVE>"
2098 msgstr ""
2099
2100 #. type: Plain text
2101 #: build/C/man5/elf.5:635 build/C/man5/elf.5:917
2102 msgid "This value specifies the lower bound of the range of reserved indices."
2103 msgstr ""
2104
2105 #. type: TP
2106 #: build/C/man5/elf.5:635 build/C/man5/elf.5:917
2107 #, no-wrap
2108 msgid "B<SHN_LOPROC>"
2109 msgstr ""
2110
2111 #. type: Plain text
2112 #: build/C/man5/elf.5:640 build/C/man5/elf.5:922
2113 msgid ""
2114 "Values greater than or equal to B<SHN_HIPROC> are reserved for "
2115 "processor-specific semantics."
2116 msgstr ""
2117
2118 #. type: TP
2119 #: build/C/man5/elf.5:640 build/C/man5/elf.5:922
2120 #, no-wrap
2121 msgid "B<SHN_HIPROC>"
2122 msgstr ""
2123
2124 #. type: Plain text
2125 #: build/C/man5/elf.5:645 build/C/man5/elf.5:927
2126 msgid ""
2127 "Values less than or equal to B<SHN_LOPROC> are reserved for "
2128 "processor-specific semantics."
2129 msgstr ""
2130
2131 #. type: TP
2132 #: build/C/man5/elf.5:645 build/C/man5/elf.5:927
2133 #, no-wrap
2134 msgid "B<SHN_ABS>"
2135 msgstr ""
2136
2137 #. type: Plain text
2138 #: build/C/man5/elf.5:652
2139 msgid ""
2140 "This value specifies absolute values for the corresponding reference.  For "
2141 "example, symbols defined relative to section number B<SHN_ABS> have absolute "
2142 "values and are not affected by relocation."
2143 msgstr ""
2144
2145 #. type: TP
2146 #: build/C/man5/elf.5:652 build/C/man5/elf.5:934
2147 #, no-wrap
2148 msgid "B<SHN_COMMON>"
2149 msgstr ""
2150
2151 #. type: Plain text
2152 #: build/C/man5/elf.5:656
2153 msgid ""
2154 "Symbols defined relative to this section are common symbols, such as Fortran "
2155 "COMMON or unallocated C external variables."
2156 msgstr ""
2157
2158 #. type: TP
2159 #: build/C/man5/elf.5:656 build/C/man5/elf.5:938
2160 #, no-wrap
2161 msgid "B<SHN_HIRESERVE>"
2162 msgstr ""
2163
2164 #. type: Plain text
2165 #: build/C/man5/elf.5:669
2166 msgid ""
2167 "This value specifies the upper bound of the range of reserved indices "
2168 "between B<SHN_LORESERVE> and B<SHN_HIRESERVE>, inclusive; the values do not "
2169 "reference the section header table.  That is, the section header table does "
2170 "I<not> contain entries for the reserved indices."
2171 msgstr ""
2172
2173 #. type: Plain text
2174 #: build/C/man5/elf.5:691
2175 msgid ""
2176 "An executable or shared object file's program header table is an array of "
2177 "structures, each describing a segment or other information the system needs "
2178 "to prepare the program for execution.  An object file I<segment> contains "
2179 "one or more I<sections>.  Program headers are meaningful only for executable "
2180 "and shared object files.  A file specifies its own program header size with "
2181 "the ELF header's I<e_phentsize> and I<e_phnum> members.  The ELF program "
2182 "header is described by the type I<Elf32_Phdr> or I<Elf64_Phdr> depending on "
2183 "the architecture:"
2184 msgstr ""
2185
2186 #. type: Plain text
2187 #: build/C/man5/elf.5:704
2188 #, no-wrap
2189 msgid ""
2190 "typedef struct {\n"
2191 "    uint32_t   p_type;\n"
2192 "    Elf32_Off  p_offset;\n"
2193 "    Elf32_Addr p_vaddr;\n"
2194 "    Elf32_Addr p_paddr;\n"
2195 "    uint32_t   p_filesz;\n"
2196 "    uint32_t   p_memsz;\n"
2197 "    uint32_t   p_flags;\n"
2198 "    uint32_t   p_align;\n"
2199 "} Elf32_Phdr;\n"
2200 msgstr ""
2201
2202 #. type: Plain text
2203 #: build/C/man5/elf.5:719
2204 #, no-wrap
2205 msgid ""
2206 "typedef struct {\n"
2207 "    uint32_t   p_type;\n"
2208 "    uint32_t   p_flags;\n"
2209 "    Elf64_Off  p_offset;\n"
2210 "    Elf64_Addr p_vaddr;\n"
2211 "    Elf64_Addr p_paddr;\n"
2212 "    uint64_t   p_filesz;\n"
2213 "    uint64_t   p_memsz;\n"
2214 "    uint64_t   p_align;\n"
2215 "} Elf64_Phdr;\n"
2216 msgstr ""
2217
2218 #.  .Bl -tag -width "p_offset"
2219 #. type: Plain text
2220 #: build/C/man5/elf.5:727
2221 msgid ""
2222 "The main difference between the 32-bit and the 64-bit program header lies in "
2223 "the location of the I<p_flags> member in the total struct."
2224 msgstr ""
2225
2226 #. type: TP
2227 #: build/C/man5/elf.5:727
2228 #, no-wrap
2229 msgid "I<p_type>"
2230 msgstr ""
2231
2232 #.  .Bl -tag -width "PT_DYNAMIC"
2233 #. type: Plain text
2234 #: build/C/man5/elf.5:732
2235 msgid ""
2236 "This member of the Phdr struct tells what kind of segment this array element "
2237 "describes or how to interpret the array element's information."
2238 msgstr ""
2239
2240 #. type: TP
2241 #: build/C/man5/elf.5:733
2242 #, no-wrap
2243 msgid "B<PT_NULL>"
2244 msgstr ""
2245
2246 #. type: Plain text
2247 #: build/C/man5/elf.5:737
2248 msgid ""
2249 "The array element is unused and the other members' values are undefined.  "
2250 "This lets the program header have ignored entries."
2251 msgstr ""
2252
2253 #. type: TP
2254 #: build/C/man5/elf.5:737
2255 #, no-wrap
2256 msgid "B<PT_LOAD>"
2257 msgstr ""
2258
2259 #. type: Plain text
2260 #: build/C/man5/elf.5:758
2261 msgid ""
2262 "The array element specifies a loadable segment, described by I<p_filesz> and "
2263 "I<p_memsz>.  The bytes from the file are mapped to the beginning of the "
2264 "memory segment.  If the segment's memory size I<p_memsz> is larger than the "
2265 "file size I<p_filesz>, the \"extra\" bytes are defined to hold the value 0 "
2266 "and to follow the segment's initialized area.  The file size may not be "
2267 "larger than the memory size.  Loadable segment entries in the program header "
2268 "table appear in ascending order, sorted on the I<p_vaddr> member."
2269 msgstr ""
2270
2271 #. type: TP
2272 #: build/C/man5/elf.5:758
2273 #, no-wrap
2274 msgid "B<PT_DYNAMIC>"
2275 msgstr ""
2276
2277 #. type: Plain text
2278 #: build/C/man5/elf.5:761
2279 msgid "The array element specifies dynamic linking information."
2280 msgstr ""
2281
2282 #. type: TP
2283 #: build/C/man5/elf.5:761
2284 #, no-wrap
2285 msgid "B<PT_INTERP>"
2286 msgstr ""
2287
2288 #. type: Plain text
2289 #: build/C/man5/elf.5:769
2290 msgid ""
2291 "The array element specifies the location and size of a null-terminated "
2292 "pathname to invoke as an interpreter.  This segment type is meaningful only "
2293 "for executable files (though it may occur for shared objects).  However it "
2294 "may not occur more than once in a file.  If it is present, it must precede "
2295 "any loadable segment entry."
2296 msgstr ""
2297
2298 #. type: TP
2299 #: build/C/man5/elf.5:769
2300 #, no-wrap
2301 msgid "B<PT_NOTE>"
2302 msgstr ""
2303
2304 #. type: Plain text
2305 #: build/C/man5/elf.5:772
2306 msgid "The array element specifies the location and size for auxiliary information."
2307 msgstr ""
2308
2309 #. type: TP
2310 #: build/C/man5/elf.5:772
2311 #, no-wrap
2312 msgid "B<PT_SHLIB>"
2313 msgstr ""
2314
2315 #. type: Plain text
2316 #: build/C/man5/elf.5:777
2317 msgid ""
2318 "This segment type is reserved but has unspecified semantics.  Programs that "
2319 "contain an array element of this type do not conform to the ABI."
2320 msgstr ""
2321
2322 #. type: TP
2323 #: build/C/man5/elf.5:777
2324 #, no-wrap
2325 msgid "B<PT_PHDR>"
2326 msgstr ""
2327
2328 #. type: Plain text
2329 #: build/C/man5/elf.5:786
2330 msgid ""
2331 "The array element, if present, specifies the location and size of the "
2332 "program header table itself, both in the file and in the memory image of the "
2333 "program.  This segment type may not occur more than once in a file.  "
2334 "Moreover, it may only occur if the program header table is part of the "
2335 "memory image of the program.  If it is present, it must precede any loadable "
2336 "segment entry."
2337 msgstr ""
2338
2339 #. type: TP
2340 #: build/C/man5/elf.5:786
2341 #, no-wrap
2342 msgid "B<PT_LOPROC>"
2343 msgstr ""
2344
2345 #. type: Plain text
2346 #: build/C/man5/elf.5:791
2347 msgid ""
2348 "Values greater than or equal to B<PT_HIPROC> are reserved for "
2349 "processor-specific semantics."
2350 msgstr ""
2351
2352 #. type: TP
2353 #: build/C/man5/elf.5:791
2354 #, no-wrap
2355 msgid "B<PT_HIPROC>"
2356 msgstr ""
2357
2358 #. type: Plain text
2359 #: build/C/man5/elf.5:796
2360 msgid ""
2361 "Values less than or equal to B<PT_LOPROC> are reserved for "
2362 "processor-specific semantics."
2363 msgstr ""
2364
2365 #. type: TP
2366 #: build/C/man5/elf.5:796
2367 #, no-wrap
2368 msgid "B<PT_GNU_STACK>"
2369 msgstr ""
2370
2371 #.  .El
2372 #. type: Plain text
2373 #: build/C/man5/elf.5:803
2374 msgid ""
2375 "GNU extension which is used by the Linux kernel to control the state of the "
2376 "stack via the flags set in the I<p_flags> member."
2377 msgstr ""
2378
2379 #. type: TP
2380 #: build/C/man5/elf.5:804
2381 #, no-wrap
2382 msgid "I<p_offset>"
2383 msgstr ""
2384
2385 #. type: Plain text
2386 #: build/C/man5/elf.5:808
2387 msgid ""
2388 "This member holds the offset from the beginning of the file at which the "
2389 "first byte of the segment resides."
2390 msgstr ""
2391
2392 #. type: TP
2393 #: build/C/man5/elf.5:808
2394 #, no-wrap
2395 msgid "I<p_vaddr>"
2396 msgstr ""
2397
2398 #. type: Plain text
2399 #: build/C/man5/elf.5:812
2400 msgid ""
2401 "This member holds the virtual address at which the first byte of the segment "
2402 "resides in memory."
2403 msgstr ""
2404
2405 #. type: TP
2406 #: build/C/man5/elf.5:812
2407 #, no-wrap
2408 msgid "I<p_paddr>"
2409 msgstr ""
2410
2411 #. type: Plain text
2412 #: build/C/man5/elf.5:820
2413 msgid ""
2414 "On systems for which physical addressing is relevant, this member is "
2415 "reserved for the segment's physical address.  Under BSD this member is not "
2416 "used and must be zero."
2417 msgstr ""
2418
2419 #. type: TP
2420 #: build/C/man5/elf.5:820
2421 #, no-wrap
2422 msgid "I<p_filesz>"
2423 msgstr ""
2424
2425 #. type: Plain text
2426 #: build/C/man5/elf.5:824
2427 msgid ""
2428 "This member holds the number of bytes in the file image of the segment.  It "
2429 "may be zero."
2430 msgstr ""
2431
2432 #. type: TP
2433 #: build/C/man5/elf.5:824
2434 #, no-wrap
2435 msgid "I<p_memsz>"
2436 msgstr ""
2437
2438 #. type: Plain text
2439 #: build/C/man5/elf.5:828
2440 msgid ""
2441 "This member holds the number of bytes in the memory image of the segment.  "
2442 "It may be zero."
2443 msgstr ""
2444
2445 #. type: TP
2446 #: build/C/man5/elf.5:828
2447 #, no-wrap
2448 msgid "I<p_flags>"
2449 msgstr ""
2450
2451 #.  .Bl -tag -width "PF_X" -compact
2452 #. type: Plain text
2453 #: build/C/man5/elf.5:832
2454 msgid "This member holds a bitmask of flags relevant to the segment:"
2455 msgstr ""
2456
2457 #. type: TP
2458 #: build/C/man5/elf.5:833
2459 #, no-wrap
2460 msgid "B<PF_X>"
2461 msgstr ""
2462
2463 #. type: Plain text
2464 #: build/C/man5/elf.5:837
2465 msgid "An executable segment."
2466 msgstr ""
2467
2468 #. type: TP
2469 #: build/C/man5/elf.5:837
2470 #, no-wrap
2471 msgid "B<PF_W>"
2472 msgstr ""
2473
2474 #. type: Plain text
2475 #: build/C/man5/elf.5:840
2476 msgid "A writable segment."
2477 msgstr ""
2478
2479 #. type: TP
2480 #: build/C/man5/elf.5:840
2481 #, no-wrap
2482 msgid "B<PF_R>"
2483 msgstr ""
2484
2485 #. type: Plain text
2486 #: build/C/man5/elf.5:843
2487 msgid "A readable segment."
2488 msgstr ""
2489
2490 #. type: Plain text
2491 #: build/C/man5/elf.5:856
2492 msgid ""
2493 "A text segment commonly has the flags B<PF_X> and B<PF_R>.  A data segment "
2494 "commonly has B<PF_X>, B<PF_W> and B<PF_R>."
2495 msgstr ""
2496
2497 #. type: TP
2498 #: build/C/man5/elf.5:856
2499 #, no-wrap
2500 msgid "I<p_align>"
2501 msgstr ""
2502
2503 #.  .El
2504 #. type: Plain text
2505 #: build/C/man5/elf.5:875
2506 msgid ""
2507 "This member holds the value to which the segments are aligned in memory and "
2508 "in the file.  Loadable process segments must have congruent values for "
2509 "I<p_vaddr> and I<p_offset>, modulo the page size.  Values of zero and one "
2510 "mean no alignment is required.  Otherwise, I<p_align> should be a positive, "
2511 "integral power of two, and I<p_vaddr> should equal I<p_offset>, modulo "
2512 "I<p_align>."
2513 msgstr ""
2514
2515 #. type: Plain text
2516 #: build/C/man5/elf.5:892
2517 msgid ""
2518 "A file's section header table lets one locate all the file's sections.  The "
2519 "section header table is an array of I<Elf32_Shdr> or I<Elf64_Shdr> "
2520 "structures.  The ELF header's I<e_shoff> member gives the byte offset from "
2521 "the beginning of the file to the section header table.  I<e_shnum> holds the "
2522 "number of entries the section header table contains.  I<e_shentsize> holds "
2523 "the size in bytes of each entry."
2524 msgstr ""
2525
2526 #.  .Bl -tag -width "SHN_LORESERVE"
2527 #. type: Plain text
2528 #: build/C/man5/elf.5:909
2529 msgid ""
2530 "A section header table index is a subscript into this array.  Some section "
2531 "header table indices are reserved: the initial entry and the indices between "
2532 "B<SHN_LORESERVE> and B<SHN_HIRESERVE>.  The initial entry is used in ELF "
2533 "extensions for I<e_phnum>, I<e_shnum> and I<e_strndx>; in other cases, each "
2534 "field in the initial entry is set to zero.  An object file does not have "
2535 "sections for these special indices:"
2536 msgstr ""
2537
2538 #. type: Plain text
2539 #: build/C/man5/elf.5:914
2540 msgid ""
2541 "This value marks an undefined, missing, irrelevant or otherwise meaningless "
2542 "section reference."
2543 msgstr ""
2544
2545 #. type: Plain text
2546 #: build/C/man5/elf.5:934
2547 msgid ""
2548 "This value specifies the absolute value for the corresponding reference.  "
2549 "For example, a symbol defined relative to section number B<SHN_ABS> has an "
2550 "absolute value and is not affected by relocation."
2551 msgstr ""
2552
2553 #. type: Plain text
2554 #: build/C/man5/elf.5:938
2555 msgid ""
2556 "Symbols defined relative to this section are common symbols, such as FORTRAN "
2557 "COMMON or unallocated C external variables."
2558 msgstr ""
2559
2560 #. type: Plain text
2561 #: build/C/man5/elf.5:949
2562 msgid ""
2563 "This value specifies the upper bound of the range of reserved indices.  The "
2564 "system reserves indices between B<SHN_LORESERVE> and B<SHN_HIRESERVE>, "
2565 "inclusive.  The section header table does not contain entries for the "
2566 "reserved indices."
2567 msgstr ""
2568
2569 #. type: Plain text
2570 #: build/C/man5/elf.5:953
2571 msgid "The section header has the following structure:"
2572 msgstr ""
2573
2574 #. type: Plain text
2575 #: build/C/man5/elf.5:968
2576 #, no-wrap
2577 msgid ""
2578 "typedef struct {\n"
2579 "    uint32_t   sh_name;\n"
2580 "    uint32_t   sh_type;\n"
2581 "    uint32_t   sh_flags;\n"
2582 "    Elf32_Addr sh_addr;\n"
2583 "    Elf32_Off  sh_offset;\n"
2584 "    uint32_t   sh_size;\n"
2585 "    uint32_t   sh_link;\n"
2586 "    uint32_t   sh_info;\n"
2587 "    uint32_t   sh_addralign;\n"
2588 "    uint32_t   sh_entsize;\n"
2589 "} Elf32_Shdr;\n"
2590 msgstr ""
2591
2592 #. type: Plain text
2593 #: build/C/man5/elf.5:985
2594 #, no-wrap
2595 msgid ""
2596 "typedef struct {\n"
2597 "    uint32_t   sh_name;\n"
2598 "    uint32_t   sh_type;\n"
2599 "    uint64_t   sh_flags;\n"
2600 "    Elf64_Addr sh_addr;\n"
2601 "    Elf64_Off  sh_offset;\n"
2602 "    uint64_t   sh_size;\n"
2603 "    uint32_t   sh_link;\n"
2604 "    uint32_t   sh_info;\n"
2605 "    uint64_t   sh_addralign;\n"
2606 "    uint64_t   sh_entsize;\n"
2607 "} Elf64_Shdr;\n"
2608 msgstr ""
2609
2610 #.  .Bl -tag -width "sh_addralign"
2611 #. type: Plain text
2612 #: build/C/man5/elf.5:990
2613 msgid "No real differences exist between the 32-bit and 64-bit section headers."
2614 msgstr ""
2615
2616 #. type: TP
2617 #: build/C/man5/elf.5:990
2618 #, no-wrap
2619 msgid "I<sh_name>"
2620 msgstr ""
2621
2622 #. type: Plain text
2623 #: build/C/man5/elf.5:996
2624 msgid ""
2625 "This member specifies the name of the section.  Its value is an index into "
2626 "the section header string table section, giving the location of a "
2627 "null-terminated string."
2628 msgstr ""
2629
2630 #. type: TP
2631 #: build/C/man5/elf.5:996
2632 #, no-wrap
2633 msgid "I<sh_type>"
2634 msgstr ""
2635
2636 #.  .Bl -tag -width "SHT_PROGBITS"
2637 #. type: Plain text
2638 #: build/C/man5/elf.5:1000
2639 msgid "This member categorizes the section's contents and semantics."
2640 msgstr ""
2641
2642 #. type: TP
2643 #: build/C/man5/elf.5:1001
2644 #, no-wrap
2645 msgid "B<SHT_NULL>"
2646 msgstr ""
2647
2648 #. type: Plain text
2649 #: build/C/man5/elf.5:1008
2650 msgid ""
2651 "This value marks the section header as inactive.  It does not have an "
2652 "associated section.  Other members of the section header have undefined "
2653 "values."
2654 msgstr ""
2655
2656 #. type: TP
2657 #: build/C/man5/elf.5:1008
2658 #, no-wrap
2659 msgid "B<SHT_PROGBITS>"
2660 msgstr ""
2661
2662 #. type: Plain text
2663 #: build/C/man5/elf.5:1012
2664 msgid ""
2665 "This section holds information defined by the program, whose format and "
2666 "meaning are determined solely by the program."
2667 msgstr ""
2668
2669 #. type: TP
2670 #: build/C/man5/elf.5:1012
2671 #, no-wrap
2672 msgid "B<SHT_SYMTAB>"
2673 msgstr ""
2674
2675 #. type: Plain text
2676 #: build/C/man5/elf.5:1025
2677 msgid ""
2678 "This section holds a symbol table.  Typically, B<SHT_SYMTAB> provides "
2679 "symbols for link editing, though it may also be used for dynamic linking.  "
2680 "As a complete symbol table, it may contain many symbols unnecessary for "
2681 "dynamic linking.  An object file can also contain a B<SHT_DYNSYM> section."
2682 msgstr ""
2683
2684 #. type: TP
2685 #: build/C/man5/elf.5:1025
2686 #, no-wrap
2687 msgid "B<SHT_STRTAB>"
2688 msgstr ""
2689
2690 #. type: Plain text
2691 #: build/C/man5/elf.5:1030
2692 msgid ""
2693 "This section holds a string table.  An object file may have multiple string "
2694 "table sections."
2695 msgstr ""
2696
2697 #. type: TP
2698 #: build/C/man5/elf.5:1030
2699 #, no-wrap
2700 msgid "B<SHT_RELA>"
2701 msgstr ""
2702
2703 #. type: Plain text
2704 #: build/C/man5/elf.5:1038
2705 msgid ""
2706 "This section holds relocation entries with explicit addends, such as type "
2707 "I<Elf32_Rela> for the 32-bit class of object files.  An object may have "
2708 "multiple relocation sections."
2709 msgstr ""
2710
2711 #. type: TP
2712 #: build/C/man5/elf.5:1038
2713 #, no-wrap
2714 msgid "B<SHT_HASH>"
2715 msgstr ""
2716
2717 #. type: Plain text
2718 #: build/C/man5/elf.5:1045
2719 msgid ""
2720 "This section holds a symbol hash table.  An object participating in dynamic "
2721 "linking must contain a symbol hash table.  An object file may have only one "
2722 "hash table."
2723 msgstr ""
2724
2725 #. type: TP
2726 #: build/C/man5/elf.5:1045
2727 #, no-wrap
2728 msgid "B<SHT_DYNAMIC>"
2729 msgstr ""
2730
2731 #. type: Plain text
2732 #: build/C/man5/elf.5:1050
2733 msgid ""
2734 "This section holds information for dynamic linking.  An object file may have "
2735 "only one dynamic section."
2736 msgstr ""
2737
2738 #. type: TP
2739 #: build/C/man5/elf.5:1050
2740 #, no-wrap
2741 msgid "B<SHT_NOTE>"
2742 msgstr ""
2743
2744 #. type: Plain text
2745 #: build/C/man5/elf.5:1053
2746 msgid "This section holds information that marks the file in some way."
2747 msgstr ""
2748
2749 #. type: TP
2750 #: build/C/man5/elf.5:1053
2751 #, no-wrap
2752 msgid "B<SHT_NOBITS>"
2753 msgstr ""
2754
2755 #. type: Plain text
2756 #: build/C/man5/elf.5:1061
2757 msgid ""
2758 "A section of this type occupies no space in the file but otherwise resembles "
2759 "B<SHT_PROGBITS>.  Although this section contains no bytes, the I<sh_offset> "
2760 "member contains the conceptual file offset."
2761 msgstr ""
2762
2763 #. type: TP
2764 #: build/C/man5/elf.5:1061
2765 #, no-wrap
2766 msgid "B<SHT_REL>"
2767 msgstr ""
2768
2769 #. type: Plain text
2770 #: build/C/man5/elf.5:1069
2771 msgid ""
2772 "This section holds relocation offsets without explicit addends, such as type "
2773 "I<Elf32_Rel> for the 32-bit class of object files.  An object file may have "
2774 "multiple relocation sections."
2775 msgstr ""
2776
2777 #. type: TP
2778 #: build/C/man5/elf.5:1069
2779 #, no-wrap
2780 msgid "B<SHT_SHLIB>"
2781 msgstr ""
2782
2783 #. type: Plain text
2784 #: build/C/man5/elf.5:1072
2785 msgid "This section is reserved but has unspecified semantics."
2786 msgstr ""
2787
2788 #. type: TP
2789 #: build/C/man5/elf.5:1072
2790 #, no-wrap
2791 msgid "B<SHT_DYNSYM>"
2792 msgstr ""
2793
2794 #. type: Plain text
2795 #: build/C/man5/elf.5:1079
2796 msgid ""
2797 "This section holds a minimal set of dynamic linking symbols.  An object file "
2798 "can also contain a B<SHT_SYMTAB> section."
2799 msgstr ""
2800
2801 #. type: TP
2802 #: build/C/man5/elf.5:1079
2803 #, no-wrap
2804 msgid "B<SHT_LOPROC>"
2805 msgstr ""
2806
2807 #. type: Plain text
2808 #: build/C/man5/elf.5:1084
2809 msgid ""
2810 "This value up to and including B<SHT_HIPROC> is reserved for "
2811 "processor-specific semantics."
2812 msgstr ""
2813
2814 #. type: TP
2815 #: build/C/man5/elf.5:1084
2816 #, no-wrap
2817 msgid "B<SHT_HIPROC>"
2818 msgstr ""
2819
2820 #. type: Plain text
2821 #: build/C/man5/elf.5:1089
2822 msgid ""
2823 "This value down to and including B<SHT_LOPROC> is reserved for "
2824 "processor-specific semantics."
2825 msgstr ""
2826
2827 #. type: TP
2828 #: build/C/man5/elf.5:1089
2829 #, no-wrap
2830 msgid "B<SHT_LOUSER>"
2831 msgstr ""
2832
2833 #. type: Plain text
2834 #: build/C/man5/elf.5:1093
2835 msgid ""
2836 "This value specifies the lower bound of the range of indices reserved for "
2837 "application programs."
2838 msgstr ""
2839
2840 #. type: TP
2841 #: build/C/man5/elf.5:1093
2842 #, no-wrap
2843 msgid "B<SHT_HIUSER>"
2844 msgstr ""
2845
2846 #.  .El
2847 #. type: Plain text
2848 #: build/C/man5/elf.5:1104
2849 msgid ""
2850 "This value specifies the upper bound of the range of indices reserved for "
2851 "application programs.  Section types between B<SHT_LOUSER> and B<SHT_HIUSER> "
2852 "may be used by the application, without conflicting with current or future "
2853 "system-defined section types."
2854 msgstr ""
2855
2856 #. type: TP
2857 #: build/C/man5/elf.5:1105
2858 #, no-wrap
2859 msgid "I<sh_flags>"
2860 msgstr ""
2861
2862 #.  .Bl -tag -width "SHF_EXECINSTR" -compact
2863 #. type: Plain text
2864 #: build/C/man5/elf.5:1118
2865 msgid ""
2866 "Sections support one-bit flags that describe miscellaneous attributes.  If a "
2867 "flag bit is set in I<sh_flags>, the attribute is \"on\" for the section.  "
2868 "Otherwise, the attribute is \"off\" or does not apply.  Undefined attributes "
2869 "are set to zero."
2870 msgstr ""
2871
2872 #. type: TP
2873 #: build/C/man5/elf.5:1119
2874 #, no-wrap
2875 msgid "B<SHF_WRITE>"
2876 msgstr ""
2877
2878 #. type: Plain text
2879 #: build/C/man5/elf.5:1123
2880 msgid "This section contains data that should be writable during process execution."
2881 msgstr ""
2882
2883 #. type: TP
2884 #: build/C/man5/elf.5:1123
2885 #, no-wrap
2886 msgid "B<SHF_ALLOC>"
2887 msgstr ""
2888
2889 #. type: Plain text
2890 #: build/C/man5/elf.5:1130
2891 msgid ""
2892 "This section occupies memory during process execution.  Some control "
2893 "sections do not reside in the memory image of an object file.  This "
2894 "attribute is off for those sections."
2895 msgstr ""
2896
2897 #. type: TP
2898 #: build/C/man5/elf.5:1130
2899 #, no-wrap
2900 msgid "B<SHF_EXECINSTR>"
2901 msgstr ""
2902
2903 #. type: Plain text
2904 #: build/C/man5/elf.5:1133
2905 msgid "This section contains executable machine instructions."
2906 msgstr ""
2907
2908 #. type: TP
2909 #: build/C/man5/elf.5:1133
2910 #, no-wrap
2911 msgid "B<SHF_MASKPROC>"
2912 msgstr ""
2913
2914 #. type: Plain text
2915 #: build/C/man5/elf.5:1137
2916 msgid ""
2917 "All bits included in this mask are reserved for processor-specific "
2918 "semantics."
2919 msgstr ""
2920
2921 #. type: TP
2922 #: build/C/man5/elf.5:1139
2923 #, no-wrap
2924 msgid "I<sh_addr>"
2925 msgstr ""
2926
2927 #. type: Plain text
2928 #: build/C/man5/elf.5:1144
2929 msgid ""
2930 "If this section appears in the memory image of a process, this member holds "
2931 "the address at which the section's first byte should reside.  Otherwise, the "
2932 "member contains zero."
2933 msgstr ""
2934
2935 #. type: TP
2936 #: build/C/man5/elf.5:1144
2937 #, no-wrap
2938 msgid "I<sh_offset>"
2939 msgstr ""
2940
2941 #. type: Plain text
2942 #: build/C/man5/elf.5:1153
2943 msgid ""
2944 "This member's value holds the byte offset from the beginning of the file to "
2945 "the first byte in the section.  One section type, B<SHT_NOBITS>, occupies no "
2946 "space in the file, and its I<sh_offset> member locates the conceptual "
2947 "placement in the file."
2948 msgstr ""
2949
2950 #. type: TP
2951 #: build/C/man5/elf.5:1153
2952 #, no-wrap
2953 msgid "I<sh_size>"
2954 msgstr ""
2955
2956 #. type: Plain text
2957 #: build/C/man5/elf.5:1165
2958 msgid ""
2959 "This member holds the section's size in bytes.  Unless the section type is "
2960 "B<SHT_NOBITS>, the section occupies I<sh_size> bytes in the file.  A section "
2961 "of type B<SHT_NOBITS> may have a nonzero size, but it occupies no space in "
2962 "the file."
2963 msgstr ""
2964
2965 #. type: TP
2966 #: build/C/man5/elf.5:1165
2967 #, no-wrap
2968 msgid "I<sh_link>"
2969 msgstr ""
2970
2971 #. type: Plain text
2972 #: build/C/man5/elf.5:1169
2973 msgid ""
2974 "This member holds a section header table index link, whose interpretation "
2975 "depends on the section type."
2976 msgstr ""
2977
2978 #. type: TP
2979 #: build/C/man5/elf.5:1169
2980 #, no-wrap
2981 msgid "I<sh_info>"
2982 msgstr ""
2983
2984 #. type: Plain text
2985 #: build/C/man5/elf.5:1173
2986 msgid ""
2987 "This member holds extra information, whose interpretation depends on the "
2988 "section type."
2989 msgstr ""
2990
2991 #. type: TP
2992 #: build/C/man5/elf.5:1173
2993 #, no-wrap
2994 msgid "I<sh_addralign>"
2995 msgstr ""
2996
2997 #. type: Plain text
2998 #: build/C/man5/elf.5:1186
2999 msgid ""
3000 "Some sections have address alignment constraints.  If a section holds a "
3001 "doubleword, the system must ensure doubleword alignment for the entire "
3002 "section.  That is, the value of I<sh_addr> must be congruent to zero, modulo "
3003 "the value of I<sh_addralign>.  Only zero and positive integral powers of two "
3004 "are allowed.  Values of zero or one mean the section has no alignment "
3005 "constraints."
3006 msgstr ""
3007
3008 #. type: TP
3009 #: build/C/man5/elf.5:1186
3010 #, no-wrap
3011 msgid "I<sh_entsize>"
3012 msgstr ""
3013
3014 #.  .El
3015 #. type: Plain text
3016 #: build/C/man5/elf.5:1193
3017 msgid ""
3018 "Some sections hold a table of fixed-sized entries, such as a symbol table.  "
3019 "For such a section, this member gives the size in bytes for each entry.  "
3020 "This member contains zero if the section does not hold a table of fixed-size "
3021 "entries."
3022 msgstr ""
3023
3024 #.  .Bl -tag -width ".shstrtab"
3025 #. type: Plain text
3026 #: build/C/man5/elf.5:1196
3027 msgid "Various sections hold program and control information:"
3028 msgstr ""
3029
3030 #. type: TP
3031 #: build/C/man5/elf.5:1196
3032 #, no-wrap
3033 msgid "I<.bss>"
3034 msgstr ""
3035
3036 #. type: Plain text
3037 #: build/C/man5/elf.5:1208
3038 msgid ""
3039 "This section holds uninitialized data that contributes to the program's "
3040 "memory image.  By definition, the system initializes the data with zeros "
3041 "when the program begins to run.  This section is of type B<SHT_NOBITS>.  The "
3042 "attribute types are B<SHF_ALLOC> and B<SHF_WRITE>."
3043 msgstr ""
3044
3045 #. type: TP
3046 #: build/C/man5/elf.5:1208
3047 #, no-wrap
3048 msgid "I<.comment>"
3049 msgstr ""
3050
3051 #. type: Plain text
3052 #: build/C/man5/elf.5:1214
3053 msgid ""
3054 "This section holds version control information.  This section is of type "
3055 "B<SHT_PROGBITS>.  No attribute types are used."
3056 msgstr ""
3057
3058 #. type: TP
3059 #: build/C/man5/elf.5:1214
3060 #, no-wrap
3061 msgid "I<.ctors>"
3062 msgstr ""
3063
3064 #. type: Plain text
3065 #: build/C/man5/elf.5:1223
3066 msgid ""
3067 "This section holds initialized pointers to the C++ constructor functions.  "
3068 "This section is of type B<SHT_PROGBITS>.  The attribute types are "
3069 "B<SHF_ALLOC> and B<SHF_WRITE>."
3070 msgstr ""
3071
3072 #. type: TP
3073 #: build/C/man5/elf.5:1223
3074 #, no-wrap
3075 msgid "I<.data>"
3076 msgstr ""
3077
3078 #. type: Plain text
3079 #: build/C/man5/elf.5:1233 build/C/man5/elf.5:1243
3080 msgid ""
3081 "This section holds initialized data that contribute to the program's memory "
3082 "image.  This section is of type B<SHT_PROGBITS>.  The attribute types are "
3083 "B<SHF_ALLOC> and B<SHF_WRITE>."
3084 msgstr ""
3085
3086 #. type: TP
3087 #: build/C/man5/elf.5:1233
3088 #, no-wrap
3089 msgid "I<.data1>"
3090 msgstr ""
3091
3092 #. type: TP
3093 #: build/C/man5/elf.5:1243
3094 #, no-wrap
3095 msgid "I<.debug>"
3096 msgstr ""
3097
3098 #. type: Plain text
3099 #: build/C/man5/elf.5:1251
3100 msgid ""
3101 "This section holds information for symbolic debugging.  The contents are "
3102 "unspecified.  This section is of type B<SHT_PROGBITS>.  No attribute types "
3103 "are used."
3104 msgstr ""
3105
3106 #. type: TP
3107 #: build/C/man5/elf.5:1251
3108 #, no-wrap
3109 msgid "I<.dtors>"
3110 msgstr ""
3111
3112 #. type: Plain text
3113 #: build/C/man5/elf.5:1260
3114 msgid ""
3115 "This section holds initialized pointers to the C++ destructor functions.  "
3116 "This section is of type B<SHT_PROGBITS>.  The attribute types are "
3117 "B<SHF_ALLOC> and B<SHF_WRITE>."
3118 msgstr ""
3119
3120 #. type: TP
3121 #: build/C/man5/elf.5:1260
3122 #, no-wrap
3123 msgid "I<.dynamic>"
3124 msgstr ""
3125
3126 #. type: Plain text
3127 #: build/C/man5/elf.5:1273
3128 msgid ""
3129 "This section holds dynamic linking information.  The section's attributes "
3130 "will include the B<SHF_ALLOC> bit.  Whether the B<SHF_WRITE> bit is set is "
3131 "processor-specific.  This section is of type B<SHT_DYNAMIC>.  See the "
3132 "attributes above."
3133 msgstr ""
3134
3135 #. type: TP
3136 #: build/C/man5/elf.5:1273
3137 #, no-wrap
3138 msgid "I<.dynstr>"
3139 msgstr ""
3140
3141 #. type: Plain text
3142 #: build/C/man5/elf.5:1281
3143 msgid ""
3144 "This section holds strings needed for dynamic linking, most commonly the "
3145 "strings that represent the names associated with symbol table entries.  This "
3146 "section is of type B<SHT_STRTAB>.  The attribute type used is B<SHF_ALLOC>."
3147 msgstr ""
3148
3149 #. type: TP
3150 #: build/C/man5/elf.5:1281
3151 #, no-wrap
3152 msgid "I<.dynsym>"
3153 msgstr ""
3154
3155 #. type: Plain text
3156 #: build/C/man5/elf.5:1288
3157 msgid ""
3158 "This section holds the dynamic linking symbol table.  This section is of "
3159 "type B<SHT_DYNSYM>.  The attribute used is B<SHF_ALLOC>."
3160 msgstr ""
3161
3162 #. type: TP
3163 #: build/C/man5/elf.5:1288
3164 #, no-wrap
3165 msgid "I<.fini>"
3166 msgstr ""
3167
3168 #. type: Plain text
3169 #: build/C/man5/elf.5:1300
3170 msgid ""
3171 "This section holds executable instructions that contribute to the process "
3172 "termination code.  When a program exits normally the system arranges to "
3173 "execute the code in this section.  This section is of type B<SHT_PROGBITS>.  "
3174 "The attributes used are B<SHF_ALLOC> and B<SHF_EXECINSTR>."
3175 msgstr ""
3176
3177 #. type: TP
3178 #: build/C/man5/elf.5:1300
3179 #, no-wrap
3180 msgid "I<.gnu.version>"
3181 msgstr ""
3182
3183 #. type: Plain text
3184 #: build/C/man5/elf.5:1309
3185 msgid ""
3186 "This section holds the version symbol table, an array of I<ElfN_Half> "
3187 "elements.  This section is of type B<SHT_GNU_versym>.  The attribute type "
3188 "used is B<SHF_ALLOC>."
3189 msgstr ""
3190
3191 #. type: TP
3192 #: build/C/man5/elf.5:1309
3193 #, no-wrap
3194 msgid "I<.gnu.version_d>"
3195 msgstr ""
3196
3197 #. type: Plain text
3198 #: build/C/man5/elf.5:1318
3199 msgid ""
3200 "This section holds the version symbol definitions, a table of I<ElfN_Verdef> "
3201 "structures.  This section is of type B<SHT_GNU_verdef>.  The attribute type "
3202 "used is B<SHF_ALLOC>."
3203 msgstr ""
3204
3205 #. type: TP
3206 #: build/C/man5/elf.5:1318
3207 #, no-wrap
3208 msgid "I<.gnu.version_r>"
3209 msgstr ""
3210
3211 #. type: Plain text
3212 #: build/C/man5/elf.5:1328
3213 msgid ""
3214 "This section holds the version symbol needed elements, a table of "
3215 "I<ElfN_Verneed> structures.  This section is of type B<SHT_GNU_versym>.  The "
3216 "attribute type used is B<SHF_ALLOC>."
3217 msgstr ""
3218
3219 #. type: TP
3220 #: build/C/man5/elf.5:1328
3221 #, no-wrap
3222 msgid "I<.got>"
3223 msgstr ""
3224
3225 #. type: Plain text
3226 #: build/C/man5/elf.5:1334
3227 msgid ""
3228 "This section holds the global offset table.  This section is of type "
3229 "B<SHT_PROGBITS>.  The attributes are processor specific."
3230 msgstr ""
3231
3232 #. type: TP
3233 #: build/C/man5/elf.5:1334
3234 #, no-wrap
3235 msgid "I<.hash>"
3236 msgstr ""
3237
3238 #. type: Plain text
3239 #: build/C/man5/elf.5:1341
3240 msgid ""
3241 "This section holds a symbol hash table.  This section is of type "
3242 "B<SHT_HASH>.  The attribute used is B<SHF_ALLOC>."
3243 msgstr ""
3244
3245 #. type: TP
3246 #: build/C/man5/elf.5:1341
3247 #, no-wrap
3248 msgid "I<.init>"
3249 msgstr ""
3250
3251 #. type: Plain text
3252 #: build/C/man5/elf.5:1353
3253 msgid ""
3254 "This section holds executable instructions that contribute to the process "
3255 "initialization code.  When a program starts to run the system arranges to "
3256 "execute the code in this section before calling the main program entry "
3257 "point.  This section is of type B<SHT_PROGBITS>.  The attributes used are "
3258 "B<SHF_ALLOC> and B<SHF_EXECINSTR>."
3259 msgstr ""
3260
3261 #. type: TP
3262 #: build/C/man5/elf.5:1353
3263 #, no-wrap
3264 msgid "I<.interp>"
3265 msgstr ""
3266
3267 #. type: Plain text
3268 #: build/C/man5/elf.5:1364
3269 msgid ""
3270 "This section holds the pathname of a program interpreter.  If the file has a "
3271 "loadable segment that includes the section, the section's attributes will "
3272 "include the B<SHF_ALLOC> bit.  Otherwise, that bit will be off.  This "
3273 "section is of type B<SHT_PROGBITS>."
3274 msgstr ""
3275
3276 #. type: TP
3277 #: build/C/man5/elf.5:1364
3278 #, no-wrap
3279 msgid "I<.line>"
3280 msgstr ""
3281
3282 #. type: Plain text
3283 #: build/C/man5/elf.5:1372
3284 msgid ""
3285 "This section holds line number information for symbolic debugging, which "
3286 "describes the correspondence between the program source and the machine "
3287 "code.  The contents are unspecified.  This section is of type "
3288 "B<SHT_PROGBITS>.  No attribute types are used."
3289 msgstr ""
3290
3291 #. type: TP
3292 #: build/C/man5/elf.5:1372
3293 #, no-wrap
3294 msgid "I<.note>"
3295 msgstr ""
3296
3297 #. type: Plain text
3298 #: build/C/man5/elf.5:1385
3299 msgid ""
3300 "This section holds information in the \"Note Section\" format.  This section "
3301 "is of type B<SHT_NOTE>.  No attribute types are used.  OpenBSD native "
3302 "executables usually contain a I<.note.openbsd.ident> section to identify "
3303 "themselves, for the kernel to bypass any compatibility ELF binary emulation "
3304 "tests when loading the file."
3305 msgstr ""
3306
3307 #. type: TP
3308 #: build/C/man5/elf.5:1385
3309 #, no-wrap
3310 msgid "I<.note.GNU-stack>"
3311 msgstr ""
3312
3313 #. type: Plain text
3314 #: build/C/man5/elf.5:1394
3315 msgid ""
3316 "This section is used in Linux object files for declaring stack attributes.  "
3317 "This section is of type B<SHT_PROGBITS>.  The only attribute used is "
3318 "B<SHF_EXECINSTR>.  This indicates to the GNU linker that the object file "
3319 "requires an executable stack."
3320 msgstr ""
3321
3322 #. type: TP
3323 #: build/C/man5/elf.5:1394
3324 #, no-wrap
3325 msgid "I<.plt>"
3326 msgstr ""
3327
3328 #. type: Plain text
3329 #: build/C/man5/elf.5:1400
3330 msgid ""
3331 "This section holds the procedure linkage table.  This section is of type "
3332 "B<SHT_PROGBITS>.  The attributes are processor specific."
3333 msgstr ""
3334
3335 #. type: TP
3336 #: build/C/man5/elf.5:1400
3337 #, no-wrap
3338 msgid "I<.relNAME>"
3339 msgstr ""
3340
3341 #. type: Plain text
3342 #: build/C/man5/elf.5:1419
3343 msgid ""
3344 "This section holds relocation information as described below.  If the file "
3345 "has a loadable segment that includes relocation, the section's attributes "
3346 "will include the B<SHF_ALLOC> bit.  Otherwise the bit will be off.  By "
3347 "convention, \"NAME\" is supplied by the section to which the relocations "
3348 "apply.  Thus a relocation section for B<.text> normally would have the name "
3349 "B<.rel.text>.  This section is of type B<SHT_REL>."
3350 msgstr ""
3351
3352 #. type: TP
3353 #: build/C/man5/elf.5:1419
3354 #, no-wrap
3355 msgid "I<.relaNAME>"
3356 msgstr ""
3357
3358 #. type: Plain text
3359 #: build/C/man5/elf.5:1438
3360 msgid ""
3361 "This section holds relocation information as described below.  If the file "
3362 "has a loadable segment that includes relocation, the section's attributes "
3363 "will include the B<SHF_ALLOC> bit.  Otherwise the bit will be off.  By "
3364 "convention, \"NAME\" is supplied by the section to which the relocations "
3365 "apply.  Thus a relocation section for B<.text> normally would have the name "
3366 "B<.rela.text>.  This section is of type B<SHT_RELA>."
3367 msgstr ""
3368
3369 #. type: TP
3370 #: build/C/man5/elf.5:1438
3371 #, no-wrap
3372 msgid "I<.rodata>"
3373 msgstr ""
3374
3375 #. type: Plain text
3376 #: build/C/man5/elf.5:1446 build/C/man5/elf.5:1454
3377 msgid ""
3378 "This section holds read-only data that typically contributes to a "
3379 "nonwritable segment in the process image.  This section is of type "
3380 "B<SHT_PROGBITS>.  The attribute used is B<SHF_ALLOC>."
3381 msgstr ""
3382
3383 #. type: TP
3384 #: build/C/man5/elf.5:1446
3385 #, no-wrap
3386 msgid "I<.rodata1>"
3387 msgstr ""
3388
3389 #. type: TP
3390 #: build/C/man5/elf.5:1454
3391 #, no-wrap
3392 msgid "I<.shstrtab>"
3393 msgstr ""
3394
3395 #. type: Plain text
3396 #: build/C/man5/elf.5:1460
3397 msgid ""
3398 "This section holds section names.  This section is of type B<SHT_STRTAB>.  "
3399 "No attribute types are used."
3400 msgstr ""
3401
3402 #. type: TP
3403 #: build/C/man5/elf.5:1460
3404 #, no-wrap
3405 msgid "I<.strtab>"
3406 msgstr ""
3407
3408 #. type: Plain text
3409 #: build/C/man5/elf.5:1472
3410 msgid ""
3411 "This section holds strings, most commonly the strings that represent the "
3412 "names associated with symbol table entries.  If the file has a loadable "
3413 "segment that includes the symbol string table, the section's attributes will "
3414 "include the B<SHF_ALLOC> bit.  Otherwise the bit will be off.  This section "
3415 "is of type B<SHT_STRTAB>."
3416 msgstr ""
3417
3418 #. type: TP
3419 #: build/C/man5/elf.5:1472
3420 #, no-wrap
3421 msgid "I<.symtab>"
3422 msgstr ""
3423
3424 #. type: Plain text
3425 #: build/C/man5/elf.5:1483
3426 msgid ""
3427 "This section holds a symbol table.  If the file has a loadable segment that "
3428 "includes the symbol table, the section's attributes will include the "
3429 "B<SHF_ALLOC> bit.  Otherwise the bit will be off.  This section is of type "
3430 "B<SHT_SYMTAB>."
3431 msgstr ""
3432
3433 #. type: TP
3434 #: build/C/man5/elf.5:1483
3435 #, no-wrap
3436 msgid "I<.text>"
3437 msgstr ""
3438
3439 #.  .El
3440 #. type: Plain text
3441 #: build/C/man5/elf.5:1495
3442 msgid ""
3443 "This section holds the \"text\", or executable instructions, of a program.  "
3444 "This section is of type B<SHT_PROGBITS>.  The attributes used are "
3445 "B<SHF_ALLOC> and B<SHF_EXECINSTR>."
3446 msgstr ""
3447
3448 #. type: Plain text
3449 #: build/C/man5/elf.5:1506
3450 msgid ""
3451 "String table sections hold null-terminated character sequences, commonly "
3452 "called strings.  The object file uses these strings to represent symbol and "
3453 "section names.  One references a string as an index into the string table "
3454 "section.  The first byte, which is index zero, is defined to hold a null "
3455 "byte (\\(aq\\e0\\(aq).  Similarly, a string table's last byte is defined to "
3456 "hold a null byte, ensuring null termination for all strings."
3457 msgstr ""
3458
3459 #. type: Plain text
3460 #: build/C/man5/elf.5:1511
3461 msgid ""
3462 "An object file's symbol table holds information needed to locate and "
3463 "relocate a program's symbolic definitions and references.  A symbol table "
3464 "index is a subscript into this array."
3465 msgstr ""
3466
3467 #. type: Plain text
3468 #: build/C/man5/elf.5:1522
3469 #, no-wrap
3470 msgid ""
3471 "typedef struct {\n"
3472 "    uint32_t      st_name;\n"
3473 "    Elf32_Addr    st_value;\n"
3474 "    uint32_t      st_size;\n"
3475 "    unsigned char st_info;\n"
3476 "    unsigned char st_other;\n"
3477 "    uint16_t      st_shndx;\n"
3478 "} Elf32_Sym;\n"
3479 msgstr ""
3480
3481 #. type: Plain text
3482 #: build/C/man5/elf.5:1535
3483 #, no-wrap
3484 msgid ""
3485 "typedef struct {\n"
3486 "    uint32_t      st_name;\n"
3487 "    unsigned char st_info;\n"
3488 "    unsigned char st_other;\n"
3489 "    uint16_t      st_shndx;\n"
3490 "    Elf64_Addr    st_value;\n"
3491 "    uint64_t      st_size;\n"
3492 "} Elf64_Sym;\n"
3493 msgstr ""
3494
3495 #.  .Bl -tag -width "st_value"
3496 #. type: Plain text
3497 #: build/C/man5/elf.5:1541
3498 msgid ""
3499 "The 32-bit and 64-bit versions have the same members, just in a different "
3500 "order."
3501 msgstr ""
3502
3503 #. type: TP
3504 #: build/C/man5/elf.5:1541
3505 #, no-wrap
3506 msgid "I<st_name>"
3507 msgstr ""
3508
3509 #. type: Plain text
3510 #: build/C/man5/elf.5:1549
3511 msgid ""
3512 "This member holds an index into the object file's symbol string table, which "
3513 "holds character representations of the symbol names.  If the value is "
3514 "nonzero, it represents a string table index that gives the symbol name.  "
3515 "Otherwise, the symbol table has no name."
3516 msgstr ""
3517
3518 #. type: TP
3519 #: build/C/man5/elf.5:1549
3520 #, no-wrap
3521 msgid "I<st_value>"
3522 msgstr ""
3523
3524 #. type: Plain text
3525 #: build/C/man5/elf.5:1552
3526 msgid "This member gives the value of the associated symbol."
3527 msgstr ""
3528
3529 #. type: TP
3530 #: build/C/man5/elf.5:1552
3531 #, no-wrap
3532 msgid "I<st_size>"
3533 msgstr ""
3534
3535 #. type: Plain text
3536 #: build/C/man5/elf.5:1557
3537 msgid ""
3538 "Many symbols have associated sizes.  This member holds zero if the symbol "
3539 "has no size or an unknown size."
3540 msgstr ""
3541
3542 #. type: TP
3543 #: build/C/man5/elf.5:1557
3544 #, no-wrap
3545 msgid "I<st_info>"
3546 msgstr ""
3547
3548 #.  .Bl -tag -width "STT_SECTION"
3549 #. type: Plain text
3550 #: build/C/man5/elf.5:1561
3551 msgid "This member specifies the symbol's type and binding attributes:"
3552 msgstr ""
3553
3554 #. type: TP
3555 #: build/C/man5/elf.5:1562
3556 #, no-wrap
3557 msgid "B<STT_NOTYPE>"
3558 msgstr ""
3559
3560 #. type: Plain text
3561 #: build/C/man5/elf.5:1565
3562 msgid "The symbol's type is not defined."
3563 msgstr ""
3564
3565 #. type: TP
3566 #: build/C/man5/elf.5:1565
3567 #, no-wrap
3568 msgid "B<STT_OBJECT>"
3569 msgstr ""
3570
3571 #. type: Plain text
3572 #: build/C/man5/elf.5:1568
3573 msgid "The symbol is associated with a data object."
3574 msgstr ""
3575
3576 #. type: TP
3577 #: build/C/man5/elf.5:1568
3578 #, no-wrap
3579 msgid "B<STT_FUNC>"
3580 msgstr ""
3581
3582 #. type: Plain text
3583 #: build/C/man5/elf.5:1571
3584 msgid "The symbol is associated with a function or other executable code."
3585 msgstr ""
3586
3587 #. type: TP
3588 #: build/C/man5/elf.5:1571
3589 #, no-wrap
3590 msgid "B<STT_SECTION>"
3591 msgstr ""
3592
3593 #. type: Plain text
3594 #: build/C/man5/elf.5:1578
3595 msgid ""
3596 "The symbol is associated with a section.  Symbol table entries of this type "
3597 "exist primarily for relocation and normally have B<STB_LOCAL> bindings."
3598 msgstr ""
3599
3600 #. type: TP
3601 #: build/C/man5/elf.5:1578
3602 #, no-wrap
3603 msgid "B<STT_FILE>"
3604 msgstr ""
3605
3606 #. type: Plain text
3607 #: build/C/man5/elf.5:1589
3608 msgid ""
3609 "By convention, the symbol's name gives the name of the source file "
3610 "associated with the object file.  A file symbol has B<STB_LOCAL> bindings, "
3611 "its section index is B<SHN_ABS>, and it precedes the other B<STB_LOCAL> "
3612 "symbols of the file, if it is present."
3613 msgstr ""
3614
3615 #. type: TP
3616 #: build/C/man5/elf.5:1589
3617 #, no-wrap
3618 msgid "B<STT_LOPROC>"
3619 msgstr ""
3620
3621 #. type: Plain text
3622 #: build/C/man5/elf.5:1594
3623 msgid ""
3624 "This value up to and including B<STT_HIPROC> is reserved for "
3625 "processor-specific semantics."
3626 msgstr ""
3627
3628 #. type: TP
3629 #: build/C/man5/elf.5:1594
3630 #, no-wrap
3631 msgid "B<STT_HIPROC>"
3632 msgstr ""
3633
3634 #.  .El
3635 #.  .Bl -tag -width "STB_GLOBAL"
3636 #. type: Plain text
3637 #: build/C/man5/elf.5:1601
3638 msgid ""
3639 "This value down to and including B<STT_LOPROC> is reserved for "
3640 "processor-specific semantics."
3641 msgstr ""
3642
3643 #. type: TP
3644 #: build/C/man5/elf.5:1601
3645 #, no-wrap
3646 msgid "B<STB_LOCAL>"
3647 msgstr ""
3648
3649 #. type: Plain text
3650 #: build/C/man5/elf.5:1607
3651 msgid ""
3652 "Local symbols are not visible outside the object file containing their "
3653 "definition.  Local symbols of the same name may exist in multiple files "
3654 "without interfering with each other."
3655 msgstr ""
3656
3657 #. type: TP
3658 #: build/C/man5/elf.5:1607
3659 #, no-wrap
3660 msgid "B<STB_GLOBAL>"
3661 msgstr ""
3662
3663 #. type: Plain text
3664 #: build/C/man5/elf.5:1613
3665 msgid ""
3666 "Global symbols are visible to all object files being combined.  One file's "
3667 "definition of a global symbol will satisfy another file's undefined "
3668 "reference to the same symbol."
3669 msgstr ""
3670
3671 #. type: TP
3672 #: build/C/man5/elf.5:1613
3673 #, no-wrap
3674 msgid "B<STB_WEAK>"
3675 msgstr ""
3676
3677 #. type: Plain text
3678 #: build/C/man5/elf.5:1617
3679 msgid ""
3680 "Weak symbols resemble global symbols, but their definitions have lower "
3681 "precedence."
3682 msgstr ""
3683
3684 #. type: TP
3685 #: build/C/man5/elf.5:1617
3686 #, no-wrap
3687 msgid "B<STB_LOPROC>"
3688 msgstr ""
3689
3690 #. type: Plain text
3691 #: build/C/man5/elf.5:1622
3692 msgid ""
3693 "This value up to and including B<STB_HIPROC> is reserved for "
3694 "processor-specific semantics."
3695 msgstr ""
3696
3697 #. type: TP
3698 #: build/C/man5/elf.5:1622
3699 #, no-wrap
3700 msgid "B<STB_HIPROC>"
3701 msgstr ""
3702
3703 #. type: Plain text
3704 #: build/C/man5/elf.5:1627
3705 msgid ""
3706 "This value down to and including B<STB_LOPROC> is reserved for "
3707 "processor-specific semantics."
3708 msgstr ""
3709
3710 #. type: Plain text
3711 #: build/C/man5/elf.5:1629
3712 msgid "There are macros for packing and unpacking the binding and type fields:"
3713 msgstr ""
3714
3715 #. type: Plain text
3716 #: build/C/man5/elf.5:1636
3717 msgid ""
3718 "B<ELF32_ST_BIND>(info)  or B<ELF64_ST_BIND>(info)  extract a binding from an "
3719 "I<st_info> value."
3720 msgstr ""
3721
3722 #. type: Plain text
3723 #: build/C/man5/elf.5:1640
3724 msgid "B<ELF32_ST_TYPE>(info)  or B<ELF64_ST_TYPE>(info)"
3725 msgstr ""
3726
3727 #. type: Plain text
3728 #: build/C/man5/elf.5:1644
3729 msgid "extract a type from an I<st_info> value."
3730 msgstr ""
3731
3732 #. type: Plain text
3733 #: build/C/man5/elf.5:1648
3734 msgid "B<ELF32_ST_INFO>(bind, type)  or B<ELF64_ST_INFO>(bind, type)"
3735 msgstr ""
3736
3737 #. type: Plain text
3738 #: build/C/man5/elf.5:1652
3739 msgid "convert a binding and a type into an I<st_info> value."
3740 msgstr ""
3741
3742 #. type: TP
3743 #: build/C/man5/elf.5:1654
3744 #, no-wrap
3745 msgid "I<st_other>"
3746 msgstr ""
3747
3748 #.  .Bl -tag -width "STV_PROTECTED"
3749 #. type: Plain text
3750 #: build/C/man5/elf.5:1658
3751 msgid "This member defines the symbol visibility."
3752 msgstr ""
3753
3754 #. type: TP
3755 #: build/C/man5/elf.5:1659
3756 #, no-wrap
3757 msgid "B<STV_DEFAULT>"
3758 msgstr ""
3759
3760 #. type: Plain text
3761 #: build/C/man5/elf.5:1663
3762 msgid "Default symbol visibility rules."
3763 msgstr ""
3764
3765 #. type: TP
3766 #: build/C/man5/elf.5:1663
3767 #, no-wrap
3768 msgid "B<STV_INTERNAL>"
3769 msgstr ""
3770
3771 #. type: Plain text
3772 #: build/C/man5/elf.5:1666
3773 msgid "Processor-specific hidden class."
3774 msgstr ""
3775
3776 #. type: TP
3777 #: build/C/man5/elf.5:1666
3778 #, no-wrap
3779 msgid "B<STV_HIDDEN>"
3780 msgstr ""
3781
3782 #. type: Plain text
3783 #: build/C/man5/elf.5:1669
3784 msgid "Symbol is unavailable in other modules."
3785 msgstr ""
3786
3787 #. type: TP
3788 #: build/C/man5/elf.5:1669
3789 #, no-wrap
3790 msgid "B<STV_PROTECTED>"
3791 msgstr ""
3792
3793 #. type: Plain text
3794 #: build/C/man5/elf.5:1672
3795 msgid "Not preemptible, not exported."
3796 msgstr ""
3797
3798 #. type: Plain text
3799 #: build/C/man5/elf.5:1675
3800 msgid "There are macros for extracting the visibility type:"
3801 msgstr ""
3802
3803 #. type: Plain text
3804 #: build/C/man5/elf.5:1679
3805 msgid "B<ELF32_ST_VISIBILITY>(other)  or B<ELF64_ST_VISIBILITY>(other)"
3806 msgstr ""
3807
3808 #. type: TP
3809 #: build/C/man5/elf.5:1681
3810 #, no-wrap
3811 msgid "I<st_shndx>"
3812 msgstr ""
3813
3814 #.  .El
3815 #. type: Plain text
3816 #: build/C/man5/elf.5:1689
3817 msgid ""
3818 "Every symbol table entry is \"defined\" in relation to some section.  This "
3819 "member holds the relevant section header table index."
3820 msgstr ""
3821
3822 #. type: Plain text
3823 #: build/C/man5/elf.5:1697
3824 msgid ""
3825 "Relocation is the process of connecting symbolic references with symbolic "
3826 "definitions.  Relocatable files must have information that describes how to "
3827 "modify their section contents, thus allowing executable and shared object "
3828 "files to hold the right information for a process's program image.  "
3829 "Relocation entries are these data."
3830 msgstr ""
3831
3832 #. type: Plain text
3833 #: build/C/man5/elf.5:1699
3834 msgid "Relocation structures that do not need an addend:"
3835 msgstr ""
3836
3837 #. type: Plain text
3838 #: build/C/man5/elf.5:1706
3839 #, no-wrap
3840 msgid ""
3841 "typedef struct {\n"
3842 "    Elf32_Addr r_offset;\n"
3843 "    uint32_t   r_info;\n"
3844 "} Elf32_Rel;\n"
3845 msgstr ""
3846
3847 #. type: Plain text
3848 #: build/C/man5/elf.5:1715
3849 #, no-wrap
3850 msgid ""
3851 "typedef struct {\n"
3852 "    Elf64_Addr r_offset;\n"
3853 "    uint64_t   r_info;\n"
3854 "} Elf64_Rel;\n"
3855 msgstr ""
3856
3857 #. type: Plain text
3858 #: build/C/man5/elf.5:1719
3859 msgid "Relocation structures that need an addend:"
3860 msgstr ""
3861
3862 #. type: Plain text
3863 #: build/C/man5/elf.5:1727
3864 #, no-wrap
3865 msgid ""
3866 "typedef struct {\n"
3867 "    Elf32_Addr r_offset;\n"
3868 "    uint32_t   r_info;\n"
3869 "    int32_t    r_addend;\n"
3870 "} Elf32_Rela;\n"
3871 msgstr ""
3872
3873 #. type: Plain text
3874 #: build/C/man5/elf.5:1737
3875 #, no-wrap
3876 msgid ""
3877 "typedef struct {\n"
3878 "    Elf64_Addr r_offset;\n"
3879 "    uint64_t   r_info;\n"
3880 "    int64_t    r_addend;\n"
3881 "} Elf64_Rela;\n"
3882 msgstr ""
3883
3884 #. type: TP
3885 #: build/C/man5/elf.5:1740
3886 #, no-wrap
3887 msgid "I<r_offset>"
3888 msgstr ""
3889
3890 #. type: Plain text
3891 #: build/C/man5/elf.5:1748
3892 msgid ""
3893 "This member gives the location at which to apply the relocation action.  For "
3894 "a relocatable file, the value is the byte offset from the beginning of the "
3895 "section to the storage unit affected by the relocation.  For an executable "
3896 "file or shared object, the value is the virtual address of the storage unit "
3897 "affected by the relocation."
3898 msgstr ""
3899
3900 #. type: TP
3901 #: build/C/man5/elf.5:1748
3902 #, no-wrap
3903 msgid "I<r_info>"
3904 msgstr ""
3905
3906 #. type: Plain text
3907 #: build/C/man5/elf.5:1763
3908 msgid ""
3909 "This member gives both the symbol table index with respect to which the "
3910 "relocation must be made and the type of relocation to apply.  Relocation "
3911 "types are processor specific.  When the text refers to a relocation entry's "
3912 "relocation type or symbol table index, it means the result of applying "
3913 "B<ELF_[32|64]_R_TYPE> or B<ELF[32|64]_R_SYM>, respectively, to the entry's "
3914 "I<r_info> member."
3915 msgstr ""
3916
3917 #. type: TP
3918 #: build/C/man5/elf.5:1763
3919 #, no-wrap
3920 msgid "I<r_addend>"
3921 msgstr ""
3922
3923 #.  .El
3924 #. type: Plain text
3925 #: build/C/man5/elf.5:1768
3926 msgid ""
3927 "This member specifies a constant addend used to compute the value to be "
3928 "stored into the relocatable field."
3929 msgstr ""
3930
3931 #. type: Plain text
3932 #: build/C/man5/elf.5:1773
3933 msgid ""
3934 "The .dynamic section contains a series of structures that hold relevant "
3935 "dynamic linking information.  The d_tag member controls the interpretation "
3936 "of d_un."
3937 msgstr ""
3938
3939 #. type: Plain text
3940 #: build/C/man5/elf.5:1784
3941 #, no-wrap
3942 msgid ""
3943 "typedef struct {\n"
3944 "    Elf32_Sword    d_tag;\n"
3945 "    union {\n"
3946 "        Elf32_Word d_val;\n"
3947 "        Elf32_Addr d_ptr;\n"
3948 "    } d_un;\n"
3949 "} Elf32_Dyn;\n"
3950 "extern Elf32_Dyn _DYNAMIC[];\n"
3951 msgstr ""
3952
3953 #. type: Plain text
3954 #: build/C/man5/elf.5:1797
3955 #, no-wrap
3956 msgid ""
3957 "typedef struct {\n"
3958 "    Elf64_Sxword    d_tag;\n"
3959 "    union {\n"
3960 "        Elf64_Xword d_val;\n"
3961 "        Elf64_Addr  d_ptr;\n"
3962 "    } d_un;\n"
3963 "} Elf64_Dyn;\n"
3964 "extern Elf64_Dyn _DYNAMIC[];\n"
3965 msgstr ""
3966
3967 #. type: TP
3968 #: build/C/man5/elf.5:1800
3969 #, no-wrap
3970 msgid "I<d_tag>"
3971 msgstr ""
3972
3973 #.  .Bl -tag -width "DT_SYMBOLIC"
3974 #. type: Plain text
3975 #: build/C/man5/elf.5:1804
3976 msgid "This member may have any of the following values:"
3977 msgstr ""
3978
3979 #. type: TP
3980 #: build/C/man5/elf.5:1805
3981 #, no-wrap
3982 msgid "B<DT_NULL>"
3983 msgstr ""
3984
3985 #. type: Plain text
3986 #: build/C/man5/elf.5:1808
3987 msgid "Marks end of dynamic section"
3988 msgstr ""
3989
3990 #. type: TP
3991 #: build/C/man5/elf.5:1808
3992 #, no-wrap
3993 msgid "B<DT_NEEDED>"
3994 msgstr ""
3995
3996 #. type: Plain text
3997 #: build/C/man5/elf.5:1811
3998 msgid "String table offset to name of a needed library"
3999 msgstr ""
4000
4001 #. type: TP
4002 #: build/C/man5/elf.5:1811
4003 #, no-wrap
4004 msgid "B<DT_PLTRELSZ>"
4005 msgstr ""
4006
4007 #. type: Plain text
4008 #: build/C/man5/elf.5:1814
4009 msgid "Size in bytes of PLT relocs"
4010 msgstr ""
4011
4012 #. type: TP
4013 #: build/C/man5/elf.5:1814
4014 #, no-wrap
4015 msgid "B<DT_PLTGOT>"
4016 msgstr ""
4017
4018 #. type: Plain text
4019 #: build/C/man5/elf.5:1817
4020 msgid "Address of PLT and/or GOT"
4021 msgstr ""
4022
4023 #. type: TP
4024 #: build/C/man5/elf.5:1817
4025 #, no-wrap
4026 msgid "B<DT_HASH>"
4027 msgstr ""
4028
4029 #. type: Plain text
4030 #: build/C/man5/elf.5:1820
4031 msgid "Address of symbol hash table"
4032 msgstr ""
4033
4034 #. type: TP
4035 #: build/C/man5/elf.5:1820
4036 #, no-wrap
4037 msgid "B<DT_STRTAB>"
4038 msgstr ""
4039
4040 #. type: Plain text
4041 #: build/C/man5/elf.5:1823
4042 msgid "Address of string table"
4043 msgstr ""
4044
4045 #. type: TP
4046 #: build/C/man5/elf.5:1823
4047 #, no-wrap
4048 msgid "B<DT_SYMTAB>"
4049 msgstr ""
4050
4051 #. type: Plain text
4052 #: build/C/man5/elf.5:1826
4053 msgid "Address of symbol table"
4054 msgstr ""
4055
4056 #. type: TP
4057 #: build/C/man5/elf.5:1826
4058 #, no-wrap
4059 msgid "B<DT_RELA>"
4060 msgstr ""
4061
4062 #. type: Plain text
4063 #: build/C/man5/elf.5:1829
4064 msgid "Address of Rela relocs table"
4065 msgstr ""
4066
4067 #. type: TP
4068 #: build/C/man5/elf.5:1829
4069 #, no-wrap
4070 msgid "B<DT_RELASZ>"
4071 msgstr ""
4072
4073 #. type: Plain text
4074 #: build/C/man5/elf.5:1832
4075 msgid "Size in bytes of Rela table"
4076 msgstr ""
4077
4078 #. type: TP
4079 #: build/C/man5/elf.5:1832
4080 #, no-wrap
4081 msgid "B<DT_RELAENT>"
4082 msgstr ""
4083
4084 #. type: Plain text
4085 #: build/C/man5/elf.5:1835
4086 msgid "Size in bytes of a Rela table entry"
4087 msgstr ""
4088
4089 #. type: TP
4090 #: build/C/man5/elf.5:1835
4091 #, no-wrap
4092 msgid "B<DT_STRSZ>"
4093 msgstr ""
4094
4095 #. type: Plain text
4096 #: build/C/man5/elf.5:1838
4097 msgid "Size in bytes of string table"
4098 msgstr ""
4099
4100 #. type: TP
4101 #: build/C/man5/elf.5:1838
4102 #, no-wrap
4103 msgid "B<DT_SYMENT>"
4104 msgstr ""
4105
4106 #. type: Plain text
4107 #: build/C/man5/elf.5:1841
4108 msgid "Size in bytes of a symbol table entry"
4109 msgstr ""
4110
4111 #. type: TP
4112 #: build/C/man5/elf.5:1841
4113 #, no-wrap
4114 msgid "B<DT_INIT>"
4115 msgstr ""
4116
4117 #. type: Plain text
4118 #: build/C/man5/elf.5:1844
4119 msgid "Address of the initialization function"
4120 msgstr ""
4121
4122 #. type: TP
4123 #: build/C/man5/elf.5:1844
4124 #, no-wrap
4125 msgid "B<DT_FINI>"
4126 msgstr ""
4127
4128 #. type: Plain text
4129 #: build/C/man5/elf.5:1847
4130 msgid "Address of the termination function"
4131 msgstr ""
4132
4133 #. type: TP
4134 #: build/C/man5/elf.5:1847
4135 #, no-wrap
4136 msgid "B<DT_SONAME>"
4137 msgstr ""
4138
4139 #. type: Plain text
4140 #: build/C/man5/elf.5:1850
4141 msgid "String table offset to name of shared object"
4142 msgstr ""
4143
4144 #. type: TP
4145 #: build/C/man5/elf.5:1850
4146 #, no-wrap
4147 msgid "B<DT_RPATH>"
4148 msgstr ""
4149
4150 #. type: Plain text
4151 #: build/C/man5/elf.5:1853
4152 msgid "String table offset to library search path (deprecated)"
4153 msgstr ""
4154
4155 #. type: TP
4156 #: build/C/man5/elf.5:1853
4157 #, no-wrap
4158 msgid "B<DT_SYMBOLIC>"
4159 msgstr ""
4160
4161 #. type: Plain text
4162 #: build/C/man5/elf.5:1856
4163 msgid "Alert linker to search this shared object before the executable for symbols"
4164 msgstr ""
4165
4166 #. type: TP
4167 #: build/C/man5/elf.5:1856
4168 #, no-wrap
4169 msgid "B<DT_REL>"
4170 msgstr ""
4171
4172 #. type: Plain text
4173 #: build/C/man5/elf.5:1859
4174 msgid "Address of Rel relocs table"
4175 msgstr ""
4176
4177 #. type: TP
4178 #: build/C/man5/elf.5:1859
4179 #, no-wrap
4180 msgid "B<DT_RELSZ>"
4181 msgstr ""
4182
4183 #. type: Plain text
4184 #: build/C/man5/elf.5:1862
4185 msgid "Size in bytes of Rel table"
4186 msgstr ""
4187
4188 #. type: TP
4189 #: build/C/man5/elf.5:1862
4190 #, no-wrap
4191 msgid "B<DT_RELENT>"
4192 msgstr ""
4193
4194 #. type: Plain text
4195 #: build/C/man5/elf.5:1865
4196 msgid "Size in bytes of a Rel table entry"
4197 msgstr ""
4198
4199 #. type: TP
4200 #: build/C/man5/elf.5:1865
4201 #, no-wrap
4202 msgid "B<DT_PLTREL>"
4203 msgstr ""
4204
4205 #. type: Plain text
4206 #: build/C/man5/elf.5:1868
4207 msgid "Type of reloc the PLT refers (Rela or Rel)"
4208 msgstr ""
4209
4210 #. type: TP
4211 #: build/C/man5/elf.5:1868
4212 #, no-wrap
4213 msgid "B<DT_DEBUG>"
4214 msgstr ""
4215
4216 #. type: Plain text
4217 #: build/C/man5/elf.5:1871
4218 msgid "Undefined use for debugging"
4219 msgstr ""
4220
4221 #. type: TP
4222 #: build/C/man5/elf.5:1871
4223 #, no-wrap
4224 msgid "B<DT_TEXTREL>"
4225 msgstr ""
4226
4227 #. type: Plain text
4228 #: build/C/man5/elf.5:1874
4229 msgid "Absence of this indicates no relocs should apply to a nonwritable segment"
4230 msgstr ""
4231
4232 #. type: TP
4233 #: build/C/man5/elf.5:1874
4234 #, no-wrap
4235 msgid "B<DT_JMPREL>"
4236 msgstr ""
4237
4238 #. type: Plain text
4239 #: build/C/man5/elf.5:1877
4240 msgid "Address of reloc entries solely for the PLT"
4241 msgstr ""
4242
4243 #. type: TP
4244 #: build/C/man5/elf.5:1877
4245 #, no-wrap
4246 msgid "B<DT_BIND_NOW>"
4247 msgstr ""
4248
4249 #. type: Plain text
4250 #: build/C/man5/elf.5:1881
4251 msgid ""
4252 "Instruct dynamic linker to process all relocs before transferring control to "
4253 "the executable"
4254 msgstr ""
4255
4256 #. type: TP
4257 #: build/C/man5/elf.5:1881
4258 #, no-wrap
4259 msgid "B<DT_RUNPATH>"
4260 msgstr ""
4261
4262 #. type: Plain text
4263 #: build/C/man5/elf.5:1884
4264 msgid "String table offset to library search path"
4265 msgstr ""
4266
4267 #. type: TP
4268 #: build/C/man5/elf.5:1884
4269 #, no-wrap
4270 msgid "B<DT_LOPROC>"
4271 msgstr ""
4272
4273 #. type: Plain text
4274 #: build/C/man5/elf.5:1887
4275 msgid "Start of processor-specific semantics"
4276 msgstr ""
4277
4278 #. type: TP
4279 #: build/C/man5/elf.5:1887
4280 #, no-wrap
4281 msgid "B<DT_HIPROC>"
4282 msgstr ""
4283
4284 #. type: Plain text
4285 #: build/C/man5/elf.5:1890
4286 msgid "End of processor-specific semantics"
4287 msgstr ""
4288
4289 #. type: TP
4290 #: build/C/man5/elf.5:1892
4291 #, no-wrap
4292 msgid "I<d_val>"
4293 msgstr ""
4294
4295 #. type: Plain text
4296 #: build/C/man5/elf.5:1895
4297 msgid "This member represents integer values with various interpretations."
4298 msgstr ""
4299
4300 #. type: TP
4301 #: build/C/man5/elf.5:1895
4302 #, no-wrap
4303 msgid "I<d_ptr>"
4304 msgstr ""
4305
4306 #. type: Plain text
4307 #: build/C/man5/elf.5:1903
4308 msgid ""
4309 "This member represents program virtual addresses.  When interpreting these "
4310 "addresses, the actual address should be computed based on the original file "
4311 "value and memory base address.  Files do not contain relocation entries to "
4312 "fixup these addresses."
4313 msgstr ""
4314
4315 #. type: TP
4316 #: build/C/man5/elf.5:1903
4317 #, no-wrap
4318 msgid "I<_DYNAMIC>"
4319 msgstr ""
4320
4321 #.  .El
4322 #. type: Plain text
4323 #: build/C/man5/elf.5:1908
4324 msgid ""
4325 "Array containing all the dynamic structures in the .dynamic section.  This "
4326 "is automatically populated by the linker."
4327 msgstr ""
4328
4329 #.  OpenBSD
4330 #.  ELF support first appeared in
4331 #.  OpenBSD 1.2,
4332 #.  although not all supported platforms use it as the native
4333 #.  binary file format.
4334 #. type: Plain text
4335 #: build/C/man5/elf.5:1917
4336 msgid "ELF first appeared in System V.  The ELF format is an adopted standard."
4337 msgstr ""
4338
4339 #.  .SH AUTHORS
4340 #.  The original version of this manual page was written by
4341 #.  .An Jeroen Ruigrok van der Werven
4342 #.  .Aq asmodai@FreeBSD.org
4343 #.  with inspiration from BSDi's
4344 #.  .Bsx
4345 #.  .Nm elf
4346 #.  man page.
4347 #. type: Plain text
4348 #: build/C/man5/elf.5:1935
4349 msgid ""
4350 "The extensions for I<e_phnum>, I<e_shnum> and I<e_strndx> respectively are "
4351 "Linux extensions.  Sun, BSD and AMD64 also support them; for further "
4352 "information, look under SEE ALSO."
4353 msgstr ""
4354
4355 #. type: Plain text
4356 #: build/C/man5/elf.5:1942
4357 msgid "B<as>(1), B<gdb>(1), B<ld>(1), B<objdump>(1), B<execve>(2), B<core>(5)"
4358 msgstr ""
4359
4360 #. type: Plain text
4361 #: build/C/man5/elf.5:1945
4362 msgid "Hewlett-Packard, I<Elf-64 Object File Format>."
4363 msgstr ""
4364
4365 #. type: Plain text
4366 #: build/C/man5/elf.5:1948
4367 msgid "Santa Cruz Operation, I<System V Application Binary Interface>."
4368 msgstr ""
4369
4370 #. type: Plain text
4371 #: build/C/man5/elf.5:1952
4372 msgid ""
4373 "UNIX System Laboratories, \"Object Files\", I<Executable and Linking Format "
4374 "(ELF)>."
4375 msgstr ""
4376
4377 #. type: Plain text
4378 #: build/C/man5/elf.5:1955
4379 msgid "Sun Microsystems, I<Linker and Libraries Guide>."
4380 msgstr ""
4381
4382 #. type: Plain text
4383 #: build/C/man5/elf.5:1958
4384 msgid ""
4385 "AMD64 ABI Draft, I<System V Application Binary Interface AMD64 Architecture "
4386 "Processor Supplement>."
4387 msgstr ""
4388
4389 #. type: TH
4390 #: build/C/man3/end.3:25
4391 #, no-wrap
4392 msgid "END"
4393 msgstr ""
4394
4395 #. type: TH
4396 #: build/C/man3/end.3:25
4397 #, no-wrap
4398 msgid "2008-07-17"
4399 msgstr ""
4400
4401 #. type: Plain text
4402 #: build/C/man3/end.3:28
4403 msgid "etext, edata, end - end of program segments"
4404 msgstr ""
4405
4406 #. type: Plain text
4407 #: build/C/man3/end.3:33
4408 #, no-wrap
4409 msgid ""
4410 "B<extern>I< etext>B<;>\n"
4411 "B<extern>I< edata>B<;>\n"
4412 "B<extern>I< end>B<;>\n"
4413 msgstr ""
4414
4415 #. type: Plain text
4416 #: build/C/man3/end.3:37
4417 msgid "The addresses of these symbols indicate the end of various program segments:"
4418 msgstr ""
4419
4420 #. type: TP
4421 #: build/C/man3/end.3:37
4422 #, no-wrap
4423 msgid "I<etext>"
4424 msgstr ""
4425
4426 #. type: Plain text
4427 #: build/C/man3/end.3:41
4428 msgid ""
4429 "This is the first address past the end of the text segment (the program "
4430 "code)."
4431 msgstr ""
4432
4433 #. type: TP
4434 #: build/C/man3/end.3:41
4435 #, no-wrap
4436 msgid "I<edata>"
4437 msgstr ""
4438
4439 #. type: Plain text
4440 #: build/C/man3/end.3:45
4441 msgid "This is the first address past the end of the initialized data segment."
4442 msgstr ""
4443
4444 #. type: TP
4445 #: build/C/man3/end.3:45
4446 #, no-wrap
4447 msgid "I<end>"
4448 msgstr ""
4449
4450 #. type: Plain text
4451 #: build/C/man3/end.3:49
4452 msgid ""
4453 "This is the first address past the end of the uninitialized data segment "
4454 "(also known as the BSS segment)."
4455 msgstr ""
4456
4457 #. type: Plain text
4458 #: build/C/man3/end.3:52
4459 msgid ""
4460 "Although these symbols have long been provided on most UNIX systems, they "
4461 "are not standardized; use with caution."
4462 msgstr ""
4463
4464 #. type: Plain text
4465 #: build/C/man3/end.3:55
4466 msgid ""
4467 "The program must explicitly declare these symbols; they are not defined in "
4468 "any header file."
4469 msgstr ""
4470
4471 #. type: Plain text
4472 #: build/C/man3/end.3:63
4473 msgid ""
4474 "On some systems the names of these symbols are preceded by underscores, "
4475 "thus: I<_etext>, I<_edata>, and I<_end>.  These symbols are also defined for "
4476 "programs compiled on Linux."
4477 msgstr ""
4478
4479 #. type: Plain text
4480 #: build/C/man3/end.3:75
4481 msgid ""
4482 "At the start of program execution, the program break will be somewhere near "
4483 "I<&end> (perhaps at the start of the following page).  However, the break "
4484 "will change as memory is allocated via B<brk>(2)  or B<malloc>(3).  Use "
4485 "B<sbrk>(2)  with an argument of zero to find the current value of the "
4486 "program break."
4487 msgstr ""
4488
4489 #. type: Plain text
4490 #: build/C/man3/end.3:77
4491 msgid "When run, the program below produces output such as the following:"
4492 msgstr ""
4493
4494 #. type: Plain text
4495 #: build/C/man3/end.3:85
4496 #, no-wrap
4497 msgid ""
4498 "$B< ./a.out>\n"
4499 "First address past:\n"
4500 "    program text (etext)       0x8048568\n"
4501 "    initialized data (edata)   0x804a01c\n"
4502 "    uninitialized data (end)   0x804a024\n"
4503 msgstr ""
4504
4505 #. type: SS
4506 #: build/C/man3/end.3:87
4507 #, no-wrap
4508 msgid "Program source"
4509 msgstr ""
4510
4511 #. type: Plain text
4512 #: build/C/man3/end.3:92
4513 #, no-wrap
4514 msgid ""
4515 "#include E<lt>stdio.hE<gt>\n"
4516 "#include E<lt>stdlib.hE<gt>\n"
4517 msgstr ""
4518
4519 #. type: Plain text
4520 #: build/C/man3/end.3:95
4521 #, no-wrap
4522 msgid ""
4523 "extern char etext, edata, end; /* The symbols must have some type,\n"
4524 "                                   or \"gcc -Wall\" complains */\n"
4525 msgstr ""
4526
4527 #. type: Plain text
4528 #: build/C/man3/end.3:103
4529 #, no-wrap
4530 msgid ""
4531 "int\n"
4532 "main(int argc, char *argv[])\n"
4533 "{\n"
4534 "    printf(\"First address past:\\en\");\n"
4535 "    printf(\"    program text (etext)      %10p\\en\", &etext);\n"
4536 "    printf(\"    initialized data (edata)  %10p\\en\", &edata);\n"
4537 "    printf(\"    uninitialized data (end)  %10p\\en\", &end);\n"
4538 msgstr ""
4539
4540 #. type: Plain text
4541 #: build/C/man3/end.3:112
4542 msgid "B<objdump>(1), B<readelf>(1), B<sbrk>(2), B<elf>(5)"
4543 msgstr ""
4544
4545 #. type: TH
4546 #: build/C/man8/ld.so.8:2
4547 #, no-wrap
4548 msgid "LD.SO"
4549 msgstr ""
4550
4551 #. type: TH
4552 #: build/C/man8/ld.so.8:2
4553 #, no-wrap
4554 msgid "2012-04-17"
4555 msgstr ""
4556
4557 #. type: Plain text
4558 #: build/C/man8/ld.so.8:5
4559 msgid "ld.so, ld-linux.so* - dynamic linker/loader"
4560 msgstr ""
4561
4562 #. type: Plain text
4563 #: build/C/man8/ld.so.8:12
4564 msgid ""
4565 "The dynamic linker can be run either indirectly by running some dynamically "
4566 "linked program or library (in which case no command-line options to the "
4567 "dynamic linker can be passed and, in the ELF case, the dynamic linker which "
4568 "is stored in the B<.interp> section of the program is executed) or directly "
4569 "by running:"
4570 msgstr ""
4571
4572 #. type: Plain text
4573 #: build/C/man8/ld.so.8:15
4574 msgid "I</lib/ld-linux.so.*> [OPTIONS] [PROGRAM [ARGUMENTS]]"
4575 msgstr ""
4576
4577 #. type: Plain text
4578 #: build/C/man8/ld.so.8:22
4579 msgid ""
4580 "The programs B<ld.so> and B<ld-linux.so*> find and load the shared libraries "
4581 "needed by a program, prepare the program to run, and then run it."
4582 msgstr ""
4583
4584 #. type: Plain text
4585 #: build/C/man8/ld.so.8:29
4586 msgid ""
4587 "Linux binaries require dynamic linking (linking at run time)  unless the "
4588 "B<-static> option was given to B<ld>(1)  during compilation."
4589 msgstr ""
4590
4591 #. type: Plain text
4592 #: build/C/man8/ld.so.8:42
4593 msgid ""
4594 "The program B<ld.so> handles a.out binaries, a format used long ago; "
4595 "B<ld-linux.so*> handles ELF (I</lib/ld-linux.so.1> for libc5, "
4596 "I</lib/ld-linux.so.2> for glibc2), which everybody has been using for years "
4597 "now.  Otherwise both have the same behavior, and use the same support files "
4598 "and programs B<ldd>(1), B<ldconfig>(8)  and I</etc/ld.so.conf>."
4599 msgstr ""
4600
4601 #. type: Plain text
4602 #: build/C/man8/ld.so.8:45
4603 msgid ""
4604 "The shared libraries needed by the program are searched for in the following "
4605 "order:"
4606 msgstr ""
4607
4608 #. type: Plain text
4609 #: build/C/man8/ld.so.8:50
4610 msgid ""
4611 "(ELF only) Using the directories specified in the DT_RPATH dynamic section "
4612 "attribute of the binary if present and DT_RUNPATH attribute does not exist.  "
4613 "Use of DT_RPATH is deprecated."
4614 msgstr ""
4615
4616 #. type: Plain text
4617 #: build/C/man8/ld.so.8:55
4618 msgid ""
4619 "Using the environment variable B<LD_LIBRARY_PATH>.  Except if the executable "
4620 "is a set-user-ID/set-group-ID binary, in which case it is ignored."
4621 msgstr ""
4622
4623 #. type: Plain text
4624 #: build/C/man8/ld.so.8:59
4625 msgid ""
4626 "(ELF only) Using the directories specified in the DT_RUNPATH dynamic section "
4627 "attribute of the binary if present."
4628 msgstr ""
4629
4630 #. type: Plain text
4631 #: build/C/man8/ld.so.8:69
4632 msgid ""
4633 "From the cache file I</etc/ld.so.cache> which contains a compiled list of "
4634 "candidate libraries previously found in the augmented library path.  If, "
4635 "however, the binary was linked with the B<-z nodeflib> linker option, "
4636 "libraries in the default library paths are skipped.  Libraries installed in "
4637 "hardware capability directories (see below)  are preferred to other "
4638 "libraries."
4639 msgstr ""
4640
4641 #. type: Plain text
4642 #: build/C/man8/ld.so.8:77
4643 msgid ""
4644 "In the default path I</lib>, and then I</usr/lib>.  If the binary was linked "
4645 "with the B<-z nodeflib> linker option, this step is skipped."
4646 msgstr ""
4647
4648 #. type: SS
4649 #: build/C/man8/ld.so.8:77
4650 #, no-wrap
4651 msgid "$ORIGIN and rpath"
4652 msgstr ""
4653
4654 #.  ld.so also understands $LIB, with the same meaning as $ORIGIN/lib,
4655 #.  it appears.
4656 #
4657 #.  There is also $PLATFORM.  This is a kind of wildcard
4658 #.  of directories related at AT_HWCAP.  To get an idea of the
4659 #.  places that $PLATFORM would match, look at the output of the
4660 #.  following:
4661 #
4662 #.  mkdir /tmp/d
4663 #.  LD_LIBRARY_PATH=/tmp/d strace -e open /bin/date 2>&1 | grep /tmp/d
4664 #
4665 #.  ld.so lets names be abbreviated, so $O will work for $ORIGIN;
4666 #.  Don't do this!!
4667 #. type: Plain text
4668 #: build/C/man8/ld.so.8:112
4669 msgid ""
4670 "B<ld.so> understands the string I<$ORIGIN> (or equivalently I<${ORIGIN}>)  "
4671 "in an rpath specification (DT_RPATH or DT_RUNPATH) to mean the directory "
4672 "containing the application executable.  Thus, an application located in "
4673 "I<somedir/app> could be compiled with I<gcc "
4674 "-Wl,-rpath,\\(aq$ORIGIN/../lib\\(aq> so that it finds an associated shared "
4675 "library in I<somedir/lib> no matter where I<somedir> is located in the "
4676 "directory hierarchy.  This facilitates the creation of \"turn-key\" "
4677 "applications that do not need to be installed into special directories, but "
4678 "can instead be unpacked into any directory and still find their own shared "
4679 "libraries."
4680 msgstr ""
4681
4682 #. type: SH
4683 #: build/C/man8/ld.so.8:112 build/C/man8/ldconfig.8:100 build/C/man1/ldd.1:19
4684 #, no-wrap
4685 msgid "OPTIONS"
4686 msgstr ""
4687
4688 #. type: TP
4689 #: build/C/man8/ld.so.8:113
4690 #, no-wrap
4691 msgid "B<--list>"
4692 msgstr ""
4693
4694 #. type: Plain text
4695 #: build/C/man8/ld.so.8:116
4696 msgid "List all dependencies and how they are resolved."
4697 msgstr ""
4698
4699 #. type: TP
4700 #: build/C/man8/ld.so.8:116
4701 #, no-wrap
4702 msgid "B<--verify>"
4703 msgstr ""
4704
4705 #. type: Plain text
4706 #: build/C/man8/ld.so.8:120
4707 msgid ""
4708 "Verify that program is dynamically linked and this dynamic linker can handle "
4709 "it."
4710 msgstr ""
4711
4712 #. type: TP
4713 #: build/C/man8/ld.so.8:120
4714 #, no-wrap
4715 msgid "B<--library-path PATH>"
4716 msgstr ""
4717
4718 #. type: Plain text
4719 #: build/C/man8/ld.so.8:125
4720 msgid ""
4721 "Use PATH instead of B<LD_LIBRARY_PATH> environment variable setting (see "
4722 "below)."
4723 msgstr ""
4724
4725 #. type: TP
4726 #: build/C/man8/ld.so.8:125
4727 #, no-wrap
4728 msgid "B<--inhibit-rpath LIST>"
4729 msgstr ""
4730
4731 #. type: Plain text
4732 #: build/C/man8/ld.so.8:131
4733 msgid ""
4734 "Ignore RPATH and RUNPATH information in object names in LIST.  This option "
4735 "is ignored if B<ld.so> is set-user-ID or set-group-ID."
4736 msgstr ""
4737
4738 #. type: TP
4739 #: build/C/man8/ld.so.8:131
4740 #, no-wrap
4741 msgid "B<--audit LIST>"
4742 msgstr ""
4743
4744 #. type: Plain text
4745 #: build/C/man8/ld.so.8:134
4746 msgid "Use objects named in LIST as auditors."
4747 msgstr ""
4748
4749 #. type: SH
4750 #: build/C/man8/ld.so.8:134
4751 #, no-wrap
4752 msgid "HARDWARE CAPABILITIES"
4753 msgstr ""
4754
4755 #. type: Plain text
4756 #: build/C/man8/ld.so.8:145
4757 msgid ""
4758 "Some libraries are compiled using hardware-specific instructions which do "
4759 "not exist on every CPU.  Such libraries should be installed in directories "
4760 "whose names define the required hardware capabilities, such as "
4761 "I</usr/lib/sse2/>.  The dynamic linker checks these directories against the "
4762 "hardware of the machine and selects the most suitable version of a given "
4763 "library.  Hardware capability directories can be cascaded to combine CPU "
4764 "features.  The list of supported hardware capability names depends on the "
4765 "CPU.  The following names are currently recognized:"
4766 msgstr ""
4767
4768 #. type: TP
4769 #: build/C/man8/ld.so.8:145
4770 #, no-wrap
4771 msgid "B<Alpha>"
4772 msgstr ""
4773
4774 #. type: Plain text
4775 #: build/C/man8/ld.so.8:148
4776 msgid "ev4, ev5, ev56, ev6, ev67"
4777 msgstr ""
4778
4779 #. type: TP
4780 #: build/C/man8/ld.so.8:148
4781 #, no-wrap
4782 msgid "B<MIPS>"
4783 msgstr ""
4784
4785 #. type: Plain text
4786 #: build/C/man8/ld.so.8:151
4787 msgid "loongson2e, loongson2f, octeon, octeon2"
4788 msgstr ""
4789
4790 #. type: TP
4791 #: build/C/man8/ld.so.8:151
4792 #, no-wrap
4793 msgid "B<PowerPC>"
4794 msgstr ""
4795
4796 #. type: Plain text
4797 #: build/C/man8/ld.so.8:156
4798 msgid ""
4799 "4xxmac, altivec, arch_2_05, arch_2_06, booke, cellbe, dfp, efpdouble, "
4800 "efpsingle, fpu, ic_snoop, mmu, notb, pa6t, power4, power5, power5+, power6x, "
4801 "ppc32, ppc601, ppc64, smt, spe, ucache, vsx"
4802 msgstr ""
4803
4804 #. type: TP
4805 #: build/C/man8/ld.so.8:156
4806 #, no-wrap
4807 msgid "B<SPARC>"
4808 msgstr ""
4809
4810 #. type: Plain text
4811 #: build/C/man8/ld.so.8:159
4812 msgid "flush, muldiv, stbar, swap, ultra3, v9, v9v, v9v2"
4813 msgstr ""
4814
4815 #. type: TP
4816 #: build/C/man8/ld.so.8:159
4817 #, no-wrap
4818 msgid "B<s390>"
4819 msgstr ""
4820
4821 #. type: Plain text
4822 #: build/C/man8/ld.so.8:163
4823 msgid ""
4824 "dfp, eimm, esan3, etf3enh, g5, highgprs, hpage, ldisp, msa, stfle, z900, "
4825 "z990, z9-109, z10, zarch"
4826 msgstr ""
4827
4828 #. type: TP
4829 #: build/C/man8/ld.so.8:164
4830 #, no-wrap
4831 msgid "B<x86 (32-bit only)>"
4832 msgstr ""
4833
4834 #. type: Plain text
4835 #: build/C/man8/ld.so.8:168
4836 msgid ""
4837 "acpi, apic, clflush, cmov, cx8, dts, fxsr, ht, i386, i486, i586, i686, mca, "
4838 "mmx, mtrr, pat, pbe, pge, pn, pse36, sep, ss, sse, sse2, tm"
4839 msgstr ""
4840
4841 #. type: SH
4842 #: build/C/man8/ld.so.8:168
4843 #, no-wrap
4844 msgid "ENVIRONMENT"
4845 msgstr ""
4846
4847 #. type: Plain text
4848 #: build/C/man8/ld.so.8:170
4849 msgid "There are four important environment variables."
4850 msgstr ""
4851
4852 #. type: TP
4853 #: build/C/man8/ld.so.8:170
4854 #, no-wrap
4855 msgid "B<LD_BIND_NOW>"
4856 msgstr ""
4857
4858 #. type: Plain text
4859 #: build/C/man8/ld.so.8:178
4860 msgid ""
4861 "(libc5; glibc since 2.1.1)  If set to a nonempty string, causes the dynamic "
4862 "linker to resolve all symbols at program startup instead of deferring "
4863 "function call resolution to the point when they are first referenced.  This "
4864 "is useful when using a debugger."
4865 msgstr ""
4866
4867 #. type: TP
4868 #: build/C/man8/ld.so.8:178
4869 #, no-wrap
4870 msgid "B<LD_LIBRARY_PATH>"
4871 msgstr ""
4872
4873 #. type: Plain text
4874 #: build/C/man8/ld.so.8:185
4875 msgid ""
4876 "A colon-separated list of directories in which to search for ELF libraries "
4877 "at execution-time.  Similar to the B<PATH> environment variable."
4878 msgstr ""
4879
4880 #. type: TP
4881 #: build/C/man8/ld.so.8:185
4882 #, no-wrap
4883 msgid "B<LD_PRELOAD>"
4884 msgstr ""
4885
4886 #. type: Plain text
4887 #: build/C/man8/ld.so.8:193
4888 msgid ""
4889 "A whitespace-separated list of additional, user-specified, ELF shared "
4890 "libraries to be loaded before all others.  This can be used to selectively "
4891 "override functions in other shared libraries.  For set-user-ID/set-group-ID "
4892 "ELF binaries, only libraries in the standard search directories that are "
4893 "also set-user-ID will be loaded."
4894 msgstr ""
4895
4896 #. type: TP
4897 #: build/C/man8/ld.so.8:193
4898 #, no-wrap
4899 msgid "B<LD_TRACE_LOADED_OBJECTS>"
4900 msgstr ""
4901
4902 #. type: Plain text
4903 #: build/C/man8/ld.so.8:200
4904 msgid ""
4905 "(ELF only)  If set to a nonempty string, causes the program to list its "
4906 "dynamic library dependencies, as if run by B<ldd>(1), instead of running "
4907 "normally."
4908 msgstr ""
4909
4910 #. type: Plain text
4911 #: build/C/man8/ld.so.8:203
4912 msgid ""
4913 "Then there are lots of more or less obscure variables, many obsolete or only "
4914 "for internal use."
4915 msgstr ""
4916
4917 #. type: TP
4918 #: build/C/man8/ld.so.8:203
4919 #, no-wrap
4920 msgid "B<LD_AOUT_LIBRARY_PATH>"
4921 msgstr ""
4922
4923 #. type: Plain text
4924 #: build/C/man8/ld.so.8:211
4925 msgid ""
4926 "(libc5)  Version of B<LD_LIBRARY_PATH> for a.out binaries only.  Old "
4927 "versions of ld-linux.so.1 also supported B<LD_ELF_LIBRARY_PATH>."
4928 msgstr ""
4929
4930 #. type: TP
4931 #: build/C/man8/ld.so.8:211
4932 #, no-wrap
4933 msgid "B<LD_AOUT_PRELOAD>"
4934 msgstr ""
4935
4936 #. type: Plain text
4937 #: build/C/man8/ld.so.8:219
4938 msgid ""
4939 "(libc5)  Version of B<LD_PRELOAD> for a.out binaries only.  Old versions of "
4940 "ld-linux.so.1 also supported B<LD_ELF_PRELOAD>."
4941 msgstr ""
4942
4943 #. type: TP
4944 #: build/C/man8/ld.so.8:219
4945 #, no-wrap
4946 msgid "B<LD_AUDIT>"
4947 msgstr ""
4948
4949 #. type: Plain text
4950 #: build/C/man8/ld.so.8:229
4951 msgid ""
4952 "(glibc since 2.4)  A colon-separated list of user-specified, ELF shared "
4953 "objects to be loaded before all others in a separate linker namespace (i.e., "
4954 "one that does not intrude upon the normal symbol bindings that would occur "
4955 "in the process).  These libraries can be used to audit the operation of the "
4956 "dynamic linker.  B<LD_AUDIT> is ignored for set-user-ID/set-group-ID "
4957 "binaries."
4958 msgstr ""
4959
4960 #. type: Plain text
4961 #: build/C/man8/ld.so.8:242
4962 msgid ""
4963 "The dynamic linker will notify the audit libraries at so-called auditing "
4964 "checkpoints\\(emfor example, loading a new library, resolving a symbol, or "
4965 "calling a symbol from another shared object\\(emby calling an appropriate "
4966 "function within the audit library.  For details, see B<rtld-audit>(7).  The "
4967 "auditing interface is largely compatible with that provided on Solaris, as "
4968 "described in its I<Linker and Libraries Guide>, in the chapter I<Runtime "
4969 "Linker Auditing Interface>."
4970 msgstr ""
4971
4972 #. type: TP
4973 #: build/C/man8/ld.so.8:242
4974 #, no-wrap
4975 msgid "B<LD_BIND_NOT>"
4976 msgstr ""
4977
4978 #. type: Plain text
4979 #: build/C/man8/ld.so.8:247
4980 msgid ""
4981 "(glibc since 2.1.95)  Do not update the GOT (global offset table) and PLT "
4982 "(procedure linkage table)  after resolving a symbol."
4983 msgstr ""
4984
4985 #. type: TP
4986 #: build/C/man8/ld.so.8:247
4987 #, no-wrap
4988 msgid "B<LD_DEBUG>"
4989 msgstr ""
4990
4991 #. type: Plain text
4992 #: build/C/man8/ld.so.8:260
4993 msgid ""
4994 "(glibc since 2.1)  Output verbose debugging information about the dynamic "
4995 "linker.  If set to B<all> prints all debugging information it has, if set to "
4996 "B<help> prints a help message about which categories can be specified in "
4997 "this environment variable.  Since glibc 2.3.4, B<LD_DEBUG> is ignored for "
4998 "set-user-ID/set-group-ID binaries."
4999 msgstr ""
5000
5001 #. type: TP
5002 #: build/C/man8/ld.so.8:260
5003 #, no-wrap
5004 msgid "B<LD_DEBUG_OUTPUT>"
5005 msgstr ""
5006
5007 #. type: Plain text
5008 #: build/C/man8/ld.so.8:268
5009 msgid ""
5010 "(glibc since 2.1)  File where B<LD_DEBUG> output should be fed into, default "
5011 "is standard output.  B<LD_DEBUG_OUTPUT> is ignored for "
5012 "set-user-ID/set-group-ID binaries."
5013 msgstr ""
5014
5015 #. type: TP
5016 #: build/C/man8/ld.so.8:268
5017 #, no-wrap
5018 msgid "B<LD_DYNAMIC_WEAK>"
5019 msgstr ""
5020
5021 #. type: Plain text
5022 #: build/C/man8/ld.so.8:275
5023 msgid ""
5024 "(glibc since 2.1.91)  Allow weak symbols to be overridden (reverting to old "
5025 "glibc behavior).  For security reasons, since glibc 2.3.4, "
5026 "B<LD_DYNAMIC_WEAK> is ignored for set-user-ID/set-group-ID binaries."
5027 msgstr ""
5028
5029 #. type: TP
5030 #: build/C/man8/ld.so.8:275
5031 #, no-wrap
5032 msgid "B<LD_HWCAP_MASK>"
5033 msgstr ""
5034
5035 #. type: Plain text
5036 #: build/C/man8/ld.so.8:279
5037 msgid "(glibc since 2.1)  Mask for hardware capabilities."
5038 msgstr ""
5039
5040 #. type: TP
5041 #: build/C/man8/ld.so.8:279
5042 #, no-wrap
5043 msgid "B<LD_KEEPDIR>"
5044 msgstr ""
5045
5046 #. type: Plain text
5047 #: build/C/man8/ld.so.8:284
5048 msgid ""
5049 "(a.out only)(libc5)  Don't ignore the directory in the names of a.out "
5050 "libraries to be loaded.  Use of this option is strongly discouraged."
5051 msgstr ""
5052
5053 #. type: TP
5054 #: build/C/man8/ld.so.8:284
5055 #, no-wrap
5056 msgid "B<LD_NOWARN>"
5057 msgstr ""
5058
5059 #. type: Plain text
5060 #: build/C/man8/ld.so.8:289
5061 msgid ""
5062 "(a.out only)(libc5)  Suppress warnings about a.out libraries with "
5063 "incompatible minor version numbers."
5064 msgstr ""
5065
5066 #. type: TP
5067 #: build/C/man8/ld.so.8:289
5068 #, no-wrap
5069 msgid "B<LD_ORIGIN_PATH>"
5070 msgstr ""
5071
5072 #.  Only used if $ORIGIN can't be determined by normal means
5073 #.  (from the origin path saved at load time, or from /proc/self/exe)?
5074 #. type: Plain text
5075 #: build/C/man8/ld.so.8:298
5076 msgid ""
5077 "(glibc since 2.1)  Path where the binary is found (for non-set-user-ID "
5078 "programs).  For security reasons, since glibc 2.4, B<LD_ORIGIN_PATH> is "
5079 "ignored for set-user-ID/set-group-ID binaries."
5080 msgstr ""
5081
5082 #. type: TP
5083 #: build/C/man8/ld.so.8:298
5084 #, no-wrap
5085 msgid "B<LD_POINTER_GUARD>"
5086 msgstr ""
5087
5088 #. type: Plain text
5089 #: build/C/man8/ld.so.8:310
5090 msgid ""
5091 "(glibc since 2.4)  Set to 0 to disable pointer guarding.  Any other value "
5092 "enables pointer guarding, which is also the default.  Pointer guarding is a "
5093 "security mechanism whereby some pointers to code stored in writable program "
5094 "memory (return addresses saved by B<setjmp>(3)  or function pointers used by "
5095 "various glibc internals) are mangled semi-randomly to make it more difficult "
5096 "for an attacker to hijack the pointers for use in the event of a buffer "
5097 "overrun or stack-smashing attack."
5098 msgstr ""
5099
5100 #. type: TP
5101 #: build/C/man8/ld.so.8:310
5102 #, no-wrap
5103 msgid "B<LD_PROFILE>"
5104 msgstr ""
5105
5106 #. type: Plain text
5107 #: build/C/man8/ld.so.8:317
5108 msgid ""
5109 "(glibc since 2.1)  Shared object to be profiled, specified either as a "
5110 "pathname or a soname.  Profiling output is written to the file whose name "
5111 "is: \"I<$LD_PROFILE_OUTPUT>/I<$LD_PROFILE>.profile\"."
5112 msgstr ""
5113
5114 #. type: TP
5115 #: build/C/man8/ld.so.8:317
5116 #, no-wrap
5117 msgid "B<LD_PROFILE_OUTPUT>"
5118 msgstr ""
5119
5120 #. type: Plain text
5121 #: build/C/man8/ld.so.8:330
5122 msgid ""
5123 "(glibc since 2.1)  Directory where B<LD_PROFILE> output should be written.  "
5124 "If this variable is not defined, or is defined as an empty string, then the "
5125 "default is I</var/tmp>.  B<LD_PROFILE_OUTPUT> is ignored for set-user-ID and "
5126 "set-group-ID programs, which always use I</var/profile>."
5127 msgstr ""
5128
5129 #. type: TP
5130 #: build/C/man8/ld.so.8:330
5131 #, no-wrap
5132 msgid "B<LD_SHOW_AUXV>"
5133 msgstr ""
5134
5135 #.  FIXME
5136 #.  Document LD_TRACE_PRELINKING (e.g.: LD_TRACE_PRELINKING=libx1.so ./prog)
5137 #.  Since glibc 2.3
5138 #.  Also enables DL_DEBUG_PRELINK
5139 #. type: Plain text
5140 #: build/C/man8/ld.so.8:341
5141 msgid ""
5142 "(glibc since 2.1)  Show auxiliary array passed up from the kernel.  For "
5143 "security reasons, since glibc 2.3.5, B<LD_SHOW_AUXV> is ignored for "
5144 "set-user-ID/set-group-ID binaries."
5145 msgstr ""
5146
5147 #. type: TP
5148 #: build/C/man8/ld.so.8:341
5149 #, no-wrap
5150 msgid "B<LD_USE_LOAD_BIAS>"
5151 msgstr ""
5152
5153 #.  http://sources.redhat.com/ml/libc-hacker/2003-11/msg00127.html
5154 #.  Subject: [PATCH] Support LD_USE_LOAD_BIAS
5155 #.  Jakub Jelinek
5156 #. type: Plain text
5157 #: build/C/man8/ld.so.8:360
5158 msgid ""
5159 "By default (i.e., if this variable is not defined)  executables and "
5160 "prelinked shared objects will honor base addresses of their dependent "
5161 "libraries and (nonprelinked) position-independent executables (PIEs)  and "
5162 "other shared objects will not honor them.  If B<LD_USE_LOAD_BIAS> is defined "
5163 "wit the value, both executables and PIEs will honor the base addresses.  If "
5164 "B<LD_USE_LOAD_BIAS> is defined with the value 0, neither executables nor "
5165 "PIEs will honor the base addresses.  This variable is ignored by set-user-ID "
5166 "and set-group-ID programs."
5167 msgstr ""
5168
5169 #. type: TP
5170 #: build/C/man8/ld.so.8:360
5171 #, no-wrap
5172 msgid "B<LD_VERBOSE>"
5173 msgstr ""
5174
5175 #. type: Plain text
5176 #: build/C/man8/ld.so.8:372
5177 msgid ""
5178 "(glibc since 2.1)  If set to a nonempty string, output symbol versioning "
5179 "information about the program if querying information about the program "
5180 "(i.e., either B<LD_TRACE_LOADED_OBJECTS> has been set, or B<--list> or "
5181 "B<--verify> options have been given to the dynamic linker)."
5182 msgstr ""
5183
5184 #. type: TP
5185 #: build/C/man8/ld.so.8:372
5186 #, no-wrap
5187 msgid "B<LD_WARN>"
5188 msgstr ""
5189
5190 #. type: Plain text
5191 #: build/C/man8/ld.so.8:376
5192 msgid ""
5193 "(ELF only)(glibc since 2.1.3)  If set to a nonempty string, warn about "
5194 "unresolved symbols."
5195 msgstr ""
5196
5197 #. type: TP
5198 #: build/C/man8/ld.so.8:376
5199 #, no-wrap
5200 msgid "B<LDD_ARGV0>"
5201 msgstr ""
5202
5203 #. type: Plain text
5204 #: build/C/man8/ld.so.8:383
5205 msgid "(libc5)  I<argv>[0] to be used by B<ldd>(1)  when none is present."
5206 msgstr ""
5207
5208 #. type: SH
5209 #: build/C/man8/ld.so.8:383 build/C/man8/ldconfig.8:156
5210 #, no-wrap
5211 msgid "FILES"
5212 msgstr ""
5213
5214 #. type: TP
5215 #: build/C/man8/ld.so.8:385 build/C/man8/ldconfig.8:158
5216 #, no-wrap
5217 msgid "I</lib/ld.so>"
5218 msgstr ""
5219
5220 #. type: Plain text
5221 #: build/C/man8/ld.so.8:388
5222 msgid "a.out dynamic linker/loader"
5223 msgstr ""
5224
5225 #. type: TP
5226 #: build/C/man8/ld.so.8:388
5227 #, no-wrap
5228 msgid "I</lib/ld-linux.so.>{I<1>,I<2>}"
5229 msgstr ""
5230
5231 #. type: Plain text
5232 #: build/C/man8/ld.so.8:391
5233 msgid "ELF dynamic linker/loader"
5234 msgstr ""
5235
5236 #. type: TP
5237 #: build/C/man8/ld.so.8:391 build/C/man8/ldconfig.8:165
5238 #, no-wrap
5239 msgid "I</etc/ld.so.cache>"
5240 msgstr ""
5241
5242 #. type: Plain text
5243 #: build/C/man8/ld.so.8:395
5244 msgid ""
5245 "File containing a compiled list of directories in which to search for "
5246 "libraries and an ordered list of candidate libraries."
5247 msgstr ""
5248
5249 #. type: TP
5250 #: build/C/man8/ld.so.8:395
5251 #, no-wrap
5252 msgid "I</etc/ld.so.preload>"
5253 msgstr ""
5254
5255 #. type: Plain text
5256 #: build/C/man8/ld.so.8:399
5257 msgid ""
5258 "File containing a whitespace separated list of ELF shared libraries to be "
5259 "loaded before the program."
5260 msgstr ""
5261
5262 #. type: TP
5263 #: build/C/man8/ld.so.8:399
5264 #, no-wrap
5265 msgid "B<lib*.so*>"
5266 msgstr ""
5267
5268 #. type: Plain text
5269 #: build/C/man8/ld.so.8:402
5270 msgid "shared libraries"
5271 msgstr ""
5272
5273 #. type: Plain text
5274 #: build/C/man8/ld.so.8:409
5275 msgid ""
5276 "The B<ld.so> functionality is available for executables compiled using libc "
5277 "version 4.4.3 or greater.  ELF functionality is available since Linux 1.1.52 "
5278 "and libc5."
5279 msgstr ""
5280
5281 #.  .SH AUTHORS
5282 #.  ld.so: David Engel, Eric Youngdale, Peter MacDonald, Hongjiu Lu, Linus
5283 #.   Torvalds, Lars Wirzenius and Mitch D'Souza
5284 #.  ld-linux.so: Roland McGrath, Ulrich Drepper and others.
5285 #
5286 #.  In the above, (libc5) stands for David Engel's ld.so/ld-linux.so.
5287 #. type: Plain text
5288 #: build/C/man8/ld.so.8:419
5289 msgid "B<ldd>(1), B<rtld-audit>(7), B<ldconfig>(8)"
5290 msgstr ""
5291
5292 #. type: TH
5293 #: build/C/man8/ldconfig.8:22
5294 #, no-wrap
5295 msgid "LDCONFIG"
5296 msgstr ""
5297
5298 #. type: TH
5299 #: build/C/man8/ldconfig.8:22
5300 #, no-wrap
5301 msgid "2009-04-15"
5302 msgstr ""
5303
5304 #. type: Plain text
5305 #: build/C/man8/ldconfig.8:25
5306 msgid "/sbin/ldconfig - configure dynamic linker run-time bindings"
5307 msgstr ""
5308
5309 #. type: Plain text
5310 #: build/C/man8/ldconfig.8:40
5311 msgid ""
5312 "B</sbin/ldconfig> [ B<-nNvXV> ] [ B<-f\\ conf> ] [ B<-C\\ cache> ] [ B<-r\\ "
5313 "root> ] I<directory>\\ ..."
5314 msgstr ""
5315
5316 #. type: Plain text
5317 #: build/C/man8/ldconfig.8:49
5318 msgid "B</sbin/ldconfig> B<-l> [ B<-v> ] I<library>\\ ..."
5319 msgstr ""
5320
5321 #. type: Plain text
5322 #: build/C/man8/ldconfig.8:54
5323 msgid "B</sbin/ldconfig> B<-p>"
5324 msgstr ""
5325
5326 #. type: Plain text
5327 #: build/C/man8/ldconfig.8:71
5328 msgid ""
5329 "B<ldconfig> creates the necessary links and cache to the most recent shared "
5330 "libraries found in the directories specified on the command line, in the "
5331 "file I</etc/ld.so.conf>, and in the trusted directories (I</lib> and "
5332 "I</usr/lib>).  The cache is used by the run-time linker, I<ld.so> or "
5333 "I<ld-linux.so>.  B<ldconfig> checks the header and filenames of the "
5334 "libraries it encounters when determining which versions should have their "
5335 "links updated."
5336 msgstr ""
5337
5338 #.  The following sentence looks suspect
5339 #.  (perhaps historical cruft) -- MTK, Jul 2005
5340 #.  Therefore, when making dynamic libraries,
5341 #.  it is wise to explicitly link against libc (use \-lc).
5342 #. type: Plain text
5343 #: build/C/man8/ldconfig.8:79
5344 msgid ""
5345 "B<ldconfig> will attempt to deduce the type of ELF libs (i.e., libc5 or "
5346 "libc6/glibc)  based on what C libs, if any, the library was linked against."
5347 msgstr ""
5348
5349 #. type: Plain text
5350 #: build/C/man8/ldconfig.8:100
5351 msgid ""
5352 "Some existing libs do not contain enough information to allow the deduction "
5353 "of their type.  Therefore, the I</etc/ld.so.conf> file format allows the "
5354 "specification of an expected type.  This is I<only> used for those ELF libs "
5355 "which we can not work out.  The format is \"dirname=TYPE\", where TYPE can "
5356 "be libc4, libc5, or libc6.  (This syntax also works on the command line.)  "
5357 "Spaces are I<not> allowed.  Also see the B<-p> option.  B<ldconfig> should "
5358 "normally be run by the superuser as it may require write permission on some "
5359 "root owned directories and files."
5360 msgstr ""
5361
5362 #. type: TP
5363 #: build/C/man8/ldconfig.8:101
5364 #, no-wrap
5365 msgid "B<-v>"
5366 msgstr ""
5367
5368 #. type: Plain text
5369 #: build/C/man8/ldconfig.8:107
5370 msgid ""
5371 "Verbose mode.  Print current version number, the name of each directory as "
5372 "it is scanned, and any links that are created.  Overrides quiet mode."
5373 msgstr ""
5374
5375 #. type: TP
5376 #: build/C/man8/ldconfig.8:107
5377 #, no-wrap
5378 msgid "B<-n>"
5379 msgstr ""
5380
5381 #. type: Plain text
5382 #: build/C/man8/ldconfig.8:118
5383 msgid ""
5384 "Only process directories specified on the command line.  Don't process the "
5385 "trusted directories (I</lib> and I</usr/lib>)  nor those specified in "
5386 "I</etc/ld.so.conf>.  Implies B<-N>."
5387 msgstr ""
5388
5389 #. type: TP
5390 #: build/C/man8/ldconfig.8:118
5391 #, no-wrap
5392 msgid "B<-N>"
5393 msgstr ""
5394
5395 #. type: Plain text
5396 #: build/C/man8/ldconfig.8:124
5397 msgid ""
5398 "Don't rebuild the cache.  Unless B<-X> is also specified, links are still "
5399 "updated."
5400 msgstr ""
5401
5402 #. type: TP
5403 #: build/C/man8/ldconfig.8:124
5404 #, no-wrap
5405 msgid "B<-X>"
5406 msgstr ""
5407
5408 #. type: Plain text
5409 #: build/C/man8/ldconfig.8:130
5410 msgid ""
5411 "Don't update links.  Unless B<-N> is also specified, the cache is still "
5412 "rebuilt."
5413 msgstr ""
5414
5415 #. type: TP
5416 #: build/C/man8/ldconfig.8:130
5417 #, no-wrap
5418 msgid "B<-f conf>"
5419 msgstr ""
5420
5421 #. type: Plain text
5422 #: build/C/man8/ldconfig.8:136
5423 msgid "Use B<conf> instead of I</etc/ld.so.conf>."
5424 msgstr ""
5425
5426 #. type: TP
5427 #: build/C/man8/ldconfig.8:136
5428 #, no-wrap
5429 msgid "B<-C cache>"
5430 msgstr ""
5431
5432 #. type: Plain text
5433 #: build/C/man8/ldconfig.8:142
5434 msgid "Use B<cache> instead of I</etc/ld.so.cache>."
5435 msgstr ""
5436
5437 #. type: TP
5438 #: build/C/man8/ldconfig.8:142
5439 #, no-wrap
5440 msgid "B<-r root>"
5441 msgstr ""
5442
5443 #. type: Plain text
5444 #: build/C/man8/ldconfig.8:147
5445 msgid "Change to and use I<root> as the root directory."
5446 msgstr ""
5447
5448 #. type: TP
5449 #: build/C/man8/ldconfig.8:147
5450 #, no-wrap
5451 msgid "B<-l>"
5452 msgstr ""
5453
5454 #. type: Plain text
5455 #: build/C/man8/ldconfig.8:152
5456 msgid ""
5457 "Library mode.  Manually link individual libraries.  Intended for use by "
5458 "experts only."
5459 msgstr ""
5460
5461 #. type: TP
5462 #: build/C/man8/ldconfig.8:152
5463 #, no-wrap
5464 msgid "B<-p>"
5465 msgstr ""
5466
5467 #. type: Plain text
5468 #: build/C/man8/ldconfig.8:156
5469 msgid ""
5470 "Print the lists of directories and candidate libraries stored in the current "
5471 "cache."
5472 msgstr ""
5473
5474 #. type: Plain text
5475 #: build/C/man8/ldconfig.8:161
5476 msgid "run-time linker/loader"
5477 msgstr ""
5478
5479 #. type: TP
5480 #: build/C/man8/ldconfig.8:161
5481 #, no-wrap
5482 msgid "I</etc/ld.so.conf>"
5483 msgstr ""
5484
5485 #. type: Plain text
5486 #: build/C/man8/ldconfig.8:165
5487 msgid ""
5488 "File containing a list of colon, space, tab, newline, or comma-separated "
5489 "directories in which to search for libraries."
5490 msgstr ""
5491
5492 #. type: Plain text
5493 #: build/C/man8/ldconfig.8:174
5494 msgid ""
5495 "File containing an ordered list of libraries found in the directories "
5496 "specified in I</etc/ld.so.conf>, as well as those found in I</lib> and "
5497 "I</usr/lib>."
5498 msgstr ""
5499
5500 #. type: Plain text
5501 #: build/C/man8/ldconfig.8:178
5502 msgid "B<ldd>(1), B<ld.so>(8)"
5503 msgstr ""
5504
5505 #. type: TH
5506 #: build/C/man1/ldd.1:10
5507 #, no-wrap
5508 msgid "LDD"
5509 msgstr ""
5510
5511 #. type: TH
5512 #: build/C/man1/ldd.1:10
5513 #, no-wrap
5514 msgid "2000-10-30"
5515 msgstr ""
5516
5517 #. type: Plain text
5518 #: build/C/man1/ldd.1:13
5519 msgid "ldd - print shared library dependencies"
5520 msgstr ""
5521
5522 #. type: Plain text
5523 #: build/C/man1/ldd.1:15
5524 msgid "B<ldd> [OPTION]... FILE..."
5525 msgstr ""
5526
5527 #. type: Plain text
5528 #: build/C/man1/ldd.1:19
5529 msgid ""
5530 "B<ldd> prints the shared libraries required by each program or shared "
5531 "library specified on the command line."
5532 msgstr ""
5533
5534 #. type: TP
5535 #: build/C/man1/ldd.1:20
5536 #, no-wrap
5537 msgid "B<--version>"
5538 msgstr ""
5539
5540 #. type: Plain text
5541 #: build/C/man1/ldd.1:24
5542 msgid "Print the version number of B<ldd>."
5543 msgstr ""
5544
5545 #. type: TP
5546 #: build/C/man1/ldd.1:24
5547 #, no-wrap
5548 msgid "B<-v\\ --verbose>"
5549 msgstr ""
5550
5551 #. type: Plain text
5552 #: build/C/man1/ldd.1:28
5553 msgid ""
5554 "Print all information, including, for example, symbol versioning "
5555 "information."
5556 msgstr ""
5557
5558 #. type: TP
5559 #: build/C/man1/ldd.1:28
5560 #, no-wrap
5561 msgid "B<-u\\ --unused>"
5562 msgstr ""
5563
5564 #. type: Plain text
5565 #: build/C/man1/ldd.1:32
5566 msgid "Print unused direct dependencies.  (Since glibc 2.3.4.)"
5567 msgstr ""
5568
5569 #. type: TP
5570 #: build/C/man1/ldd.1:32
5571 #, no-wrap
5572 msgid "B<-d\\ --data-relocs>"
5573 msgstr ""
5574
5575 #. type: Plain text
5576 #: build/C/man1/ldd.1:35
5577 msgid "Perform relocations and report any missing objects (ELF only)."
5578 msgstr ""
5579
5580 #. type: TP
5581 #: build/C/man1/ldd.1:35
5582 #, no-wrap
5583 msgid "B<-r\\ --function-relocs>"
5584 msgstr ""
5585
5586 #. type: Plain text
5587 #: build/C/man1/ldd.1:39
5588 msgid ""
5589 "Perform relocations for both data objects and functions, and report any "
5590 "missing objects or functions (ELF only)."
5591 msgstr ""
5592
5593 #. type: TP
5594 #: build/C/man1/ldd.1:39
5595 #, no-wrap
5596 msgid "B<--help>"
5597 msgstr ""
5598
5599 #. type: Plain text
5600 #: build/C/man1/ldd.1:42
5601 msgid "Usage information."
5602 msgstr ""
5603
5604 #. type: Plain text
5605 #: build/C/man1/ldd.1:53
5606 msgid ""
5607 "The standard version of B<ldd> comes with glibc2.  Libc5 came with an older "
5608 "version, still present on some systems.  The long options are not supported "
5609 "by the libc5 version.  On the other hand, the glibc2 version does not "
5610 "support B<-V> and only has the equivalent B<--version>."
5611 msgstr ""
5612
5613 #. type: Plain text
5614 #: build/C/man1/ldd.1:59
5615 msgid ""
5616 "The libc5 version of this program will use the name of a library given on "
5617 "the command line as-is when it contains a \\(aq/\\(aq; otherwise it searches "
5618 "for the library in the standard locations.  To run it on a shared library in "
5619 "the current directory, prefix the name with \"./\"."
5620 msgstr ""
5621
5622 #. type: Plain text
5623 #: build/C/man1/ldd.1:62
5624 msgid "B<ldd> does not work on a.out shared libraries."
5625 msgstr ""
5626
5627 #.  .SH AUTHOR
5628 #.  David Engel.
5629 #.  Roland McGrath and Ulrich Drepper.
5630 #. type: Plain text
5631 #: build/C/man1/ldd.1:75
5632 msgid ""
5633 "B<ldd> does not work with some extremely old a.out programs which were built "
5634 "before B<ldd> support was added to the compiler releases.  If you use B<ldd> "
5635 "on one of these programs, the program will attempt to run with I<argc> = 0 "
5636 "and the results will be unpredictable."
5637 msgstr ""
5638
5639 #. type: Plain text
5640 #: build/C/man1/ldd.1:78
5641 msgid "B<ld.so>(8), B<ldconfig>(8)"
5642 msgstr ""
5643
5644 #. type: TH
5645 #: build/C/man7/rtld-audit.7:26
5646 #, no-wrap
5647 msgid "RTLD-AUDIT"
5648 msgstr ""
5649
5650 #. type: TH
5651 #: build/C/man7/rtld-audit.7:26
5652 #, no-wrap
5653 msgid "2010-09-10"
5654 msgstr ""
5655
5656 #. type: Plain text
5657 #: build/C/man7/rtld-audit.7:29
5658 msgid "rtld-audit - auditing API for the dynamic linker"
5659 msgstr ""
5660
5661 #. type: Plain text
5662 #: build/C/man7/rtld-audit.7:31
5663 msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */"
5664 msgstr ""
5665
5666 #. type: Plain text
5667 #: build/C/man7/rtld-audit.7:33
5668 msgid "B<#include E<lt>link.hE<gt>>"
5669 msgstr ""
5670
5671 #. type: Plain text
5672 #: build/C/man7/rtld-audit.7:41
5673 msgid ""
5674 "The GNU dynamic linker (run-time linker)  provides an auditing API that "
5675 "allows an application to be notified when various dynamic linking events "
5676 "occur.  This API is very similar to the auditing interface provided by the "
5677 "Solaris run-time linker.  The necessary constants and prototypes are defined "
5678 "by including I<E<lt>link.hE<gt>>."
5679 msgstr ""
5680
5681 #. type: Plain text
5682 #: build/C/man7/rtld-audit.7:48
5683 msgid ""
5684 "To use this interface, the programmer creates a shared library that "
5685 "implements a standard set of function names.  Not all of the functions need "
5686 "to be implemented: in most cases, if the programmer is not interested in a "
5687 "particular class of auditing event, then no implementation needs to be "
5688 "provided for the corresponding auditing function."
5689 msgstr ""
5690
5691 #. type: Plain text
5692 #: build/C/man7/rtld-audit.7:56
5693 msgid ""
5694 "To employ the auditing interface, the environment variable B<LD_AUDIT> must "
5695 "be defined to contain a colon-separated list of shared libraries, each of "
5696 "which can implement (parts of) the auditing API.  When an auditable event "
5697 "occurs, the corresponding function is invoked in each library, in the order "
5698 "that the libraries are listed."
5699 msgstr ""
5700
5701 #. type: SS
5702 #: build/C/man7/rtld-audit.7:56
5703 #, no-wrap
5704 msgid "la_version()"
5705 msgstr ""
5706
5707 #. type: Plain text
5708 #: build/C/man7/rtld-audit.7:60
5709 #, no-wrap
5710 msgid "B<unsigned int la_version(unsigned int >I<version>B<);>\n"
5711 msgstr ""
5712
5713 #. type: Plain text
5714 #: build/C/man7/rtld-audit.7:72
5715 msgid ""
5716 "This is the only function that I<must> be defined by an auditing library: it "
5717 "performs the initial handshake between the dynamic linker and the auditing "
5718 "library.  When invoking this function, the dynamic linker passes, in "
5719 "I<version>, the highest version of the auditing interface that the linker "
5720 "supports.  If necessary, the auditing library can check that this version is "
5721 "sufficient for its requirements."
5722 msgstr ""
5723
5724 #. type: Plain text
5725 #: build/C/man7/rtld-audit.7:81
5726 msgid ""
5727 "As its function result, this function should return the version of the "
5728 "auditing interface that this auditing library expects to use (returning "
5729 "I<version> is acceptable).  If the returned value is 0, or a version that is "
5730 "greater than that supported by the dynamic linker, then the audit library is "
5731 "ignored."
5732 msgstr ""
5733
5734 #. type: SS
5735 #: build/C/man7/rtld-audit.7:81
5736 #, no-wrap
5737 msgid "la_objsearch()"
5738 msgstr ""
5739
5740 #. type: Plain text
5741 #: build/C/man7/rtld-audit.7:86
5742 #, no-wrap
5743 msgid ""
5744 "B<char *la_objsearch(const char *>I<name>B<, uintptr_t *>I<cookie>B<,>\n"
5745 "B<                   unsigned int >I<flag>B<);>\n"
5746 msgstr ""
5747
5748 #. type: Plain text
5749 #: build/C/man7/rtld-audit.7:97
5750 msgid ""
5751 "The dynamic linker invokes this function to inform the auditing library that "
5752 "it is about to search for a shared object.  The I<name> argument is the "
5753 "filename or pathname that is to be searched for.  I<cookie> identifies the "
5754 "shared object that initiated the search.  I<flag> is set to one of the "
5755 "following values:"
5756 msgstr ""
5757
5758 #. type: TP
5759 #: build/C/man7/rtld-audit.7:97
5760 #, no-wrap
5761 msgid "B<LA_SER_ORIG>"
5762 msgstr ""
5763
5764 #. type: Plain text
5765 #: build/C/man7/rtld-audit.7:106
5766 msgid ""
5767 "This is the original name that is being searched for.  Typically, this name "
5768 "comes from an ELF B<DT_NEEDED> entry, or is the I<filename> argument given "
5769 "to B<dlopen>(3)."
5770 msgstr ""
5771
5772 #. type: TP
5773 #: build/C/man7/rtld-audit.7:106
5774 #, no-wrap
5775 msgid "B<LA_SER_LIBPATH>"
5776 msgstr ""
5777
5778 #. type: Plain text
5779 #: build/C/man7/rtld-audit.7:111
5780 msgid "I<name> was created using a directory specified in B<LD_LIBRARY_PATH>."
5781 msgstr ""
5782
5783 #. type: TP
5784 #: build/C/man7/rtld-audit.7:111
5785 #, no-wrap
5786 msgid "B<LA_SER_RUNPATH>"
5787 msgstr ""
5788
5789 #. type: Plain text
5790 #: build/C/man7/rtld-audit.7:119
5791 msgid ""
5792 "I<name> was created using a directory specified in an ELF B<DT_RPATH> or "
5793 "B<DT_RUNPATH> list."
5794 msgstr ""
5795
5796 #. type: TP
5797 #: build/C/man7/rtld-audit.7:119
5798 #, no-wrap
5799 msgid "B<LA_SER_CONFIG>"
5800 msgstr ""
5801
5802 #. type: Plain text
5803 #: build/C/man7/rtld-audit.7:126
5804 msgid "I<name> was found via the B<ldconfig>(8)  cache (I</etc/ld.so.cache>)."
5805 msgstr ""
5806
5807 #. type: TP
5808 #: build/C/man7/rtld-audit.7:126
5809 #, no-wrap
5810 msgid "B<LA_SER_DEFAULT>"
5811 msgstr ""
5812
5813 #. type: Plain text
5814 #: build/C/man7/rtld-audit.7:130
5815 msgid "I<name> was found via a search of one of the default directories."
5816 msgstr ""
5817
5818 #. type: TP
5819 #: build/C/man7/rtld-audit.7:130
5820 #, no-wrap
5821 msgid "B<LA_SER_SECURE>"
5822 msgstr ""
5823
5824 #. type: Plain text
5825 #: build/C/man7/rtld-audit.7:134
5826 msgid "I<name> is specific to a secure object (unused on Linux)."
5827 msgstr ""
5828
5829 #. type: Plain text
5830 #: build/C/man7/rtld-audit.7:143
5831 msgid ""
5832 "As its function result, B<la_objsearch>()  returns the pathname that the "
5833 "dynamic linker should use for further processing.  If NULL is returned, then "
5834 "this pathname is ignored for further processing.  If this audit library "
5835 "simply intends to monitor search paths, then I<name> should be returned."
5836 msgstr ""
5837
5838 #. type: SS
5839 #: build/C/man7/rtld-audit.7:143
5840 #, no-wrap
5841 msgid "la_activity()"
5842 msgstr ""
5843
5844 #. type: Plain text
5845 #: build/C/man7/rtld-audit.7:147
5846 #, no-wrap
5847 msgid "B<void la_activity( uintptr_t *>I<cookie>B<, unsigned int >I<flag>B<);>\n"
5848 msgstr ""
5849
5850 #. type: Plain text
5851 #: build/C/man7/rtld-audit.7:156
5852 msgid ""
5853 "The dynamic linker calls this function to inform the auditing library that "
5854 "link-map activity is occurring.  I<cookie> identifies the object at the head "
5855 "of the link map.  When the dynamic linker invokes this function, I<flag> is "
5856 "set to one of the following values:"
5857 msgstr ""
5858
5859 #. type: TP
5860 #: build/C/man7/rtld-audit.7:156
5861 #, no-wrap
5862 msgid "B<LA_ACT_ADD>"
5863 msgstr ""
5864
5865 #. type: Plain text
5866 #: build/C/man7/rtld-audit.7:159
5867 msgid "New objects are being added to the link map."
5868 msgstr ""
5869
5870 #. type: TP
5871 #: build/C/man7/rtld-audit.7:159
5872 #, no-wrap
5873 msgid "B<LA_ACT_DELETE>"
5874 msgstr ""
5875
5876 #. type: Plain text
5877 #: build/C/man7/rtld-audit.7:162
5878 msgid "Objects are being removed from the link map."
5879 msgstr ""
5880
5881 #. type: TP
5882 #: build/C/man7/rtld-audit.7:162
5883 #, no-wrap
5884 msgid "B<LA_ACT_CONSISTENT>"
5885 msgstr ""
5886
5887 #. type: Plain text
5888 #: build/C/man7/rtld-audit.7:165
5889 msgid "Link-map activity has been completed: the map is once again consistent."
5890 msgstr ""
5891
5892 #. type: SS
5893 #: build/C/man7/rtld-audit.7:165
5894 #, no-wrap
5895 msgid "la_objopen()"
5896 msgstr ""
5897
5898 #. type: Plain text
5899 #: build/C/man7/rtld-audit.7:170
5900 #, no-wrap
5901 msgid ""
5902 "B<unsigned int la_objopen(struct link_map *>I<map>B<, Lmid_t >I<lmid>B<,>\n"
5903 "B<                        uintptr_t *>I<cookie>B<);>\n"
5904 msgstr ""
5905
5906 #. type: Plain text
5907 #: build/C/man7/rtld-audit.7:179
5908 msgid ""
5909 "The dynamic linker calls this function when a new shared object is loaded.  "
5910 "The I<map> argument is a pointer to a link-map structure that describes the "
5911 "object.  The I<lmid> field has one of the following values"
5912 msgstr ""
5913
5914 #. type: TP
5915 #: build/C/man7/rtld-audit.7:179
5916 #, no-wrap
5917 msgid "B<LM_ID_BASE>"
5918 msgstr ""
5919
5920 #. type: Plain text
5921 #: build/C/man7/rtld-audit.7:182
5922 msgid "Link map is part of the initial namespace."
5923 msgstr ""
5924
5925 #. type: TP
5926 #: build/C/man7/rtld-audit.7:182
5927 #, no-wrap
5928 msgid "B<LM_ID_NEWLM>"
5929 msgstr ""
5930
5931 #. type: Plain text
5932 #: build/C/man7/rtld-audit.7:186
5933 msgid "Link map is part of a new namespace requested via B<dlmopen>(3)."
5934 msgstr ""
5935
5936 #. type: Plain text
5937 #: build/C/man7/rtld-audit.7:194
5938 msgid ""
5939 "I<cookie> is a pointer to an identifier for this object.  The identifier is "
5940 "provided to later calls to functions in the auditing library in order to "
5941 "identify this object.  This identifier is initialized to point to object's "
5942 "link map, but the audit library can change the identifier to some other "
5943 "value that it may prefer to use to identify the object."
5944 msgstr ""
5945
5946 #. type: Plain text
5947 #: build/C/man7/rtld-audit.7:201
5948 msgid ""
5949 "As its return value, B<la_objopen>()  returns a bit mask created by ORing "
5950 "zero or more of the following constants, which allow the auditing library to "
5951 "select the objects to be monitored by B<la_symbind*>():"
5952 msgstr ""
5953
5954 #. type: TP
5955 #: build/C/man7/rtld-audit.7:201
5956 #, no-wrap
5957 msgid "B<LA_FLG_BINDTO>"
5958 msgstr ""
5959
5960 #. type: Plain text
5961 #: build/C/man7/rtld-audit.7:204
5962 msgid "Audit symbol bindings to this object."
5963 msgstr ""
5964
5965 #. type: TP
5966 #: build/C/man7/rtld-audit.7:204
5967 #, no-wrap
5968 msgid "B<LA_FLG_BINDFROM>"
5969 msgstr ""
5970
5971 #. type: Plain text
5972 #: build/C/man7/rtld-audit.7:207
5973 msgid "Audit symbol bindings from this object."
5974 msgstr ""
5975
5976 #. type: Plain text
5977 #: build/C/man7/rtld-audit.7:211
5978 msgid ""
5979 "A return value of 0 from B<la_objopen>()  indicates that no symbol bindings "
5980 "should be audited for this object."
5981 msgstr ""
5982
5983 #. type: SS
5984 #: build/C/man7/rtld-audit.7:211
5985 #, no-wrap
5986 msgid "la_objclose()"
5987 msgstr ""
5988
5989 #. type: Plain text
5990 #: build/C/man7/rtld-audit.7:215
5991 #, no-wrap
5992 msgid "B<unsigned int la_objclose(uintptr_t *>I<cookie);>\n"
5993 msgstr ""
5994
5995 #. type: Plain text
5996 #: build/C/man7/rtld-audit.7:224
5997 msgid ""
5998 "The dynamic linker invokes this function after any finalization code for the "
5999 "object has been executed, before the object is unloaded.  The I<cookie> "
6000 "argument is the identifier obtained from a previous invocation of "
6001 "B<la_objopen>()."
6002 msgstr ""
6003
6004 #. type: Plain text
6005 #: build/C/man7/rtld-audit.7:228
6006 msgid ""
6007 "In the current implementation, the value returned by B<la_objclose>()  is "
6008 "ignored."
6009 msgstr ""
6010
6011 #. type: SS
6012 #: build/C/man7/rtld-audit.7:228
6013 #, no-wrap
6014 msgid "la_preinit()"
6015 msgstr ""
6016
6017 #. type: Plain text
6018 #: build/C/man7/rtld-audit.7:232
6019 #, no-wrap
6020 msgid "B<void la_preinit(uintptr_t *>I<cookie>B<);>\n"
6021 msgstr ""
6022
6023 #. type: Plain text
6024 #: build/C/man7/rtld-audit.7:242
6025 msgid ""
6026 "The dynamic linker invokes this function after all shared objects have been "
6027 "loaded, before control is passed to the application (i.e., before calling "
6028 "I<main>()).  Note that I<main>()  may still later dynamically load objects "
6029 "using B<dlopen>(3)."
6030 msgstr ""
6031
6032 #. type: SS
6033 #: build/C/man7/rtld-audit.7:242
6034 #, no-wrap
6035 msgid "la_symbind*()"
6036 msgstr ""
6037
6038 #. type: Plain text
6039 #: build/C/man7/rtld-audit.7:251
6040 #, no-wrap
6041 msgid ""
6042 "B<uintptr_t la_symbind32(Elf32_Sym *>I<sym>B<, unsigned int >I<ndx>B<,>\n"
6043 "B<                       uintptr_t *>I<refcook>B<, uintptr_t "
6044 "*>I<defcook>B<,>\n"
6045 "B<                       unsigned int *>I<flags>B<, const char "
6046 "*>I<symname>B<);>\n"
6047 "B<uintptr_t la_symbind64(Elf64_Sym *>I<sym>B<, unsigned int >I<ndx>B<,>\n"
6048 "B<                       uintptr_t *>I<refcook>B<, uintptr_t "
6049 "*>I<defcook>B<,>\n"
6050 "B<                       unsigned int *>I<flags>B<, const char "
6051 "*>I<symname>B<);>\n"
6052 msgstr ""
6053
6054 #. type: Plain text
6055 #: build/C/man7/rtld-audit.7:263
6056 msgid ""
6057 "The dynamic linker invokes one of these functions when a symbol binding "
6058 "occurs between two shared objects that have been marked for auditing "
6059 "notification by B<la_objopen>().  The B<la_symbind32>()  function is "
6060 "employed on 32-bit platforms; the B<la_symbind64>()  function is employed on "
6061 "64-bit platforms."
6062 msgstr ""
6063
6064 #. type: Plain text
6065 #: build/C/man7/rtld-audit.7:273
6066 msgid ""
6067 "The I<sym> argument is a pointer to a structure that provides information "
6068 "about the symbol being bound.  The structure definition is shown in "
6069 "I<E<lt>elf.hE<gt>>.  Among the fields of this structure, I<st_value> "
6070 "indicates the address to which the symbol is bound."
6071 msgstr ""
6072
6073 #. type: Plain text
6074 #: build/C/man7/rtld-audit.7:278
6075 msgid ""
6076 "The I<ndx> argument gives the index of the symbol in the symbol table of the "
6077 "bound shared object."
6078 msgstr ""
6079
6080 #. type: Plain text
6081 #: build/C/man7/rtld-audit.7:293
6082 msgid ""
6083 "The I<refcook> argument identifies the shared object that is making the "
6084 "symbol reference; this is the same identifier that is provided to the "
6085 "B<la_objopen>()  function that returned B<LA_FLG_BINDFROM>.  The I<defcook> "
6086 "argument identifies the shared object that defines the referenced symbol; "
6087 "this is the same identifier that is provided to the B<la_objopen>()  "
6088 "function that returned B<LA_FLG_BINDTO>."
6089 msgstr ""
6090
6091 #. type: Plain text
6092 #: build/C/man7/rtld-audit.7:297
6093 msgid "The I<symname> argument points a string containing the name of the symbol."
6094 msgstr ""
6095
6096 #.  LA_SYMB_STRUCTCALL appears to be unused
6097 #. type: Plain text
6098 #: build/C/man7/rtld-audit.7:305
6099 msgid ""
6100 "The I<flags> argument is a bit mask that both provides information about the "
6101 "symbol and can be used to modify further auditing of this PLT (Procedure "
6102 "Linkage Table) entry.  The dynamic linker may supply the following bit "
6103 "values in this argument:"
6104 msgstr ""
6105
6106 #. type: TP
6107 #: build/C/man7/rtld-audit.7:305
6108 #, no-wrap
6109 msgid "B<LA_SYMB_DLSYM>"
6110 msgstr ""
6111
6112 #. type: Plain text
6113 #: build/C/man7/rtld-audit.7:309
6114 msgid "The binding resulted from a call to B<dlsym>(3)."
6115 msgstr ""
6116
6117 #. type: TP
6118 #: build/C/man7/rtld-audit.7:309
6119 #, no-wrap
6120 msgid "B<LA_SYMB_ALTVALUE>"
6121 msgstr ""
6122
6123 #. type: Plain text
6124 #: build/C/man7/rtld-audit.7:314
6125 msgid ""
6126 "A previous B<la_symbind*>()  call returned an alternate value for this "
6127 "symbol."
6128 msgstr ""
6129
6130 #.  pltenter/pltexit are called for non-dynamically loaded libraries,
6131 #.  but don't seem to be called for dynamically loaded libs?
6132 #.  Is this the same on Solaris?
6133 #. type: Plain text
6134 #: build/C/man7/rtld-audit.7:328
6135 msgid ""
6136 "By default, if the auditing library implements B<la_pltenter>()  and "
6137 "B<la_pltexit>()  functions (see below), then these functions are invoked, "
6138 "after B<la_symbind>(), for PLT entries, each time the symbol is referenced.  "
6139 "The following flags can be ORed into I<*flags> to change this default "
6140 "behavior:"
6141 msgstr ""
6142
6143 #. type: TP
6144 #: build/C/man7/rtld-audit.7:328
6145 #, no-wrap
6146 msgid "B<LA_SYMB_NOPLTENTER>"
6147 msgstr ""
6148
6149 #. type: Plain text
6150 #: build/C/man7/rtld-audit.7:333
6151 msgid "Don't call B<la_pltenter>()  for this symbol."
6152 msgstr ""
6153
6154 #. type: TP
6155 #: build/C/man7/rtld-audit.7:333
6156 #, no-wrap
6157 msgid "B<LA_SYMB_NOPLTEXIT>"
6158 msgstr ""
6159
6160 #. type: Plain text
6161 #: build/C/man7/rtld-audit.7:338
6162 msgid "Don't call B<la_pltexit>()  for this symbol."
6163 msgstr ""
6164
6165 #. type: Plain text
6166 #: build/C/man7/rtld-audit.7:349
6167 msgid ""
6168 "The return value of B<la_symbind32>()  and B<la_symbind64>()  is the address "
6169 "to which control should be passed after the function returns.  If the "
6170 "auditing library is simply monitoring symbol bindings, then it should return "
6171 "I<sym-E<gt>st_name>.  A different value may be returned if the library "
6172 "wishes to direct control to an alternate location."
6173 msgstr ""
6174
6175 #. type: SS
6176 #: build/C/man7/rtld-audit.7:349
6177 #, no-wrap
6178 msgid "la_pltenter()"
6179 msgstr ""
6180
6181 #. type: Plain text
6182 #: build/C/man7/rtld-audit.7:355 build/C/man7/rtld-audit.7:415
6183 msgid ""
6184 "The precise name and argument types for this function depend on the hardware "
6185 "platform.  (The appropriate definition is supplied by I<E<lt>link.hE<gt>>.)  "
6186 "Here is the definition for x86-32:"
6187 msgstr ""
6188
6189 #. type: Plain text
6190 #: build/C/man7/rtld-audit.7:361
6191 #, no-wrap
6192 msgid ""
6193 "B<Elf32_Addr la_i86_gnu_pltenter(Elf32_Sym *>I<sym>B<, unsigned int "
6194 ">I<ndx>B<,>\n"
6195 "B<                 uintptr_t *>I<refcook>B<, uintptr_t *>I<defcook>B<,>\n"
6196 "B<                 La_i86_regs *>I<regs>B<, unsigned int *>I<flags>B<,>\n"
6197 "B<                 const char *>I<symname>B<, long int "
6198 "*>I<framesizep>B<);>\n"
6199 msgstr ""
6200
6201 #. type: Plain text
6202 #: build/C/man7/rtld-audit.7:365
6203 msgid ""
6204 "This function is invoked just before a PLT entry is called, between two "
6205 "shared objects that have been marked for binding notification."
6206 msgstr ""
6207
6208 #. type: Plain text
6209 #: build/C/man7/rtld-audit.7:375 build/C/man7/rtld-audit.7:438
6210 msgid ""
6211 "The I<sym>, I<ndx>, I<refcook>, I<defcook>, and I<symname> are as for "
6212 "B<la_symbind*>()."
6213 msgstr ""
6214
6215 #. type: Plain text
6216 #: build/C/man7/rtld-audit.7:382
6217 msgid ""
6218 "The I<regs> argument points to a structure (defined in I<E<lt>link.hE<gt>>)  "
6219 "containing the values of registers to be used for the call to this PLT "
6220 "entry."
6221 msgstr ""
6222
6223 #. type: Plain text
6224 #: build/C/man7/rtld-audit.7:388
6225 msgid ""
6226 "The I<flags> argument points to a bit mask that conveys information about, "
6227 "and can be used to modify subsequent auditing of, this PLT entry, as for "
6228 "B<la_symbind*>()."
6229 msgstr ""
6230
6231 #.  FIXME is the following correct?
6232 #. type: Plain text
6233 #: build/C/man7/rtld-audit.7:404
6234 msgid ""
6235 "The I<framesizep> argument points to a I<long\\ int> buffer that can be used "
6236 "to explicitly set the frame size used for the call to this PLT entry.  If "
6237 "different B<la_pltenter>()  invocations for this symbol return different "
6238 "values, then the maximum returned value is used.  The B<la_pltenter>()  "
6239 "function is only called if this buffer is explicitly set to a suitable "
6240 "value."
6241 msgstr ""
6242
6243 #. type: Plain text
6244 #: build/C/man7/rtld-audit.7:409
6245 msgid "The return value of B<la_pltenter>()  is as for B<la_symbind*>()."
6246 msgstr ""
6247
6248 #. type: SS
6249 #: build/C/man7/rtld-audit.7:409
6250 #, no-wrap
6251 msgid "la_pltexit()"
6252 msgstr ""
6253
6254 #. type: Plain text
6255 #: build/C/man7/rtld-audit.7:421
6256 #, no-wrap
6257 msgid ""
6258 "B<unsigned int la_i86_gnu_pltexit(Elf32_Sym *>I<sym>B<, unsigned int "
6259 ">I<ndx>B<,>\n"
6260 "B<                 uintptr_t *>I<refcook>B<, uintptr_t *>I<defcook>B<,>\n"
6261 "B<                 const La_i86_regs *>I<inregs>B<, La_i86_retval "
6262 "*>I<outregs>B<,>\n"
6263 "B<                 const char *>I<symname>B<);>\n"
6264 msgstr ""
6265
6266 #. type: Plain text
6267 #: build/C/man7/rtld-audit.7:428
6268 msgid ""
6269 "This function is called when a PLT entry, made between two shared objects "
6270 "that have been marked for binding notification, returns.  The function is "
6271 "called just before control returns to the caller of the PLT entry."
6272 msgstr ""
6273
6274 #. type: Plain text
6275 #: build/C/man7/rtld-audit.7:451
6276 msgid ""
6277 "The I<inregs> argument points to a structure (defined in "
6278 "I<E<lt>link.hE<gt>>)  containing the values of registers used for the call "
6279 "to this PLT entry.  The I<outregs> argument points to a structure (defined "
6280 "in I<E<lt>link.hE<gt>>)  containing return values for the call to this PLT "
6281 "entry.  These values can be modified by the caller, and the changes will be "
6282 "visible to the caller of the PLT entry."
6283 msgstr ""
6284
6285 #.  This differs from Solaris, where an audit library that monitors
6286 #.  symbol binding should return the value of the 'retval' argument
6287 #.  (not provided by GNU, but equivalent to returning outregs->lrv_eax
6288 #.  on (say) x86-32).
6289 #. type: Plain text
6290 #: build/C/man7/rtld-audit.7:459
6291 msgid ""
6292 "In the current GNU implementation, the return value of B<la_pltexit>()  is "
6293 "ignored."
6294 msgstr ""
6295
6296 #. type: Plain text
6297 #: build/C/man7/rtld-audit.7:465
6298 msgid ""
6299 "This API is nonstandard, but very similar to the Solaris API, described in "
6300 "the Solaris I<Linker and Libraries Guide>, in the chapter I<Runtime Linker "
6301 "Auditing Interface>."
6302 msgstr ""
6303
6304 #. type: Plain text
6305 #: build/C/man7/rtld-audit.7:468
6306 msgid "Note the following differences from the Solaris dynamic linker auditing API:"
6307 msgstr ""
6308
6309 #. type: IP
6310 #: build/C/man7/rtld-audit.7:468 build/C/man7/rtld-audit.7:472 build/C/man7/rtld-audit.7:480
6311 #, no-wrap
6312 msgid "*"
6313 msgstr ""
6314
6315 #. type: Plain text
6316 #: build/C/man7/rtld-audit.7:472
6317 msgid ""
6318 "The Solaris B<la_objfilter>()  interface is not supported by the GNU "
6319 "implementation."
6320 msgstr ""
6321
6322 #. type: Plain text
6323 #: build/C/man7/rtld-audit.7:480
6324 msgid ""
6325 "The Solaris B<la_symbind32>()  and B<la_pltexit>()  functions do not provide "
6326 "a I<symname> argument."
6327 msgstr ""
6328
6329 #. type: Plain text
6330 #: build/C/man7/rtld-audit.7:490
6331 msgid ""
6332 "The Solaris B<la_pltexit>()  function does not provide I<inregs> and "
6333 "I<outregs> arguments (but does provide a I<retval> argument with the "
6334 "function return value)."
6335 msgstr ""
6336
6337 #. type: Plain text
6338 #: build/C/man7/rtld-audit.7:494
6339 #, no-wrap
6340 msgid ""
6341 "#include E<lt>link.hE<gt>\n"
6342 "#include E<lt>stdio.hE<gt>\n"
6343 msgstr ""
6344
6345 #. type: Plain text
6346 #: build/C/man7/rtld-audit.7:499
6347 #, no-wrap
6348 msgid ""
6349 "unsigned int\n"
6350 "la_version(unsigned int version)\n"
6351 "{\n"
6352 "    printf(\"la_version(): %d\\en\", version);\n"
6353 msgstr ""
6354
6355 #. type: Plain text
6356 #: build/C/man7/rtld-audit.7:502
6357 #, no-wrap
6358 msgid ""
6359 "    return version;\n"
6360 "}\n"
6361 msgstr ""
6362
6363 #. type: Plain text
6364 #: build/C/man7/rtld-audit.7:515
6365 #, no-wrap
6366 msgid ""
6367 "char *\n"
6368 "la_objsearch(const char *name, uintptr_t *cookie, unsigned int flag)\n"
6369 "{\n"
6370 "    printf(\"la_objsearch(): name = %s; cookie = %x\", name, cookie);\n"
6371 "    printf(\"; flag = %s\\en\",\n"
6372 "            (flag == LA_SER_ORIG) ?    \"LA_SER_ORIG\" :\n"
6373 "            (flag == LA_SER_LIBPATH) ? \"LA_SER_LIBPATH\" :\n"
6374 "            (flag == LA_SER_RUNPATH) ? \"LA_SER_RUNPATH\" :\n"
6375 "            (flag == LA_SER_DEFAULT) ? \"LA_SER_DEFAULT\" :\n"
6376 "            (flag == LA_SER_CONFIG) ?  \"LA_SER_CONFIG\" :\n"
6377 "            (flag == LA_SER_SECURE) ?  \"LA_SER_SECURE\" :\n"
6378 "            \"???\");\n"
6379 msgstr ""
6380
6381 #. type: Plain text
6382 #: build/C/man7/rtld-audit.7:518
6383 #, no-wrap
6384 msgid ""
6385 "    return name;\n"
6386 "}\n"
6387 msgstr ""
6388
6389 #. type: Plain text
6390 #: build/C/man7/rtld-audit.7:528
6391 #, no-wrap
6392 msgid ""
6393 "void\n"
6394 "la_activity (uintptr_t *cookie, unsigned int flag)\n"
6395 "{\n"
6396 "    printf(\"la_activity(): cookie = %x; flag = %s\\en\", cookie,\n"
6397 "            (flag == LA_ACT_CONSISTENT) ? \"LA_ACT_CONSISTENT\" :\n"
6398 "            (flag == LA_ACT_ADD) ?        \"LA_ACT_ADD\" :\n"
6399 "            (flag == LA_ACT_DELETE) ?     \"LA_ACT_DELETE\" :\n"
6400 "            \"???\");\n"
6401 "}\n"
6402 msgstr ""
6403
6404 #. type: Plain text
6405 #: build/C/man7/rtld-audit.7:538
6406 #, no-wrap
6407 msgid ""
6408 "unsigned int\n"
6409 "la_objopen(struct link_map *map, Lmid_t lmid, uintptr_t *cookie)\n"
6410 "{\n"
6411 "    printf(\"la_objopen(): loading \\e\"%s\\e\"; lmid = %s; "
6412 "cookie=%x\\en\",\n"
6413 "            map-E<gt>l_name,\n"
6414 "            (lmid == LM_ID_BASE) ?  \"LM_ID_BASE\" :\n"
6415 "            (lmid == LM_ID_NEWLM) ? \"LM_ID_NEWLM\" :\n"
6416 "            \"???\",\n"
6417 "            cookie);\n"
6418 msgstr ""
6419
6420 #. type: Plain text
6421 #: build/C/man7/rtld-audit.7:541
6422 #, no-wrap
6423 msgid ""
6424 "    return LA_FLG_BINDTO | LA_FLG_BINDFROM;\n"
6425 "}\n"
6426 msgstr ""
6427
6428 #. type: Plain text
6429 #: build/C/man7/rtld-audit.7:546
6430 #, no-wrap
6431 msgid ""
6432 "unsigned int\n"
6433 "la_objclose (uintptr_t *cookie)\n"
6434 "{\n"
6435 "    printf(\"la_objclose(): %x\\en\", cookie);\n"
6436 msgstr ""
6437
6438 #. type: Plain text
6439 #: build/C/man7/rtld-audit.7:549
6440 #, no-wrap
6441 msgid ""
6442 "    return 0;\n"
6443 "}\n"
6444 msgstr ""
6445
6446 #. type: Plain text
6447 #: build/C/man7/rtld-audit.7:555
6448 #, no-wrap
6449 msgid ""
6450 "void\n"
6451 "la_preinit(uintptr_t *cookie)\n"
6452 "{\n"
6453 "    printf(\"la_preinit(): %x\\en\", cookie);\n"
6454 "}\n"
6455 msgstr ""
6456
6457 #. type: Plain text
6458 #: build/C/man7/rtld-audit.7:564
6459 #, no-wrap
6460 msgid ""
6461 "uintptr_t\n"
6462 "la_symbind32(Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook,\n"
6463 "        uintptr_t *defcook, unsigned int *flags, const char *symname)\n"
6464 "{\n"
6465 "    printf(\"la_symbind32(): symname = %s; sym-E<gt>st_value = %p\\en\",\n"
6466 "            symname, sym-E<gt>st_value);\n"
6467 "    printf(\"        ndx = %d; flags = 0x%x\", ndx, *flags);\n"
6468 "    printf(\"; refcook = %x; defcook = %x\\en\", refcook, defcook);\n"
6469 msgstr ""
6470
6471 #. type: Plain text
6472 #: build/C/man7/rtld-audit.7:567 build/C/man7/rtld-audit.7:579 build/C/man7/rtld-audit.7:589
6473 #, no-wrap
6474 msgid ""
6475 "    return sym-E<gt>st_value;\n"
6476 "}\n"
6477 msgstr ""
6478
6479 #. type: Plain text
6480 #: build/C/man7/rtld-audit.7:576
6481 #, no-wrap
6482 msgid ""
6483 "uintptr_t\n"
6484 "la_symbind64(Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,\n"
6485 "        uintptr_t *defcook, unsigned int *flags, const char *symname)\n"
6486 "{\n"
6487 "    printf(\"la_symbind64(): symname = %s; sym-E<gt>st_value = %p\\en\",\n"
6488 "            symname, sym-E<gt>st_value);\n"
6489 "    printf(\"        ndx = %d; flags = 0x%x\", ndx, *flags);\n"
6490 "    printf(\"; refcook = %x; defcook = %x\\en\", refcook, defcook);\n"
6491 msgstr ""
6492
6493 #. type: Plain text
6494 #: build/C/man7/rtld-audit.7:586
6495 #, no-wrap
6496 msgid ""
6497 "Elf32_Addr\n"
6498 "la_i86_gnu_pltenter(Elf32_Sym *sym, unsigned int ndx,\n"
6499 "        uintptr_t *refcook, uintptr_t *defcook, La_i86_regs *regs,\n"
6500 "        unsigned int *flags, const char *symname, long int *framesizep)\n"
6501 "{\n"
6502 "    printf(\"la_i86_gnu_pltenter(): %s (%p)\\en\", symname, "
6503 "sym-E<gt>st_value);\n"
6504 msgstr ""
6505
6506 #.  FIXME Specifying multiple audit libraries doesn't work on GNU.
6507 #.  My simple tests on Solaris work okay, but not on Linux -- mtk, Jan 2009
6508 #.  glibc bug filed: http://sourceware.org/bugzilla/show_bug.cgi?id=9733
6509 #.  Reportedly, this is fixed on 16 Mar 2009 (i.e., for glibc 2.10)
6510 #. type: Plain text
6511 #: build/C/man7/rtld-audit.7:600
6512 msgid ""
6513 "In glibc versions up to and include 2.9, specifying more than one audit "
6514 "library in B<LD_AUDIT> results in a run-time crash.  This is reportedly "
6515 "fixed in glibc 2.10."
6516 msgstr ""
6517
6518 #. type: Plain text
6519 #: build/C/man7/rtld-audit.7:605
6520 msgid "B<ldd>(1), B<dlopen>(3), B<ld.so>(8), B<ldconfig>(8)"
6521 msgstr ""