[Bug 218018] dl_iterate_phdr should mention Elf64_Phdr (in addition to Elf32_Phdr).

bugzilla-daemon
2023-12-27T16:41:49Z

Rajesh (r.pandian@gmail.com) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |r.pandian@gmail.com

--- Comment #1 from Rajesh (r.pandian@gmail.com) ---
(In reply to Paul Pluzhnikov from comment #0)
> dl_iterate_phdr should mention Elf64_Phdr (in addition to Elf32_Phdr).
> Currently the man page says:
>
> These program headers are structures of the following form:
> typedef { ... } Elf32_Phdr;
>
> which is obviously wrong for 64-bit binaries.

Hello Paul,

Do you think the following would be helpful.

Replacing "These program headers are structures of the following form:" with
the following

The ELF program header is described by the type Elf32_Phdr or Elf64_Phdr
depending on the architecture. Following is an example of 32 bit architecture.
Refer to elf (man elf) for more information on 64 bit architecture.