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 Sync with Elftoolchain...



details:   https://anonhg.NetBSD.org/src/rev/9dbb8b86231d
branches:  trunk
changeset: 982861:9dbb8b86231d
user:      jkoshy <jkoshy%NetBSD.org@localhost>
date:      Thu Apr 29 17:40:42 2021 +0000

description:
Sync with Elftoolchain upstream r3948.

diffstat:

 external/bsd/elftoolchain/dist/common/Makefile              |     5 +-
 external/bsd/elftoolchain/dist/common/sys/Makefile          |     2 +-
 external/bsd/elftoolchain/dist/common/sys/elfconstants.m4   |  3147 +++++-----
 external/bsd/elftoolchain/dist/common/sys/elfdefinitions.m4 |    59 +-
 4 files changed, 1595 insertions(+), 1618 deletions(-)

diffs (truncated from 4252 to 300 lines):

diff -r c7f63080b5a3 -r 9dbb8b86231d external/bsd/elftoolchain/dist/common/Makefile
--- a/external/bsd/elftoolchain/dist/common/Makefile    Thu Apr 29 17:38:08 2021 +0000
+++ b/external/bsd/elftoolchain/dist/common/Makefile    Thu Apr 29 17:40:42 2021 +0000
@@ -1,4 +1,4 @@
-# Id: Makefile 3938 2021-04-04 18:16:18Z jkoshy
+# Id: Makefile 3948 2021-04-24 19:21:00Z jkoshy
 
 TOP=   ..
 
@@ -11,9 +11,6 @@
 
 all depend:
 
-clean clobber:
-       rm -f ${CLEANFILES}
-
 cleandepend:
        rm -f ${.OBJDIR}/.depend
 
diff -r c7f63080b5a3 -r 9dbb8b86231d external/bsd/elftoolchain/dist/common/sys/Makefile
--- a/external/bsd/elftoolchain/dist/common/sys/Makefile        Thu Apr 29 17:38:08 2021 +0000
+++ b/external/bsd/elftoolchain/dist/common/sys/Makefile        Thu Apr 29 17:40:42 2021 +0000
@@ -1,4 +1,4 @@
-# Id: Makefile 3943 2021-04-05 17:03:34Z jkoshy
+# Id: Makefile 3944 2021-04-10 10:19:00Z jkoshy
 
 TOP=   ../..
 
diff -r c7f63080b5a3 -r 9dbb8b86231d external/bsd/elftoolchain/dist/common/sys/elfconstants.m4
--- a/external/bsd/elftoolchain/dist/common/sys/elfconstants.m4 Thu Apr 29 17:38:08 2021 +0000
+++ b/external/bsd/elftoolchain/dist/common/sys/elfconstants.m4 Thu Apr 29 17:40:42 2021 +0000
@@ -32,476 +32,500 @@
 # - The "Linkers and Libraries Guide", from Sun Microsystems.
 
 define(`VCSID_ELFCONSTANTS_M4',
-       `Id: elfconstants.m4 3939 2021-04-04 20:15:13Z jkoshy')
+       `Id: elfconstants.m4 3946 2021-04-10 21:10:42Z jkoshy')
+
+# In the following definitions, `_' is an M4 macro that is meant to be
+# expanded later.  Its intended usage is:
+#
+#   `_(ELF_SYMBOL, VALUE, OPTIONAL-DESCRIPTION)'
+#
+# These (deferred) macros are then grouped together into named collections.
+#
+# At the point of use, `_' would be defined to expand to the desired
+# replacement text.
+#
+#   # File: example_expansion.m4
+#
+#   define(`_',`case $2: return ("$1");')
+#   include(`elfconstants.m4')
+#
+#   const char *name_of_capability(int capability)
+#   {
+#       switch(capability) {
+#       DEFINE_CAPABILITIES();
+#       default:
+#           return (NULL);
+#       }
+#   }   
 
 #
 # 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')')
+_(`CA_SUNW_NULL',      0,      `ignored')
+_(`CA_SUNW_HW_1',      1,      `hardware capability')
+_(`CA_SUNW_SW_1',      2,      `software capability')')
 
 #
 # Flags used with dynamic linking entries.
 #
 define(`DEFINE_DYN_FLAGS',`
-DEFINE_DYN_FLAG(`DF_ORIGIN',           0x1,
+_(`DF_ORIGIN',           0x1,
        `object being loaded may refer to `$ORIGIN'')
-DEFINE_DYN_FLAG(`DF_SYMBOLIC',         0x2,
+_(`DF_SYMBOLIC',         0x2,
        `search library for references before executable')
-DEFINE_DYN_FLAG(`DF_TEXTREL',          0x4,
+_(`DF_TEXTREL',          0x4,
        `relocation entries may modify text segment')
-DEFINE_DYN_FLAG(`DF_BIND_NOW',         0x8,
+_(`DF_BIND_NOW',         0x8,
        `process relocation entries at load time')
-DEFINE_DYN_FLAG(`DF_STATIC_TLS',       0x10,
+_(`DF_STATIC_TLS',       0x10,
        `uses static thread-local storage')
-DEFINE_DYN_FLAG(`DF_1_BIND_NOW',       0x1,
+_(`DF_1_BIND_NOW',       0x1,
        `process relocation entries at load time')
-DEFINE_DYN_FLAG(`DF_1_GLOBAL',         0x2,
+_(`DF_1_GLOBAL',         0x2,
        `unused')
-DEFINE_DYN_FLAG(`DF_1_GROUP',          0x4,
+_(`DF_1_GROUP',          0x4,
        `object is a member of a group')
-DEFINE_DYN_FLAG(`DF_1_NODELETE',       0x8,
+_(`DF_1_NODELETE',       0x8,
        `object cannot be deleted from a process')
-DEFINE_DYN_FLAG(`DF_1_LOADFLTR',       0x10,
+_(`DF_1_LOADFLTR',       0x10,
        `immediate load filtees')
-DEFINE_DYN_FLAG(`DF_1_INITFIRST',      0x20,
+_(`DF_1_INITFIRST',      0x20,
        `initialize object first')
-DEFINE_DYN_FLAG(`DF_1_NOOPEN',         0x40,
+_(`DF_1_NOOPEN',         0x40,
        `disallow dlopen()')
-DEFINE_DYN_FLAG(`DF_1_ORIGIN',         0x80,
+_(`DF_1_ORIGIN',         0x80,
        `object being loaded may refer to $ORIGIN')
-DEFINE_DYN_FLAG(`DF_1_DIRECT',         0x100,
+_(`DF_1_DIRECT',         0x100,
        `direct bindings enabled')
-DEFINE_DYN_FLAG(`DF_1_INTERPOSE',      0x400,
+_(`DF_1_INTERPOSE',      0x400,
        `object is interposer')
-DEFINE_DYN_FLAG(`DF_1_NODEFLIB',       0x800,
+_(`DF_1_NODEFLIB',       0x800,
        `ignore default library search path')
-DEFINE_DYN_FLAG(`DF_1_NODUMP',         0x1000,
+_(`DF_1_NODUMP',         0x1000,
        `disallow dldump()')
-DEFINE_DYN_FLAG(`DF_1_CONFALT',        0x2000,
+_(`DF_1_CONFALT',        0x2000,
        `object is a configuration alternative')
-DEFINE_DYN_FLAG(`DF_1_ENDFILTEE',      0x4000,
+_(`DF_1_ENDFILTEE',      0x4000,
        `filtee terminates filter search')
-DEFINE_DYN_FLAG(`DF_1_DISPRELDNE',     0x8000,
+_(`DF_1_DISPRELDNE',     0x8000,
        `displacement relocation done')
-DEFINE_DYN_FLAG(`DF_1_DISPRELPND',     0x10000,
+_(`DF_1_DISPRELPND',     0x10000,
        `displacement relocation pending')')
 
 #
 # Dynamic linking entry types.
 #
 define(`DEFINE_DYN_TYPES',`
-DEFINE_DYN_TYPE(`DT_NULL',             0,
+_(`DT_NULL',             0,
        `end of array')
-DEFINE_DYN_TYPE(`DT_NEEDED',           1,
+_(`DT_NEEDED',           1,
        `names a needed library')
-DEFINE_DYN_TYPE(`DT_PLTRELSZ',         2,
+_(`DT_PLTRELSZ',         2,
        `size in bytes of associated relocation entries')
-DEFINE_DYN_TYPE(`DT_PLTGOT',           3,
+_(`DT_PLTGOT',           3,
        `address associated with the procedure linkage table')
-DEFINE_DYN_TYPE(`DT_HASH',             4,
+_(`DT_HASH',             4,
        `address of the symbol hash table')
-DEFINE_DYN_TYPE(`DT_STRTAB',           5,
+_(`DT_STRTAB',           5,
        `address of the string table')
-DEFINE_DYN_TYPE(`DT_SYMTAB',           6,
+_(`DT_SYMTAB',           6,
        `address of the symbol table')
-DEFINE_DYN_TYPE(`DT_RELA',             7,
+_(`DT_RELA',             7,
        `address of the relocation table')
-DEFINE_DYN_TYPE(`DT_RELASZ',           8,
+_(`DT_RELASZ',           8,
        `size of the DT_RELA table')
-DEFINE_DYN_TYPE(`DT_RELAENT',          9,
+_(`DT_RELAENT',          9,
        `size of each DT_RELA entry')
-DEFINE_DYN_TYPE(`DT_STRSZ',            10,
+_(`DT_STRSZ',            10,
        `size of the string table')
-DEFINE_DYN_TYPE(`DT_SYMENT',           11,
+_(`DT_SYMENT',           11,
        `size of a symbol table entry')
-DEFINE_DYN_TYPE(`DT_INIT',             12,
+_(`DT_INIT',             12,
        `address of the initialization function')
-DEFINE_DYN_TYPE(`DT_FINI',             13,
+_(`DT_FINI',             13,
        `address of the finalization function')
-DEFINE_DYN_TYPE(`DT_SONAME',           14,
+_(`DT_SONAME',           14,
        `names the shared object')
-DEFINE_DYN_TYPE(`DT_RPATH',            15,
+_(`DT_RPATH',            15,
        `runtime library search path')
-DEFINE_DYN_TYPE(`DT_SYMBOLIC',         16,
+_(`DT_SYMBOLIC',         16,
        `alter symbol resolution algorithm')
-DEFINE_DYN_TYPE(`DT_REL',              17,
+_(`DT_REL',              17,
        `address of the DT_REL table')
-DEFINE_DYN_TYPE(`DT_RELSZ',            18,
+_(`DT_RELSZ',            18,
        `size of the DT_REL table')
-DEFINE_DYN_TYPE(`DT_RELENT',           19,
+_(`DT_RELENT',           19,
        `size of each DT_REL entry')
-DEFINE_DYN_TYPE(`DT_PLTREL',           20,
+_(`DT_PLTREL',           20,
        `type of relocation entry in the procedure linkage table')
-DEFINE_DYN_TYPE(`DT_DEBUG',            21,
+_(`DT_DEBUG',            21,
        `used for debugging')
-DEFINE_DYN_TYPE(`DT_TEXTREL',          22,
+_(`DT_TEXTREL',          22,
        `text segment may be written to during relocation')
-DEFINE_DYN_TYPE(`DT_JMPREL',           23,
+_(`DT_JMPREL',           23,
        `address of relocation entries associated with the procedure linkage table')
-DEFINE_DYN_TYPE(`DT_BIND_NOW',         24,
+_(`DT_BIND_NOW',         24,
        `bind symbols at loading time')
-DEFINE_DYN_TYPE(`DT_INIT_ARRAY',       25,
+_(`DT_INIT_ARRAY',       25,
        `pointers to initialization functions')
-DEFINE_DYN_TYPE(`DT_FINI_ARRAY',       26,
+_(`DT_FINI_ARRAY',       26,
        `pointers to termination functions')
-DEFINE_DYN_TYPE(`DT_INIT_ARRAYSZ',     27,
+_(`DT_INIT_ARRAYSZ',     27,
        `size of the DT_INIT_ARRAY')
-DEFINE_DYN_TYPE(`DT_FINI_ARRAYSZ',     28,
+_(`DT_FINI_ARRAYSZ',     28,
        `size of the DT_FINI_ARRAY')
-DEFINE_DYN_TYPE(`DT_RUNPATH',          29,
+_(`DT_RUNPATH',          29,
        `index of library search path string')
-DEFINE_DYN_TYPE(`DT_FLAGS',            30,
+_(`DT_FLAGS',            30,
        `flags specific to the object being loaded')
-DEFINE_DYN_TYPE(`DT_ENCODING',         32,
+_(`DT_ENCODING',         32,
        `standard semantics')
-DEFINE_DYN_TYPE(`DT_PREINIT_ARRAY',    32,
+_(`DT_PREINIT_ARRAY',    32,
        `pointers to pre-initialization functions')
-DEFINE_DYN_TYPE(`DT_PREINIT_ARRAYSZ',  33,
+_(`DT_PREINIT_ARRAYSZ',  33,
        `size of pre-initialization array')
-DEFINE_DYN_TYPE(`DT_MAXPOSTAGS',       34,
+_(`DT_MAXPOSTAGS',       34,
        `the number of positive tags')
-DEFINE_DYN_TYPE(`DT_LOOS',             0x6000000DUL,
+_(`DT_LOOS',             0x6000000DUL,
        `start of OS-specific types')
-DEFINE_DYN_TYPE(`DT_SUNW_AUXILIARY',   0x6000000DUL,
+_(`DT_SUNW_AUXILIARY',   0x6000000DUL,
        `offset of string naming auxiliary filtees')
-DEFINE_DYN_TYPE(`DT_SUNW_RTLDINF',     0x6000000EUL,
+_(`DT_SUNW_RTLDINF',     0x6000000EUL,
        `rtld internal use')
-DEFINE_DYN_TYPE(`DT_SUNW_FILTER',      0x6000000FUL,
+_(`DT_SUNW_FILTER',      0x6000000FUL,
        `offset of string naming standard filtees')
-DEFINE_DYN_TYPE(`DT_SUNW_CAP',         0x60000010UL,
+_(`DT_SUNW_CAP',         0x60000010UL,
        `address of hardware capabilities section')
-DEFINE_DYN_TYPE(`DT_SUNW_ASLR',        0x60000023UL,
+_(`DT_SUNW_ASLR',        0x60000023UL,
        `Address Space Layout Randomization flag')
-DEFINE_DYN_TYPE(`DT_HIOS',             0x6FFFF000UL,
+_(`DT_HIOS',             0x6FFFF000UL,
        `end of OS-specific types')
-DEFINE_DYN_TYPE(`DT_VALRNGLO',         0x6FFFFD00UL,
+_(`DT_VALRNGLO',         0x6FFFFD00UL,
        `start of range using the d_val field')
-DEFINE_DYN_TYPE(`DT_GNU_PRELINKED',    0x6FFFFDF5UL,
+_(`DT_GNU_PRELINKED',    0x6FFFFDF5UL,
        `prelinking timestamp')
-DEFINE_DYN_TYPE(`DT_GNU_CONFLICTSZ',   0x6FFFFDF6UL,
+_(`DT_GNU_CONFLICTSZ',   0x6FFFFDF6UL,
        `size of conflict section')
-DEFINE_DYN_TYPE(`DT_GNU_LIBLISTSZ',    0x6FFFFDF7UL,
+_(`DT_GNU_LIBLISTSZ',    0x6FFFFDF7UL,
        `size of library list')
-DEFINE_DYN_TYPE(`DT_CHECKSUM',         0x6FFFFDF8UL,
+_(`DT_CHECKSUM',         0x6FFFFDF8UL,
        `checksum for the object')
-DEFINE_DYN_TYPE(`DT_PLTPADSZ',         0x6FFFFDF9UL,
+_(`DT_PLTPADSZ',         0x6FFFFDF9UL,
        `size of PLT padding')
-DEFINE_DYN_TYPE(`DT_MOVEENT',          0x6FFFFDFAUL,
+_(`DT_MOVEENT',          0x6FFFFDFAUL,
        `size of DT_MOVETAB entries')
-DEFINE_DYN_TYPE(`DT_MOVESZ',           0x6FFFFDFBUL,
+_(`DT_MOVESZ',           0x6FFFFDFBUL,
        `total size of the MOVETAB table')
-DEFINE_DYN_TYPE(`DT_FEATURE',          0x6FFFFDFCUL,
+_(`DT_FEATURE',          0x6FFFFDFCUL,
        `feature values')
-DEFINE_DYN_TYPE(`DT_POSFLAG_1',        0x6FFFFDFDUL,
+_(`DT_POSFLAG_1',        0x6FFFFDFDUL,



Home | Main Index | Thread Index | Old Index