Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/elftoolchain/dist/common Update Elftoolchain 'c...



details:   https://anonhg.NetBSD.org/src/rev/c297fbdb2121
branches:  trunk
changeset: 954424:c297fbdb2121
user:      jkoshy <jkoshy%NetBSD.org@localhost>
date:      Thu Apr 08 19:37:43 2021 +0000

description:
Update Elftoolchain 'common/elfdefinitions.h' to upstream r3943.

diffstat:

 external/bsd/elftoolchain/dist/common/elfdefinitions.h |  2965 +---------------
 1 files changed, 3 insertions(+), 2962 deletions(-)

diffs (truncated from 2984 to 300 lines):

diff -r 34b54490f9a0 -r c297fbdb2121 external/bsd/elftoolchain/dist/common/elfdefinitions.h
--- a/external/bsd/elftoolchain/dist/common/elfdefinitions.h    Thu Apr 08 19:31:51 2021 +0000
+++ b/external/bsd/elftoolchain/dist/common/elfdefinitions.h    Thu Apr 08 19:37:43 2021 +0000
@@ -1,7 +1,5 @@
-/*     $NetBSD: elfdefinitions.h,v 1.5 2021/03/07 14:53:59 jkoshy Exp $        */
-
 /*-
- * Copyright (c) 2010 Joseph Koshy
+ * Copyright (c) 2010,2021 Joseph Koshy
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -25,2969 +23,12 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * Id: elfdefinitions.h 3916 2020-12-12 11:26:53Z jkoshy
- */
-
-/*
- * These definitions are based on:
- * - The public specification of the ELF format as defined in the
- *   October 2009 draft of System V ABI.
- *   See: http://www.sco.com/developers/gabi/latest/ch4.intro.html
- * - The May 1998 (version 1.5) draft of "The ELF-64 object format".
- * - Processor-specific ELF ABI definitions for sparc, i386, amd64, mips,
- *   ia64, powerpc, and RISC-V processors.
- * - The "Linkers and Libraries Guide", from Sun Microsystems.
+ * Id: elfdefinitions.h 3942 2021-04-05 12:16:03Z jkoshy
  */
 
 #ifndef _ELFDEFINITIONS_H_
 #define _ELFDEFINITIONS_H_
 
-#include <stdint.h>
-
-/*
- * Types of capabilities.
- */
-
-#define        _ELF_DEFINE_CAPABILITIES()                              \
-_ELF_DEFINE_CA(CA_SUNW_NULL,   0,      "ignored")              \
-_ELF_DEFINE_CA(CA_SUNW_HW_1,   1,      "hardware capability")  \
-_ELF_DEFINE_CA(CA_SUNW_SW_1,   2,      "software capability")
-
-#undef _ELF_DEFINE_CA
-#define        _ELF_DEFINE_CA(N, V, DESCR)     N = V ,
-enum {
-       _ELF_DEFINE_CAPABILITIES()
-       CA__LAST__
-};
-
-/*
- * Flags used with dynamic linking entries.
- */
-
-#define        _ELF_DEFINE_DYN_FLAGS()                                 \
-_ELF_DEFINE_DF(DF_ORIGIN,           0x1,                       \
-       "object being loaded may refer to $ORIGIN")             \
-_ELF_DEFINE_DF(DF_SYMBOLIC,         0x2,                       \
-       "search library for references before executable")      \
-_ELF_DEFINE_DF(DF_TEXTREL,          0x4,                       \
-       "relocation entries may modify text segment")           \
-_ELF_DEFINE_DF(DF_BIND_NOW,         0x8,                       \
-       "process relocation entries at load time")              \
-_ELF_DEFINE_DF(DF_STATIC_TLS,       0x10,                      \
-       "uses static thread-local storage")                     \
-_ELF_DEFINE_DF(DF_1_BIND_NOW,       0x1,                       \
-       "process relocation entries at load time")              \
-_ELF_DEFINE_DF(DF_1_GLOBAL,         0x2,                       \
-       "unused")                                               \
-_ELF_DEFINE_DF(DF_1_GROUP,          0x4,                       \
-       "object is a member of a group")                        \
-_ELF_DEFINE_DF(DF_1_NODELETE,       0x8,                       \
-       "object cannot be deleted from a process")              \
-_ELF_DEFINE_DF(DF_1_LOADFLTR,       0x10,                      \
-       "immediate load filtees")                               \
-_ELF_DEFINE_DF(DF_1_INITFIRST,      0x20,                      \
-       "initialize object first")                              \
-_ELF_DEFINE_DF(DF_1_NOOPEN,         0x40,                      \
-       "disallow dlopen()")                                    \
-_ELF_DEFINE_DF(DF_1_ORIGIN,         0x80,                      \
-       "object being loaded may refer to $ORIGIN")             \
-_ELF_DEFINE_DF(DF_1_DIRECT,         0x100,                     \
-       "direct bindings enabled")                              \
-_ELF_DEFINE_DF(DF_1_INTERPOSE,      0x400,                     \
-       "object is interposer")                                 \
-_ELF_DEFINE_DF(DF_1_NODEFLIB,       0x800,                     \
-       "ignore default library search path")                   \
-_ELF_DEFINE_DF(DF_1_NODUMP,         0x1000,                    \
-       "disallow dldump()")                                    \
-_ELF_DEFINE_DF(DF_1_CONFALT,        0x2000,                    \
-       "object is a configuration alternative")                \
-_ELF_DEFINE_DF(DF_1_ENDFILTEE,      0x4000,                    \
-       "filtee terminates filter search")                      \
-_ELF_DEFINE_DF(DF_1_DISPRELDNE,     0x8000,                    \
-       "displacement relocation done")                         \
-_ELF_DEFINE_DF(DF_1_DISPRELPND,     0x10000,                   \
-       "displacement relocation pending")
-#undef _ELF_DEFINE_DF
-#define        _ELF_DEFINE_DF(N, V, DESCR)     N = V ,
-enum {
-       _ELF_DEFINE_DYN_FLAGS()
-       DF__LAST__
-};
-
-
-/*
- * Dynamic linking entry types.
- */
-
-#define        _ELF_DEFINE_DYN_TYPES()                                         \
-_ELF_DEFINE_DT(DT_NULL,             0, "end of array")                 \
-_ELF_DEFINE_DT(DT_NEEDED,           1, "names a needed library")       \
-_ELF_DEFINE_DT(DT_PLTRELSZ,         2,                                 \
-       "size in bytes of associated relocation entries")               \
-_ELF_DEFINE_DT(DT_PLTGOT,           3,                                 \
-       "address associated with the procedure linkage table")          \
-_ELF_DEFINE_DT(DT_HASH,             4,                                 \
-       "address of the symbol hash table")                             \
-_ELF_DEFINE_DT(DT_STRTAB,           5,                                 \
-       "address of the string table")                                  \
-_ELF_DEFINE_DT(DT_SYMTAB,           6,                                 \
-       "address of the symbol table")                                  \
-_ELF_DEFINE_DT(DT_RELA,             7,                                 \
-       "address of the relocation table")                              \
-_ELF_DEFINE_DT(DT_RELASZ,           8, "size of the DT_RELA table")    \
-_ELF_DEFINE_DT(DT_RELAENT,          9, "size of each DT_RELA entry")   \
-_ELF_DEFINE_DT(DT_STRSZ,            10, "size of the string table")    \
-_ELF_DEFINE_DT(DT_SYMENT,           11,                                        \
-       "size of a symbol table entry")                                 \
-_ELF_DEFINE_DT(DT_INIT,             12,                                        \
-       "address of the initialization function")                       \
-_ELF_DEFINE_DT(DT_FINI,             13,                                        \
-       "address of the finalization function")                         \
-_ELF_DEFINE_DT(DT_SONAME,           14, "names the shared object")     \
-_ELF_DEFINE_DT(DT_RPATH,            15,                                        \
-       "runtime library search path")                                  \
-_ELF_DEFINE_DT(DT_SYMBOLIC,         16,                                        \
-       "alter symbol resolution algorithm")                            \
-_ELF_DEFINE_DT(DT_REL,              17,                                        \
-       "address of the DT_REL table")                                  \
-_ELF_DEFINE_DT(DT_RELSZ,            18, "size of the DT_REL table")    \
-_ELF_DEFINE_DT(DT_RELENT,           19, "size of each DT_REL entry")   \
-_ELF_DEFINE_DT(DT_PLTREL,           20,                                        \
-       "type of relocation entry in the procedure linkage table")      \
-_ELF_DEFINE_DT(DT_DEBUG,            21, "used for debugging")          \
-_ELF_DEFINE_DT(DT_TEXTREL,          22,                                        \
-       "text segment may be written to during relocation")             \
-_ELF_DEFINE_DT(DT_JMPREL,           23,                                        \
-       "address of relocation entries associated with the procedure linkage table") \
-_ELF_DEFINE_DT(DT_BIND_NOW,         24,                                        \
-       "bind symbols at loading time")                                 \
-_ELF_DEFINE_DT(DT_INIT_ARRAY,       25,                                        \
-       "pointers to initialization functions")                         \
-_ELF_DEFINE_DT(DT_FINI_ARRAY,       26,                                        \
-       "pointers to termination functions")                            \
-_ELF_DEFINE_DT(DT_INIT_ARRAYSZ,     27, "size of the DT_INIT_ARRAY")   \
-_ELF_DEFINE_DT(DT_FINI_ARRAYSZ,     28, "size of the DT_FINI_ARRAY")   \
-_ELF_DEFINE_DT(DT_RUNPATH,          29,                                        \
-       "index of library search path string")                          \
-_ELF_DEFINE_DT(DT_FLAGS,            30,                                        \
-       "flags specific to the object being loaded")                    \
-_ELF_DEFINE_DT(DT_ENCODING,         32, "standard semantics")          \
-_ELF_DEFINE_DT(DT_PREINIT_ARRAY,    32,                                        \
-       "pointers to pre-initialization functions")                     \
-_ELF_DEFINE_DT(DT_PREINIT_ARRAYSZ,  33,                                        \
-       "size of pre-initialization array")                             \
-_ELF_DEFINE_DT(DT_MAXPOSTAGS,      34,                                 \
-       "the number of positive tags")                                  \
-_ELF_DEFINE_DT(DT_LOOS,             0x6000000DUL,                      \
-       "start of OS-specific types")                                   \
-_ELF_DEFINE_DT(DT_SUNW_AUXILIARY,   0x6000000DUL,                      \
-       "offset of string naming auxiliary filtees")                    \
-_ELF_DEFINE_DT(DT_SUNW_RTLDINF,     0x6000000EUL, "rtld internal use") \
-_ELF_DEFINE_DT(DT_SUNW_FILTER,      0x6000000FUL,                      \
-       "offset of string naming standard filtees")                     \
-_ELF_DEFINE_DT(DT_SUNW_CAP,         0x60000010UL,                      \
-       "address of hardware capabilities section")                     \
-_ELF_DEFINE_DT(DT_SUNW_ASLR,        0x60000023UL,                      \
-       "Address Space Layout Randomization flag")                      \
-_ELF_DEFINE_DT(DT_HIOS,             0x6FFFF000UL,                      \
-       "end of OS-specific types")                                     \
-_ELF_DEFINE_DT(DT_VALRNGLO,         0x6FFFFD00UL,                      \
-       "start of range using the d_val field")                         \
-_ELF_DEFINE_DT(DT_GNU_PRELINKED,    0x6FFFFDF5UL,                      \
-       "prelinking timestamp")                                         \
-_ELF_DEFINE_DT(DT_GNU_CONFLICTSZ,   0x6FFFFDF6UL,                      \
-       "size of conflict section")                                     \
-_ELF_DEFINE_DT(DT_GNU_LIBLISTSZ,    0x6FFFFDF7UL,                      \
-       "size of library list")                                         \
-_ELF_DEFINE_DT(DT_CHECKSUM,         0x6FFFFDF8UL,                      \
-       "checksum for the object")                                      \
-_ELF_DEFINE_DT(DT_PLTPADSZ,         0x6FFFFDF9UL,                      \
-       "size of PLT padding")                                          \
-_ELF_DEFINE_DT(DT_MOVEENT,          0x6FFFFDFAUL,                      \
-       "size of DT_MOVETAB entries")                                   \
-_ELF_DEFINE_DT(DT_MOVESZ,           0x6FFFFDFBUL,                      \
-       "total size of the MOVETAB table")                              \
-_ELF_DEFINE_DT(DT_FEATURE,          0x6FFFFDFCUL, "feature values")    \
-_ELF_DEFINE_DT(DT_POSFLAG_1,        0x6FFFFDFDUL,                      \
-       "dynamic position flags")                                       \
-_ELF_DEFINE_DT(DT_SYMINSZ,          0x6FFFFDFEUL,                      \
-       "size of the DT_SYMINFO table")                                 \
-_ELF_DEFINE_DT(DT_SYMINENT,         0x6FFFFDFFUL,                      \
-       "size of a DT_SYMINFO entry")                                   \
-_ELF_DEFINE_DT(DT_VALRNGHI,         0x6FFFFDFFUL,                      \
-       "end of range using the d_val field")                           \
-_ELF_DEFINE_DT(DT_ADDRRNGLO,        0x6FFFFE00UL,                      \
-       "start of range using the d_ptr field")                         \
-_ELF_DEFINE_DT(DT_GNU_HASH,        0x6FFFFEF5UL,                       \
-       "GNU style hash tables")                                        \
-_ELF_DEFINE_DT(DT_TLSDESC_PLT,     0x6FFFFEF6UL,                       \
-       "location of PLT entry for TLS descriptor resolver calls")      \
-_ELF_DEFINE_DT(DT_TLSDESC_GOT,     0x6FFFFEF7UL,                       \
-       "location of GOT entry used by TLS descriptor resolver PLT entry") \
-_ELF_DEFINE_DT(DT_GNU_CONFLICT,     0x6FFFFEF8UL,                      \
-       "address of conflict section")                                  \
-_ELF_DEFINE_DT(DT_GNU_LIBLIST,      0x6FFFFEF9UL,                      \
-       "address of conflict section")                                  \
-_ELF_DEFINE_DT(DT_CONFIG,           0x6FFFFEFAUL,                      \
-       "configuration file")                                           \
-_ELF_DEFINE_DT(DT_DEPAUDIT,         0x6FFFFEFBUL,                      \
-       "string defining audit libraries")                              \
-_ELF_DEFINE_DT(DT_AUDIT,            0x6FFFFEFCUL,                      \
-       "string defining audit libraries")                              \
-_ELF_DEFINE_DT(DT_PLTPAD,           0x6FFFFEFDUL, "PLT padding")       \
-_ELF_DEFINE_DT(DT_MOVETAB,          0x6FFFFEFEUL,                      \
-       "address of a move table")                                      \
-_ELF_DEFINE_DT(DT_SYMINFO,          0x6FFFFEFFUL,                      \
-       "address of the symbol information table")                      \
-_ELF_DEFINE_DT(DT_ADDRRNGHI,        0x6FFFFEFFUL,                      \
-       "end of range using the d_ptr field")                           \
-_ELF_DEFINE_DT(DT_VERSYM,          0x6FFFFFF0UL,                       \
-       "address of the version section")                               \
-_ELF_DEFINE_DT(DT_RELACOUNT,        0x6FFFFFF9UL,                      \
-       "count of RELA relocations")                                    \
-_ELF_DEFINE_DT(DT_RELCOUNT,         0x6FFFFFFAUL,                      \
-       "count of REL relocations")                                     \
-_ELF_DEFINE_DT(DT_FLAGS_1,          0x6FFFFFFBUL, "flag values")       \
-_ELF_DEFINE_DT(DT_VERDEF,          0x6FFFFFFCUL,                       \
-       "address of the version definition segment")                    \
-_ELF_DEFINE_DT(DT_VERDEFNUM,       0x6FFFFFFDUL,                       \
-       "the number of version definition entries")                     \
-_ELF_DEFINE_DT(DT_VERNEED,         0x6FFFFFFEUL,                       \
-       "address of section with needed versions")                      \
-_ELF_DEFINE_DT(DT_VERNEEDNUM,       0x6FFFFFFFUL,                      \
-       "the number of version needed entries")                         \
-_ELF_DEFINE_DT(DT_LOPROC,           0x70000000UL,                      \
-       "start of processor-specific types")                            \
-_ELF_DEFINE_DT(DT_ARM_SYMTABSZ,            0x70000001UL,                       \
-       "number of entries in the dynamic symbol table")                \
-_ELF_DEFINE_DT(DT_SPARC_REGISTER,   0x70000001UL,                      \
-       "index of an STT_SPARC_REGISTER symbol")                        \
-_ELF_DEFINE_DT(DT_ARM_PREEMPTMAP,   0x70000002UL,                      \
-       "address of the preemption map")                                \
-_ELF_DEFINE_DT(DT_MIPS_RLD_VERSION, 0x70000001UL,                      \
-       "version ID for runtime linker interface")                      \
-_ELF_DEFINE_DT(DT_MIPS_TIME_STAMP,  0x70000002UL,                      \
-       "timestamp")                                                    \
-_ELF_DEFINE_DT(DT_MIPS_ICHECKSUM,   0x70000003UL,                      \
-       "checksum of all external strings and common sizes")            \
-_ELF_DEFINE_DT(DT_MIPS_IVERSION,    0x70000004UL,                      \
-       "string table index of a version string")                       \
-_ELF_DEFINE_DT(DT_MIPS_FLAGS,       0x70000005UL,                      \
-       "MIPS-specific flags")                                          \
-_ELF_DEFINE_DT(DT_MIPS_BASE_ADDRESS, 0x70000006UL,                     \
-       "base address for the executable/DSO")                          \
-_ELF_DEFINE_DT(DT_MIPS_CONFLICT,    0x70000008UL,                      \
-       "address of .conflict section")                                 \
-_ELF_DEFINE_DT(DT_MIPS_LIBLIST,     0x70000009UL,                      \
-       "address of .liblist section")                                  \
-_ELF_DEFINE_DT(DT_MIPS_LOCAL_GOTNO, 0x7000000AUL,                      \
-       "number of local GOT entries")                                  \
-_ELF_DEFINE_DT(DT_MIPS_CONFLICTNO,  0x7000000BUL,                      \
-       "number of entries in the .conflict section")                   \
-_ELF_DEFINE_DT(DT_MIPS_LIBLISTNO,   0x70000010UL,                      \
-       "number of entries in the .liblist section")                    \
-_ELF_DEFINE_DT(DT_MIPS_SYMTABNO,    0x70000011UL,                      \
-       "number of entries in the .dynsym section")                     \
-_ELF_DEFINE_DT(DT_MIPS_UNREFEXTNO,  0x70000012UL,                      \
-       "index of first external dynamic symbol not ref'ed locally")    \
-_ELF_DEFINE_DT(DT_MIPS_GOTSYM,      0x70000013UL,                      \
-       "index of first dynamic symbol corresponds to a GOT entry")     \
-_ELF_DEFINE_DT(DT_MIPS_HIPAGENO,    0x70000014UL,                      \
-       "number of page table entries in GOT")                          \
-_ELF_DEFINE_DT(DT_MIPS_RLD_MAP,     0x70000016UL,                      \
-       "address of runtime linker map")                                \
-_ELF_DEFINE_DT(DT_MIPS_DELTA_CLASS, 0x70000017UL,                      \
-       "Delta C++ class definition")                                   \
-_ELF_DEFINE_DT(DT_MIPS_DELTA_CLASS_NO, 0x70000018UL,                   \
-       "number of entries in DT_MIPS_DELTA_CLASS")                     \
-_ELF_DEFINE_DT(DT_MIPS_DELTA_INSTANCE, 0x70000019UL,                   \
-       "Delta C++ class instances")                                    \
-_ELF_DEFINE_DT(DT_MIPS_DELTA_INSTANCE_NO, 0x7000001AUL,                        \
-       "number of entries in DT_MIPS_DELTA_INSTANCE")                  \
-_ELF_DEFINE_DT(DT_MIPS_DELTA_RELOC, 0x7000001BUL,                      \
-       "Delta relocations")                                            \
-_ELF_DEFINE_DT(DT_MIPS_DELTA_RELOC_NO, 0x7000001CUL,                   \
-       "number of entries in DT_MIPS_DELTA_RELOC")                     \



Home | Main Index | Thread Index | Old Index