|
|
HP-UX Reference > Eelf_flag(3E)HP-UX 11i Version 2: December 2007 Update |
|
NAMEelf_flagdata, elf_flagehdr, elf_flagelf, elf_flagphdr, elf_flagscn, elf_flagshdr — manipulate flags SYNOPSIScc [flag... ] file... -lelf [library] ... #include <libelf.h> unsigned elf_flagdata(Elf_Data *data, Elf_Cmd cmd, unsigned flags); unsigned elf_flagehdr(Elf *elf, Elf_Cmd cmd, unsigned flags); unsigned elf_flagelf(Elf *elf, Elf_Cmd cmd, unsigned flags); unsigned elf_flagphdr(Elf *elf, Elf_Cmd cmd, unsigned flags); unsigned elf_flagscn(Elf_Scn *scn, Elf_Cmd cmd, unsigned flags); unsigned elf_flagshdr(Elf_Scn *scn, Elf_Cmd cmd, unsigned flags); DESCRIPTIONThese functions manipulate the flags associated with various structures of an ELF file. Given an ELF descriptor elf, a data descriptor data, or a section descriptor scn, the functions may set or clear the associated status bits, returning the updated bits. A null descriptor is allowed, to simplify error handling; all functions return zero for this degenerate case. cmd may have the following values:
Descriptions of the defined flags bits appear below.
When a flag bit is set for an item, it affects all the subitems as well. Thus, for example, if the program sets the ELF_F_DIRTY bit with elf_flagelf, the entire logical file is ``dirty.'' |
|