mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172848
@ -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
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
@ -23,7 +23,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd December 16, 2006
|
||||
.Dd October 21, 2007
|
||||
.Os
|
||||
.Dt GELF_GETPHDR 3
|
||||
.Sh NAME
|
||||
@ -57,10 +57,9 @@ and
|
||||
descriptors respectively.
|
||||
These descriptors are described in
|
||||
.Xr elf 5 .
|
||||
The number of entries in this array is specified by the
|
||||
.Va e_phnum
|
||||
field of the executable header for ELF descriptor
|
||||
.Ar elf .
|
||||
The number of entries in this array may be determined using the
|
||||
.Xr elf_getphnum 3
|
||||
function.
|
||||
.Pp
|
||||
Function
|
||||
.Fn gelf_getphdr
|
||||
@ -134,6 +133,7 @@ was of an unsupported version.
|
||||
.Xr elf64_getehdr 3 ,
|
||||
.Xr elf64_newphdr 3 ,
|
||||
.Xr elf_flagphdr 3 ,
|
||||
.Xr elf_getphnum 3 ,
|
||||
.Xr gelf 3 ,
|
||||
.Xr gelf_getehdr 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
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
@ -23,7 +23,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd August 25, 2006
|
||||
.Dd October 21, 2007
|
||||
.Os
|
||||
.Dt GELF_NEWPHDR 3
|
||||
.Sh NAME
|
||||
@ -81,12 +81,6 @@ elements depending on the ELF class of ELF descriptor
|
||||
.Ar elf .
|
||||
.Pp
|
||||
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
|
||||
bit on the program header table.
|
||||
All members of the returned array of Phdr structures
|
||||
@ -132,6 +126,7 @@ before using these APIs.
|
||||
.Xr elf64_getphdr 3 ,
|
||||
.Xr elf64_newehdr 3 ,
|
||||
.Xr elf_flagphdr 3 ,
|
||||
.Xr elf_getphnum 3 ,
|
||||
.Xr gelf 3 ,
|
||||
.Xr gelf_getphdr 3 ,
|
||||
.Xr gelf_newehdr 3 ,
|
||||
|
Loading…
Reference in New Issue
Block a user