Using the NONE relocation doesn't do anything, but is harmless.

This fixes several (self) tests on sparc that use elflint to
check files are valid ELF.

Signed-off-by: Mark Wielaard <m...@klomp.org>
---
 backends/ChangeLog       | 4 ++++
 backends/sparc_reloc.def | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/backends/ChangeLog b/backends/ChangeLog
index f28ab89b..40ec7c0c 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,7 @@
+2023-01-19  Mark Wielaard  <m...@klomp.org>
+
+       * sparc_reloc.def (NONE): Add EXEC and DYN.
+
 2022-12-21  Shahab Vahedi  <shahab@synopsys.email>
 
        * Makefile.am (modules): Add arc.
diff --git a/backends/sparc_reloc.def b/backends/sparc_reloc.def
index 7cd5ce96..f0eeb5c6 100644
--- a/backends/sparc_reloc.def
+++ b/backends/sparc_reloc.def
@@ -28,7 +28,7 @@
 
 /*         NAME,               REL|EXEC|DYN    */
 
-RELOC_TYPE (NONE,               REL)
+RELOC_TYPE (NONE,               REL|EXEC|DYN)
 RELOC_TYPE (8,                  REL)
 RELOC_TYPE (16,                 REL)
 RELOC_TYPE (32,                 REL|DYN)
-- 
2.31.1

Reply via email to