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/sys Add files present ...



details:   https://anonhg.NetBSD.org/src/rev/6faf640ad279
branches:  trunk
changeset: 961028:6faf640ad279
user:      jkoshy <jkoshy%NetBSD.org@localhost>
date:      Tue Apr 06 18:38:04 2021 +0000

description:
Add files present in upstream revision r3943.

diffstat:

 external/bsd/elftoolchain/dist/common/sys/Makefile          |    25 +
 external/bsd/elftoolchain/dist/common/sys/elfconstants.m4   |  2592 +++++++++++
 external/bsd/elftoolchain/dist/common/sys/elfdefinitions.m4 |   759 +++
 3 files changed, 3376 insertions(+), 0 deletions(-)

diffs (truncated from 3388 to 300 lines):

diff -r 09a44d7205d9 -r 6faf640ad279 external/bsd/elftoolchain/dist/common/sys/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/elftoolchain/dist/common/sys/Makefile        Tue Apr 06 18:38:04 2021 +0000
@@ -0,0 +1,25 @@
+# Id: Makefile 3943 2021-04-05 17:03:34Z jkoshy
+
+TOP=   ../..
+
+SRCS=          elfdefinitions.m4 elfconstants.m4
+INCS=          elfdefinitions.h
+INCSDIR=       /usr/include/sys
+
+CLEANFILES=    ${INCS}
+
+.PHONY:        all clean clobber depend obj
+
+all:   ${INCS}
+
+elfdefinitions.h:      elfdefinitions.m4 elfconstants.m4
+       m4 -I${.CURDIR} -D SRCDIR=${.CURDIR} ${M4FLAGS} \
+               elfdefinitions.m4 > ${.TARGET}
+
+depend cleandepend:
+
+clean clobber:
+       rm -f ${CLEANFILES}
+
+.include "${TOP}/mk/elftoolchain.inc.mk"
+.include "${TOP}/mk/elftoolchain.m4.mk"
diff -r 09a44d7205d9 -r 6faf640ad279 external/bsd/elftoolchain/dist/common/sys/elfconstants.m4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/elftoolchain/dist/common/sys/elfconstants.m4 Tue Apr 06 18:38:04 2021 +0000
@@ -0,0 +1,2592 @@
+# Copyright (c) 2010,2021 Joseph Koshy
+# All rights reserved.
+
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+
+# 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.
+
+define(`VCSID_ELFCONSTANTS_M4',
+       `Id: elfconstants.m4 3939 2021-04-04 20:15:13Z jkoshy')
+
+#
+# Types of capabilities.
+# 
+define(`DEFINE_CAPABILITIES',`
+DEFINE_CAPABILITY(`CA_SUNW_NULL',      0,      `ignored')
+DEFINE_CAPABILITY(`CA_SUNW_HW_1',      1,      `hardware capability')
+DEFINE_CAPABILITY(`CA_SUNW_SW_1',      2,      `software capability')')
+
+#
+# Flags used with dynamic linking entries.
+#
+define(`DEFINE_DYN_FLAGS',`
+DEFINE_DYN_FLAG(`DF_ORIGIN',           0x1,
+       `object being loaded may refer to `$ORIGIN'')
+DEFINE_DYN_FLAG(`DF_SYMBOLIC',         0x2,
+       `search library for references before executable')
+DEFINE_DYN_FLAG(`DF_TEXTREL',          0x4,
+       `relocation entries may modify text segment')
+DEFINE_DYN_FLAG(`DF_BIND_NOW',         0x8,
+       `process relocation entries at load time')
+DEFINE_DYN_FLAG(`DF_STATIC_TLS',       0x10,
+       `uses static thread-local storage')
+DEFINE_DYN_FLAG(`DF_1_BIND_NOW',       0x1,
+       `process relocation entries at load time')
+DEFINE_DYN_FLAG(`DF_1_GLOBAL',         0x2,
+       `unused')
+DEFINE_DYN_FLAG(`DF_1_GROUP',          0x4,
+       `object is a member of a group')
+DEFINE_DYN_FLAG(`DF_1_NODELETE',       0x8,
+       `object cannot be deleted from a process')
+DEFINE_DYN_FLAG(`DF_1_LOADFLTR',       0x10,
+       `immediate load filtees')
+DEFINE_DYN_FLAG(`DF_1_INITFIRST',      0x20,
+       `initialize object first')
+DEFINE_DYN_FLAG(`DF_1_NOOPEN',         0x40,
+       `disallow dlopen()')
+DEFINE_DYN_FLAG(`DF_1_ORIGIN',         0x80,
+       `object being loaded may refer to $ORIGIN')
+DEFINE_DYN_FLAG(`DF_1_DIRECT',         0x100,
+       `direct bindings enabled')
+DEFINE_DYN_FLAG(`DF_1_INTERPOSE',      0x400,
+       `object is interposer')
+DEFINE_DYN_FLAG(`DF_1_NODEFLIB',       0x800,
+       `ignore default library search path')
+DEFINE_DYN_FLAG(`DF_1_NODUMP',         0x1000,
+       `disallow dldump()')
+DEFINE_DYN_FLAG(`DF_1_CONFALT',        0x2000,
+       `object is a configuration alternative')
+DEFINE_DYN_FLAG(`DF_1_ENDFILTEE',      0x4000,
+       `filtee terminates filter search')
+DEFINE_DYN_FLAG(`DF_1_DISPRELDNE',     0x8000,
+       `displacement relocation done')
+DEFINE_DYN_FLAG(`DF_1_DISPRELPND',     0x10000,
+       `displacement relocation pending')')
+
+#
+# Dynamic linking entry types.
+#
+define(`DEFINE_DYN_TYPES',`
+DEFINE_DYN_TYPE(`DT_NULL',             0,
+       `end of array')
+DEFINE_DYN_TYPE(`DT_NEEDED',           1,
+       `names a needed library')
+DEFINE_DYN_TYPE(`DT_PLTRELSZ',         2,
+       `size in bytes of associated relocation entries')
+DEFINE_DYN_TYPE(`DT_PLTGOT',           3,
+       `address associated with the procedure linkage table')
+DEFINE_DYN_TYPE(`DT_HASH',             4,
+       `address of the symbol hash table')
+DEFINE_DYN_TYPE(`DT_STRTAB',           5,
+       `address of the string table')
+DEFINE_DYN_TYPE(`DT_SYMTAB',           6,
+       `address of the symbol table')
+DEFINE_DYN_TYPE(`DT_RELA',             7,
+       `address of the relocation table')
+DEFINE_DYN_TYPE(`DT_RELASZ',           8,
+       `size of the DT_RELA table')
+DEFINE_DYN_TYPE(`DT_RELAENT',          9,
+       `size of each DT_RELA entry')
+DEFINE_DYN_TYPE(`DT_STRSZ',            10,
+       `size of the string table')
+DEFINE_DYN_TYPE(`DT_SYMENT',           11,
+       `size of a symbol table entry')
+DEFINE_DYN_TYPE(`DT_INIT',             12,
+       `address of the initialization function')
+DEFINE_DYN_TYPE(`DT_FINI',             13,
+       `address of the finalization function')
+DEFINE_DYN_TYPE(`DT_SONAME',           14,
+       `names the shared object')
+DEFINE_DYN_TYPE(`DT_RPATH',            15,
+       `runtime library search path')
+DEFINE_DYN_TYPE(`DT_SYMBOLIC',         16,
+       `alter symbol resolution algorithm')
+DEFINE_DYN_TYPE(`DT_REL',              17,
+       `address of the DT_REL table')
+DEFINE_DYN_TYPE(`DT_RELSZ',            18,
+       `size of the DT_REL table')
+DEFINE_DYN_TYPE(`DT_RELENT',           19,
+       `size of each DT_REL entry')
+DEFINE_DYN_TYPE(`DT_PLTREL',           20,
+       `type of relocation entry in the procedure linkage table')
+DEFINE_DYN_TYPE(`DT_DEBUG',            21,
+       `used for debugging')
+DEFINE_DYN_TYPE(`DT_TEXTREL',          22,
+       `text segment may be written to during relocation')
+DEFINE_DYN_TYPE(`DT_JMPREL',           23,
+       `address of relocation entries associated with the procedure linkage table')
+DEFINE_DYN_TYPE(`DT_BIND_NOW',         24,
+       `bind symbols at loading time')
+DEFINE_DYN_TYPE(`DT_INIT_ARRAY',       25,
+       `pointers to initialization functions')
+DEFINE_DYN_TYPE(`DT_FINI_ARRAY',       26,
+       `pointers to termination functions')
+DEFINE_DYN_TYPE(`DT_INIT_ARRAYSZ',     27,
+       `size of the DT_INIT_ARRAY')
+DEFINE_DYN_TYPE(`DT_FINI_ARRAYSZ',     28,
+       `size of the DT_FINI_ARRAY')
+DEFINE_DYN_TYPE(`DT_RUNPATH',          29,
+       `index of library search path string')
+DEFINE_DYN_TYPE(`DT_FLAGS',            30,
+       `flags specific to the object being loaded')
+DEFINE_DYN_TYPE(`DT_ENCODING',         32,
+       `standard semantics')
+DEFINE_DYN_TYPE(`DT_PREINIT_ARRAY',    32,
+       `pointers to pre-initialization functions')
+DEFINE_DYN_TYPE(`DT_PREINIT_ARRAYSZ',  33,
+       `size of pre-initialization array')
+DEFINE_DYN_TYPE(`DT_MAXPOSTAGS',       34,
+       `the number of positive tags')
+DEFINE_DYN_TYPE(`DT_LOOS',             0x6000000DUL,
+       `start of OS-specific types')
+DEFINE_DYN_TYPE(`DT_SUNW_AUXILIARY',   0x6000000DUL,
+       `offset of string naming auxiliary filtees')
+DEFINE_DYN_TYPE(`DT_SUNW_RTLDINF',     0x6000000EUL,
+       `rtld internal use')
+DEFINE_DYN_TYPE(`DT_SUNW_FILTER',      0x6000000FUL,
+       `offset of string naming standard filtees')
+DEFINE_DYN_TYPE(`DT_SUNW_CAP',         0x60000010UL,
+       `address of hardware capabilities section')
+DEFINE_DYN_TYPE(`DT_SUNW_ASLR',        0x60000023UL,
+       `Address Space Layout Randomization flag')
+DEFINE_DYN_TYPE(`DT_HIOS',             0x6FFFF000UL,
+       `end of OS-specific types')
+DEFINE_DYN_TYPE(`DT_VALRNGLO',         0x6FFFFD00UL,
+       `start of range using the d_val field')
+DEFINE_DYN_TYPE(`DT_GNU_PRELINKED',    0x6FFFFDF5UL,
+       `prelinking timestamp')
+DEFINE_DYN_TYPE(`DT_GNU_CONFLICTSZ',   0x6FFFFDF6UL,
+       `size of conflict section')
+DEFINE_DYN_TYPE(`DT_GNU_LIBLISTSZ',    0x6FFFFDF7UL,
+       `size of library list')
+DEFINE_DYN_TYPE(`DT_CHECKSUM',         0x6FFFFDF8UL,
+       `checksum for the object')
+DEFINE_DYN_TYPE(`DT_PLTPADSZ',         0x6FFFFDF9UL,
+       `size of PLT padding')
+DEFINE_DYN_TYPE(`DT_MOVEENT',          0x6FFFFDFAUL,
+       `size of DT_MOVETAB entries')
+DEFINE_DYN_TYPE(`DT_MOVESZ',           0x6FFFFDFBUL,
+       `total size of the MOVETAB table')
+DEFINE_DYN_TYPE(`DT_FEATURE',          0x6FFFFDFCUL,
+       `feature values')
+DEFINE_DYN_TYPE(`DT_POSFLAG_1',        0x6FFFFDFDUL,
+       `dynamic position flags')
+DEFINE_DYN_TYPE(`DT_SYMINSZ',          0x6FFFFDFEUL,
+       `size of the DT_SYMINFO table')
+DEFINE_DYN_TYPE(`DT_SYMINENT',         0x6FFFFDFFUL,
+       `size of a DT_SYMINFO entry')
+DEFINE_DYN_TYPE(`DT_VALRNGHI',         0x6FFFFDFFUL,
+       `end of range using the d_val field')
+DEFINE_DYN_TYPE(`DT_ADDRRNGLO',        0x6FFFFE00UL,
+       `start of range using the d_ptr field')
+DEFINE_DYN_TYPE(`DT_GNU_HASH',        0x6FFFFEF5UL,
+       `GNU style hash tables')
+DEFINE_DYN_TYPE(`DT_TLSDESC_PLT',      0x6FFFFEF6UL,
+       `location of PLT entry for TLS descriptor resolver calls')
+DEFINE_DYN_TYPE(`DT_TLSDESC_GOT',      0x6FFFFEF7UL,
+       `location of GOT entry used by TLS descriptor resolver PLT entry')
+DEFINE_DYN_TYPE(`DT_GNU_CONFLICT',     0x6FFFFEF8UL,
+       `address of conflict section')
+DEFINE_DYN_TYPE(`DT_GNU_LIBLIST',      0x6FFFFEF9UL,
+       `address of conflict section')
+DEFINE_DYN_TYPE(`DT_CONFIG',           0x6FFFFEFAUL,
+       `configuration file')
+DEFINE_DYN_TYPE(`DT_DEPAUDIT',         0x6FFFFEFBUL,
+       `string defining audit libraries')
+DEFINE_DYN_TYPE(`DT_AUDIT',            0x6FFFFEFCUL,
+       `string defining audit libraries')
+DEFINE_DYN_TYPE(`DT_PLTPAD',           0x6FFFFEFDUL,
+       `PLT padding')
+DEFINE_DYN_TYPE(`DT_MOVETAB',          0x6FFFFEFEUL,
+       `address of a move table')
+DEFINE_DYN_TYPE(`DT_SYMINFO',          0x6FFFFEFFUL,
+       `address of the symbol information table')
+DEFINE_DYN_TYPE(`DT_ADDRRNGHI',        0x6FFFFEFFUL,
+       `end of range using the d_ptr field')
+DEFINE_DYN_TYPE(`DT_VERSYM',          0x6FFFFFF0UL,
+       `address of the version section')
+DEFINE_DYN_TYPE(`DT_RELACOUNT',        0x6FFFFFF9UL,
+       `count of RELA relocations')
+DEFINE_DYN_TYPE(`DT_RELCOUNT',         0x6FFFFFFAUL,
+       `count of REL relocations')
+DEFINE_DYN_TYPE(`DT_FLAGS_1',          0x6FFFFFFBUL,
+       `flag values')
+DEFINE_DYN_TYPE(`DT_VERDEF',          0x6FFFFFFCUL,
+       `address of the version definition segment')
+DEFINE_DYN_TYPE(`DT_VERDEFNUM',               0x6FFFFFFDUL,
+       `the number of version definition entries')
+DEFINE_DYN_TYPE(`DT_VERNEED',         0x6FFFFFFEUL,
+       `address of section with needed versions')
+DEFINE_DYN_TYPE(`DT_VERNEEDNUM',       0x6FFFFFFFUL,
+       `the number of version needed entries')
+DEFINE_DYN_TYPE(`DT_LOPROC',           0x70000000UL,
+       `start of processor-specific types')
+DEFINE_DYN_TYPE(`DT_ARM_SYMTABSZ',     0x70000001UL,
+       `number of entries in the dynamic symbol table')
+DEFINE_DYN_TYPE(`DT_SPARC_REGISTER',   0x70000001UL,
+       `index of an STT_SPARC_REGISTER symbol')
+DEFINE_DYN_TYPE(`DT_ARM_PREEMPTMAP',   0x70000002UL,
+       `address of the preemption map')
+DEFINE_DYN_TYPE(`DT_MIPS_RLD_VERSION', 0x70000001UL,
+       `version ID for runtime linker interface')
+DEFINE_DYN_TYPE(`DT_MIPS_TIME_STAMP',  0x70000002UL,
+       `timestamp')
+DEFINE_DYN_TYPE(`DT_MIPS_ICHECKSUM',   0x70000003UL,
+       `checksum of all external strings and common sizes')
+DEFINE_DYN_TYPE(`DT_MIPS_IVERSION',    0x70000004UL,
+       `string table index of a version string')
+DEFINE_DYN_TYPE(`DT_MIPS_FLAGS',       0x70000005UL,
+       `MIPS-specific flags')
+DEFINE_DYN_TYPE(`DT_MIPS_BASE_ADDRESS', 0x70000006UL,
+       `base address for the executable/DSO')



Home | Main Index | Thread Index | Old Index