These functions are used to update ELF data structures on the underlying
ELF descriptor.
Class-dependent data structures in the underlying ELF descriptor
are updated using the data in the class-independent GElf descriptors
and the underlying ELF data structures are marked
"dirty".
The conversion process signals an error if the values being copied
to the target ELF data structure would exceed representation
limits.
GElf descriptors are described in
gelf(3).
Function
gelf_update_ehdr()
updates the ELF Executable Header with the values in the
class-independent executable header
ehdr.
Function
gelf_update_phdr()
updates the ELF Program Header structure at index
ndx
with the values in the class-independent program header
phdr.
Function
gelf_update_shdr()
updates the ELF Section Header structure associated with section
descriptor
scn
with the values in argument
shdr.