Changeset View
Changeset View
Standalone View
Standalone View
contrib/elftoolchain/libelf/elf_errmsg.c
Show All 38 Lines | |||||
static const char *_libelf_errors[] = { | static const char *_libelf_errors[] = { | ||||
#define DEFINE_ERROR(N,S) [ELF_E_##N] = S | #define DEFINE_ERROR(N,S) [ELF_E_##N] = S | ||||
DEFINE_ERROR(NONE, "No Error"), | DEFINE_ERROR(NONE, "No Error"), | ||||
DEFINE_ERROR(ARCHIVE, "Malformed ar(1) archive"), | DEFINE_ERROR(ARCHIVE, "Malformed ar(1) archive"), | ||||
DEFINE_ERROR(ARGUMENT, "Invalid argument"), | DEFINE_ERROR(ARGUMENT, "Invalid argument"), | ||||
DEFINE_ERROR(CLASS, "ELF class mismatch"), | DEFINE_ERROR(CLASS, "ELF class mismatch"), | ||||
DEFINE_ERROR(DATA, "Invalid data buffer descriptor"), | DEFINE_ERROR(DATA, "Invalid data buffer descriptor"), | ||||
DEFINE_ERROR(HEADER, "Missing or malformed ELF header"), | DEFINE_ERROR(HEADER, "Missing or malformed ELF header"), | ||||
DEFINE_ERROR(INVALID_SECTION_FLAGS, "invalid section flags"), | |||||
DEFINE_ERROR(INVALID_SECTION_TYPE, "invalid section type"), | |||||
DEFINE_ERROR(IO, "I/O error"), | DEFINE_ERROR(IO, "I/O error"), | ||||
DEFINE_ERROR(LAYOUT, "Layout constraint violation"), | DEFINE_ERROR(LAYOUT, "Layout constraint violation"), | ||||
DEFINE_ERROR(MODE, "Incorrect ELF descriptor mode"), | DEFINE_ERROR(MODE, "Incorrect ELF descriptor mode"), | ||||
DEFINE_ERROR(NOT_COMPRESSED, "section does not contain compressed data"), | |||||
DEFINE_ERROR(RANGE, "Value out of range of target"), | DEFINE_ERROR(RANGE, "Value out of range of target"), | ||||
DEFINE_ERROR(RESOURCE, "Resource exhaustion"), | DEFINE_ERROR(RESOURCE, "Resource exhaustion"), | ||||
DEFINE_ERROR(SECTION, "Invalid section descriptor"), | DEFINE_ERROR(SECTION, "Invalid section descriptor"), | ||||
DEFINE_ERROR(SEQUENCE, "API calls out of sequence"), | DEFINE_ERROR(SEQUENCE, "API calls out of sequence"), | ||||
DEFINE_ERROR(UNIMPL, "Unimplemented feature"), | DEFINE_ERROR(UNIMPL, "Unimplemented feature"), | ||||
DEFINE_ERROR(VERSION, "Unknown ELF API version"), | DEFINE_ERROR(VERSION, "Unknown ELF API version"), | ||||
DEFINE_ERROR(NUM, "Unknown error") | DEFINE_ERROR(NUM, "Unknown error") | ||||
#undef DEFINE_ERROR | #undef DEFINE_ERROR | ||||
Show All 26 Lines |