diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2006-12-15 16:12:07 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2006-12-15 16:12:07 +0000 |
commit | 0798d56531414f0c060b1f82dbca36cccc795503 (patch) | |
tree | 3aef7c32fa9550a1edfa11fe69750665b438e511 /share | |
parent | 1a27feb63efa8b73ff35cea7af87e8ca84ab6e96 (diff) | |
download | FreeBSD-src-0798d56531414f0c060b1f82dbca36cccc795503.zip FreeBSD-src-0798d56531414f0c060b1f82dbca36cccc795503.tar.gz |
Document extended program header numbering.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man5/elf.5 | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/share/man/man5/elf.5 b/share/man/man5/elf.5 index 5cdd94a..3a94316 100644 --- a/share/man/man5/elf.5 +++ b/share/man/man5/elf.5 @@ -362,12 +362,19 @@ table; all entries are the same size. .It Dv e_phnum This member holds the number of entries in the program header table. -Thus the product of -.Sy e_phentsize -and +If the file is using extended program header numbering, then the .Sy e_phnum -gives the table's size -in bytes. +member will contain the value +.Dv PN_XNUM +and the actual number of program header table entries will be stored +in the +.Sy sh_info +member of the section header at index +.Dv SHN_UNDEF . +The product of +.Sy e_phentsize +and the number of program header table entries gives the program +header table's size in bytes. If a file has no program header, .Sy e_phnum holds the value zero. @@ -379,7 +386,7 @@ entry in the section header table; all entries are the same size. This member holds the number of entries in the section header table. If the file is using extended section numbering, then the .Sy e_shnum -field will be zero and the actual section number will be stored in the +member will be zero and the actual section number will be stored in the .Sy sh_size member of the section header at index .Dv SHN_UNDEF . |