]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
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 f28ab89bcf880d3ff6899a986e28b66f1d458791..40ec7c0c38db97ea79955334beb75ce3aed4dd32 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 7cd5ce968eab8da403a4ff6f841147a31e8fe9f4..f0eeb5c67923b204771edef322b9ea95df0ffd6f 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)