Changeset View
Changeset View
Standalone View
Standalone View
contrib/elftoolchain/libelf/libelf.h
Context not available. | |||||
ELF_E_CLASS, /* Mismatched ELF class */ | ELF_E_CLASS, /* Mismatched ELF class */ | ||||
ELF_E_DATA, /* Invalid data descriptor */ | ELF_E_DATA, /* Invalid data descriptor */ | ||||
ELF_E_HEADER, /* Missing or malformed ELF header */ | ELF_E_HEADER, /* Missing or malformed ELF header */ | ||||
ELF_E_INVALID_SECTION_FLAGS, /* Invalid ELF section header flags */ | |||||
ELF_E_INVALID_SECTION_TYPE, /* Invalid ELF section header type */ | |||||
emaste: These should go at the end, so that existing enums retain the same values. Consider an existing… | |||||
ELF_E_IO, /* I/O error */ | ELF_E_IO, /* I/O error */ | ||||
ELF_E_LAYOUT, /* Layout constraint violation */ | ELF_E_LAYOUT, /* Layout constraint violation */ | ||||
ELF_E_MODE, /* Wrong mode for ELF descriptor */ | ELF_E_MODE, /* Wrong mode for ELF descriptor */ | ||||
ELF_E_NOT_COMPRESSED, /* Section is not compressed */ | |||||
ELF_E_RANGE, /* Value out of range */ | ELF_E_RANGE, /* Value out of range */ | ||||
ELF_E_RESOURCE, /* Resource exhaustion */ | ELF_E_RESOURCE, /* Resource exhaustion */ | ||||
ELF_E_SECTION, /* Invalid section descriptor */ | ELF_E_SECTION, /* Invalid section descriptor */ | ||||
Done Inline ActionsELF_E_NUM is supposed to come last. markj: `ELF_E_NUM` is supposed to come last. | |||||
Context not available. | |||||
long elf32_checksum(Elf *_elf); | long elf32_checksum(Elf *_elf); | ||||
size_t elf32_fsize(Elf_Type _type, size_t _count, | size_t elf32_fsize(Elf_Type _type, size_t _count, | ||||
unsigned int _version); | unsigned int _version); | ||||
Elf32_Chdr *elf32_getchdr(Elf_Scn *_scn); | |||||
Elf32_Ehdr *elf32_getehdr(Elf *_elf); | Elf32_Ehdr *elf32_getehdr(Elf *_elf); | ||||
Elf32_Phdr *elf32_getphdr(Elf *_elf); | Elf32_Phdr *elf32_getphdr(Elf *_elf); | ||||
Elf32_Shdr *elf32_getshdr(Elf_Scn *_scn); | Elf32_Shdr *elf32_getshdr(Elf_Scn *_scn); | ||||
Context not available. | |||||
long elf64_checksum(Elf *_elf); | long elf64_checksum(Elf *_elf); | ||||
size_t elf64_fsize(Elf_Type _type, size_t _count, | size_t elf64_fsize(Elf_Type _type, size_t _count, | ||||
unsigned int _version); | unsigned int _version); | ||||
Elf64_Chdr *elf64_getchdr(Elf_Scn *_scn); | |||||
Elf64_Ehdr *elf64_getehdr(Elf *_elf); | Elf64_Ehdr *elf64_getehdr(Elf *_elf); | ||||
Elf64_Phdr *elf64_getphdr(Elf *_elf); | Elf64_Phdr *elf64_getphdr(Elf *_elf); | ||||
Elf64_Shdr *elf64_getshdr(Elf_Scn *_scn); | Elf64_Shdr *elf64_getshdr(Elf_Scn *_scn); | ||||
Context not available. |
These should go at the end, so that existing enums retain the same values. Consider an existing binary that calls a routine returning an Elf_Error and checks for e.g. ELF_E_IO, and we install a new libelf with these changes.