mirror of https://github.com/mkerrisk/man-pages
dl_iterate_phdr.3: List values for the 'p_type' field
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
83baec65e3
commit
c4054f820e
|
@ -168,6 +168,28 @@ in virtual memory using the formula:
|
|||
.nf
|
||||
addr == info\->dlpi_addr + info\->dlpi_phdr[x].p_vaddr;
|
||||
.fi
|
||||
|
||||
Possible values for
|
||||
.I p_type
|
||||
include the following (see
|
||||
.IR <elf.h>
|
||||
for further details):
|
||||
|
||||
.nf
|
||||
.in +4n
|
||||
#define PT_LOAD 1 /* Loadable program segment */
|
||||
#define PT_DYNAMIC 2 /* Dynamic linking information */
|
||||
#define PT_INTERP 3 /* Program interpreter */
|
||||
#define PT_NOTE 4 /* Auxiliary information */
|
||||
#define PT_SHLIB 5 /* Reserved */
|
||||
#define PT_PHDR 6 /* Entry for header table itself */
|
||||
#define PT_TLS 7 /* Thread-local storage segment */
|
||||
#define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */
|
||||
#define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */
|
||||
.\" For PT_GNU_STACK, see http://www.airs.com/blog/archives/518
|
||||
#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */
|
||||
.in
|
||||
.fi
|
||||
.SH RETURN VALUE
|
||||
The
|
||||
.BR dl_iterate_phdr ()
|
||||
|
|
Loading…
Reference in New Issue