summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2007-03-23 21:26:23 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2007-03-23 21:26:23 +0000
commit6528d0cb50579b6b402582d60723583c7ac8759f (patch)
tree819a3d8cf63af65ffcb21b1f841fc058237ae598 /binutils
parent1a27db7d98a907683815ef864cb8d43346d032d9 (diff)
downloadbinutils-gdb-6528d0cb50579b6b402582d60723583c7ac8759f.tar.gz
PR gas/3811
* readelf.c (debug_apply_rela_addends): Do nothing for SH.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 5b4830ee1e4..076965bc3aa 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-23 Kaz Kojima <kkojima@rr.iij4u.or.jp>
+
+ PR gas/3811
+ * readelf.c (debug_apply_rela_addends): Do nothing for SH.
+
2007-03-22 Joseph Myers <joseph@codesourcery.com>
* doc/binutils.texi: Include VERSION_PACKAGE when reporting
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 359ddbefdec..000221e53b1 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)