Module Name:    src
Committed By:   jkoshy
Date:           Thu Dec  7 17:28:36 UTC 2023

Modified Files:
        src/external/bsd/elftoolchain/dist/common/sys: elfconstants.m4

Log Message:
Update elfconstants.m4 to upstream [r3986].

- Add the NetBSD spelling of a 386 relocation.
- Add VAX relocations.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    src/external/bsd/elftoolchain/dist/common/sys/elfconstants.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/elftoolchain/dist/common/sys/elfconstants.m4
diff -u src/external/bsd/elftoolchain/dist/common/sys/elfconstants.m4:1.4 src/external/bsd/elftoolchain/dist/common/sys/elfconstants.m4:1.5
--- src/external/bsd/elftoolchain/dist/common/sys/elfconstants.m4:1.4	Mon May  2 20:27:43 2022
+++ src/external/bsd/elftoolchain/dist/common/sys/elfconstants.m4	Thu Dec  7 17:28:36 2023
@@ -1,4 +1,4 @@
-dnl 	$NetBSD: elfconstants.m4,v 1.4 2022/05/02 20:27:43 jkoshy Exp $
+dnl 	$NetBSD: elfconstants.m4,v 1.5 2023/12/07 17:28:36 jkoshy Exp $
 # Copyright (c) 2010,2021 Joseph Koshy
 # All rights reserved.
 
@@ -33,7 +33,7 @@ dnl 	$NetBSD: elfconstants.m4,v 1.4 2022
 # - The "Linkers and Libraries Guide", from Sun Microsystems.
 
 define(`VCSID_ELFCONSTANTS_M4',
-	`Id: elfconstants.m4 3980 2022-05-02 19:50:00Z jkoshy')
+	`$Id: elfconstants.m4,v 1.5 2023/12/07 17:28:36 jkoshy Exp $')
 
 # In the following definitions, `_' is an M4 macro that is meant to be
 # expanded later.  Its intended usage is:
@@ -1605,6 +1605,7 @@ _(R_386_GOT32,		3)
 _(R_386_PLT32,		4)
 _(R_386_COPY,		5)
 _(R_386_GLOB_DAT,	6)
+_(R_386_JMP_SLOT,	7)
 _(R_386_JUMP_SLOT,	7)
 _(R_386_RELATIVE,	8)
 _(R_386_GOTOFF,		9)
@@ -2402,6 +2403,22 @@ _(R_SPARC_GOTDATA_OP,	84)
 _(R_SPARC_H34,		85)
 ')
 
+define(`DEFINE_VAX_RELOCATIONS',`
+_(R_VAX_NONE,           0)
+_(R_VAX_32,             1)
+_(R_VAX_16,             2)
+_(R_VAX_8,              3)
+_(R_VAX_PC32,           4)
+_(R_VAX_PC16,           5)
+_(R_VAX_PC8,            6)
+_(R_VAX_GOT32,          7)
+_(R_VAX_PLT32,         13)
+_(R_VAX_COPY,          19)
+_(R_VAX_GLOB_DAT,      20)
+_(R_VAX_JMP_SLOT,      21)
+_(R_VAX_RELATIVE,      22)
+')
+
 define(`DEFINE_X86_64_RELOCATIONS',`
 _(R_X86_64_NONE,	0)
 _(R_X86_64_64,		1)
@@ -2457,6 +2474,7 @@ DEFINE_PPC32_RELOCATIONS()
 DEFINE_PPC64_RELOCATIONS()
 DEFINE_RISCV_RELOCATIONS()
 DEFINE_SPARC_RELOCATIONS()
+DEFINE_VAX_RELOCATIONS()
 DEFINE_X86_64_RELOCATIONS()
 ')
 

Reply via email to