Xv6 with picoc & Linkage editor
v1.0
The project delineate mutual cohesion between c library, linkage editor ( linker), interpreter and operating system by porting the same on xv6 kernel
|
00001 /* 00002 * errors.h - exhaustive list of all error codes and messages for libelf. 00003 * Copyright (C) 1995 - 2003, 2006 Michael Riepe 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Library General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 00020 /* @(#) $Id: errors.h,v 1.17 2006/04/21 17:17:46 michael Exp $ */ 00021 00022 /* dummy for xgettext */ 00023 #define _(str) str 00024 00025 __err__(ERROR_OK, _("no error")) 00026 __err__(ERROR_UNKNOWN, _("unknown error")) 00027 __err__(ERROR_INTERNAL, _("Internal error: unknown reason")) 00028 __err__(ERROR_UNIMPLEMENTED, _("Internal error: not implemented")) 00029 __err__(ERROR_WRONLY, _("Request error: cntl(ELF_C_FDREAD) on write-only file")) 00030 __err__(ERROR_INVALID_CMD, _("Request error: invalid ELF_C_* argument")) 00031 __err__(ERROR_FDDISABLED, _("Request error: file descriptor disabled")) 00032 __err__(ERROR_NOTARCHIVE, _("Request error: not an archive")) 00033 __err__(ERROR_BADOFF, _("Request error: offset out of range")) 00034 __err__(ERROR_UNKNOWN_VERSION, _("Request error: unknown ELF version")) 00035 __err__(ERROR_CMDMISMATCH, _("Request error: ELF_C_* argument does not match")) 00036 __err__(ERROR_MEMBERWRITE, _("Request error: archive member begin() for writing")) 00037 __err__(ERROR_FDMISMATCH, _("Request error: archive/member file descriptor mismatch")) 00038 __err__(ERROR_NOTELF, _("Request error: not an ELF file")) 00039 __err__(ERROR_CLASSMISMATCH, _("Request error: class file/memory mismatch")) 00040 __err__(ERROR_UNKNOWN_TYPE, _("Request error: invalid ELF_T_* argument")) 00041 __err__(ERROR_UNKNOWN_ENCODING, _("Request error: unknown data encoding")) 00042 __err__(ERROR_DST2SMALL, _("Request error: destination buffer too small")) 00043 __err__(ERROR_NULLBUF, _("Request error: d_buf is NULL")) 00044 __err__(ERROR_UNKNOWN_CLASS, _("Request error: unknown ELF class")) 00045 __err__(ERROR_ELFSCNMISMATCH, _("Request error: section does not belong to file")) 00046 __err__(ERROR_NOSUCHSCN, _("Request error: no section at index")) 00047 __err__(ERROR_NULLSCN, _("Request error: can't manipulate null section")) 00048 __err__(ERROR_SCNDATAMISMATCH, _("Request error: data does not belong to section")) 00049 __err__(ERROR_NOSTRTAB, _("Request error: no string table")) 00050 __err__(ERROR_BADSTROFF, _("Request error: string table offset out of range")) 00051 __err__(ERROR_RDONLY, _("Request error: update(ELF_C_WRITE) on read-only file")) 00052 __err__(ERROR_IO_SEEK, _("I/O error: seek")) 00053 __err__(ERROR_IO_2BIG, _("I/O error: file too big for memory")) 00054 __err__(ERROR_IO_READ, _("I/O error: raw read")) 00055 __err__(ERROR_IO_GETSIZE, _("I/O error: get file size")) 00056 __err__(ERROR_IO_WRITE, _("I/O error: output write")) 00057 __err__(ERROR_IO_TRUNC, _("I/O error: can't truncate output file")) 00058 __err__(ERROR_VERSION_UNSET, _("Sequence error: must set ELF version first")) 00059 __err__(ERROR_NOEHDR, _("Sequence error: must create ELF header first")) 00060 __err__(ERROR_OUTSIDE, _("Format error: reference outside file")) 00061 __err__(ERROR_TRUNC_ARHDR, _("Format error: archive header truncated")) 00062 __err__(ERROR_ARFMAG, _("Format error: archive fmag")) 00063 __err__(ERROR_ARHDR, _("Format error: archive header")) 00064 __err__(ERROR_TRUNC_MEMBER, _("Format error: archive member truncated")) 00065 __err__(ERROR_SIZE_ARSYMTAB, _("Format error: archive symbol table size")) 00066 __err__(ERROR_ARSTRTAB, _("Format error: archive string table")) 00067 __err__(ERROR_ARSPECIAL, _("Format error: archive special name unknown")) 00068 __err__(ERROR_TRUNC_EHDR, _("Format error: ELF header truncated")) 00069 __err__(ERROR_TRUNC_PHDR, _("Format error: program header table truncated")) 00070 __err__(ERROR_TRUNC_SHDR, _("Format error: section header table truncated")) 00071 __err__(ERROR_TRUNC_SCN, _("Format error: data region truncated")) 00072 __err__(ERROR_ALIGN_PHDR, _("Format error: program header table alignment")) 00073 __err__(ERROR_ALIGN_SHDR, _("Format error: section header table alignment")) 00074 __err__(ERROR_VERDEF_FORMAT, _("Format error: bad parameter in Verdef record")) 00075 __err__(ERROR_VERDEF_VERSION, _("Format error: unknown Verdef version")) 00076 __err__(ERROR_VERNEED_FORMAT, _("Format error: bad parameter in Verneed record")) 00077 __err__(ERROR_VERNEED_VERSION, _("Format error: unknown Verneed version")) 00078 __err__(ERROR_EHDR_SHNUM, _("Format error: bad e_shnum value")) 00079 __err__(ERROR_EHDR_SHENTSIZE, _("Format error: bad e_shentsize value")) 00080 __err__(ERROR_EHDR_PHENTSIZE, _("Format error: bad e_phentsize value")) 00081 __err__(ERROR_UNTERM, _("Format error: unterminated string in string table")) 00082 __err__(ERROR_SCN2SMALL, _("Layout error: section size too small for data")) 00083 __err__(ERROR_SCN_OVERLAP, _("Layout error: overlapping sections")) 00084 __err__(ERROR_MEM_ELF, _("Memory error: elf descriptor")) 00085 __err__(ERROR_MEM_ARSYMTAB, _("Memory error: archive symbol table")) 00086 __err__(ERROR_MEM_ARHDR, _("Memory error: archive member header")) 00087 __err__(ERROR_MEM_EHDR, _("Memory error: ELF header")) 00088 __err__(ERROR_MEM_PHDR, _("Memory error: program header table")) 00089 __err__(ERROR_MEM_SHDR, _("Memory error: section header table")) 00090 __err__(ERROR_MEM_SCN, _("Memory error: section descriptor")) 00091 __err__(ERROR_MEM_SCNDATA, _("Memory error: section data")) 00092 __err__(ERROR_MEM_OUTBUF, _("Memory error: output file space")) 00093 __err__(ERROR_MEM_TEMPORARY, _("Memory error: temporary buffer")) 00094 __err__(ERROR_BADVALUE, _("GElf error: value out of range")) 00095 __err__(ERROR_BADINDEX, _("GElf error: index out of range")) 00096 __err__(ERROR_BADTYPE, _("GElf error: type mismatch")) 00097 __err__(ERROR_MEM_SYM, _("GElf error: not enough memory for GElf_Sym")) 00098 __err__(ERROR_MEM_DYN, _("GElf error: not enough memory for GElf_Dyn")) 00099 __err__(ERROR_MEM_RELA, _("GElf error: not enough memory for GElf_Rela")) 00100 __err__(ERROR_MEM_REL, _("GElf error: not enough memory for GElf_Rel"))