]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR gas/3811
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Fri, 23 Mar 2007 21:26:23 +0000 (21:26 +0000)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Fri, 23 Mar 2007 21:26:23 +0000 (21:26 +0000)
* readelf.c (debug_apply_rela_addends): Do nothing for SH.

binutils/ChangeLog
binutils/readelf.c

index 5b4830ee1e43c41eabe370759cca7208a429b792..076965bc3aa2e82be99404f00319995d949fe853 100644 (file)
@@ -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
index 359ddbefdecdbc55dc2d367860c7796cc09be55a..000221e53b1f9d3303ddc0d309017c96ed88c531 100644 (file)
@@ -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)