backends: sparc uses NONE relocation type in ET_EXEC and ET_DYN files
authorMark Wielaard <mark@klomp.org>
Thu, 19 Jan 2023 22:04:04 +0000 (23:04 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 19 Jan 2023 22:46:31 +0000 (23:46 +0100)
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 <mark@klomp.org>
backends/ChangeLog
backends/sparc_reloc.def

index f28ab89..40ec7c0 100644 (file)
@@ -1,3 +1,7 @@
+2023-01-19  Mark Wielaard  <mark@klomp.org>
+
+       * sparc_reloc.def (NONE): Add EXEC and DYN.
+
 2022-12-21  Shahab Vahedi  <shahab@synopsys.email>
 
        * Makefile.am (modules): Add arc.
index 7cd5ce9..f0eeb5c 100644 (file)
@@ -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)