Remove references to the 'e_phnum' field of the ELF header. Instead,
point the reader to the elf_getphnum() function. MFC after: 1 day
This commit is contained in:
parent
a956c7304b
commit
cb32f86c1d
@ -1,4 +1,4 @@
|
|||||||
.\" Copyright (c) 2006 Joseph Koshy. All rights reserved.
|
.\" Copyright (c) 2006,2007 Joseph Koshy. All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
@ -23,7 +23,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd December 16, 2006
|
.Dd October 21, 2007
|
||||||
.Os
|
.Os
|
||||||
.Dt GELF_GETPHDR 3
|
.Dt GELF_GETPHDR 3
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -57,10 +57,9 @@ and
|
|||||||
descriptors respectively.
|
descriptors respectively.
|
||||||
These descriptors are described in
|
These descriptors are described in
|
||||||
.Xr elf 5 .
|
.Xr elf 5 .
|
||||||
The number of entries in this array is specified by the
|
The number of entries in this array may be determined using the
|
||||||
.Va e_phnum
|
.Xr elf_getphnum 3
|
||||||
field of the executable header for ELF descriptor
|
function.
|
||||||
.Ar elf .
|
|
||||||
.Pp
|
.Pp
|
||||||
Function
|
Function
|
||||||
.Fn gelf_getphdr
|
.Fn gelf_getphdr
|
||||||
@ -134,6 +133,7 @@ was of an unsupported version.
|
|||||||
.Xr elf64_getehdr 3 ,
|
.Xr elf64_getehdr 3 ,
|
||||||
.Xr elf64_newphdr 3 ,
|
.Xr elf64_newphdr 3 ,
|
||||||
.Xr elf_flagphdr 3 ,
|
.Xr elf_flagphdr 3 ,
|
||||||
|
.Xr elf_getphnum 3 ,
|
||||||
.Xr gelf 3 ,
|
.Xr gelf 3 ,
|
||||||
.Xr gelf_getehdr 3 ,
|
.Xr gelf_getehdr 3 ,
|
||||||
.Xr gelf_newphdr 3 ,
|
.Xr gelf_newphdr 3 ,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.\" Copyright (c) 2006 Joseph Koshy. All rights reserved.
|
.\" Copyright (c) 2006,2007 Joseph Koshy. All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
.\" modification, are permitted provided that the following conditions
|
.\" modification, are permitted provided that the following conditions
|
||||||
@ -23,7 +23,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd August 25, 2006
|
.Dd October 21, 2007
|
||||||
.Os
|
.Os
|
||||||
.Dt GELF_NEWPHDR 3
|
.Dt GELF_NEWPHDR 3
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -81,12 +81,6 @@ elements depending on the ELF class of ELF descriptor
|
|||||||
.Ar elf .
|
.Ar elf .
|
||||||
.Pp
|
.Pp
|
||||||
The functions set the
|
The functions set the
|
||||||
.Va e_phnum
|
|
||||||
field of the executable header for ELF descriptor
|
|
||||||
.Ar elf
|
|
||||||
to
|
|
||||||
.Ar count ,
|
|
||||||
and also set the
|
|
||||||
.Dv ELF_F_DIRTY
|
.Dv ELF_F_DIRTY
|
||||||
bit on the program header table.
|
bit on the program header table.
|
||||||
All members of the returned array of Phdr structures
|
All members of the returned array of Phdr structures
|
||||||
@ -132,6 +126,7 @@ before using these APIs.
|
|||||||
.Xr elf64_getphdr 3 ,
|
.Xr elf64_getphdr 3 ,
|
||||||
.Xr elf64_newehdr 3 ,
|
.Xr elf64_newehdr 3 ,
|
||||||
.Xr elf_flagphdr 3 ,
|
.Xr elf_flagphdr 3 ,
|
||||||
|
.Xr elf_getphnum 3 ,
|
||||||
.Xr gelf 3 ,
|
.Xr gelf 3 ,
|
||||||
.Xr gelf_getphdr 3 ,
|
.Xr gelf_getphdr 3 ,
|
||||||
.Xr gelf_newehdr 3 ,
|
.Xr gelf_newehdr 3 ,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user