aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 359ddbe..000221e 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -7803,6 +7803,10 @@ debug_apply_rela_addends (void *file,
if (!is_relocatable)
return 1;
+ /* SH uses RELA but uses in place value instead of the addend field. */
+ if (elf_header.e_machine == EM_SH)
+ return 0;
+
for (relsec = section_headers;
relsec < section_headers + elf_header.e_shnum;
++relsec)