This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] m68hc11/12 readelf support


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=adec12c116e2e184cfa37d1c39cd2d83a7e89d31

commit adec12c116e2e184cfa37d1c39cd2d83a7e89d31
Author: Alan Modra <amodra@gmail.com>
Date:   Sun Jan 17 12:13:30 2016 +1030

    m68hc11/12 readelf support
    
    Supports relocation of debug sections.
    
    	* readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.

Diff:
---
 binutils/ChangeLog | 4 ++++
 binutils/readelf.c | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 21dcb2c..140a985 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2016-01-17  Alan Modra  <amodra@gmail.com>
+
+	* readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
+
 2016-01-01  Alan Modra  <amodra@gmail.com>
 
 	Update year range in copyright notice of all files.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 47ac1ad..f74ef7b 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -11404,6 +11404,9 @@ is_32bit_abs_reloc (unsigned int reloc_type)
       return reloc_type == 3; /* R_M32C_32.  */
     case EM_M32R:
       return reloc_type == 34; /* R_M32R_32_RELA.  */
+    case EM_68HC11:
+    case EM_68HC12:
+      return reloc_type == 6; /* R_M68HC11_32.  */
     case EM_MCORE:
       return reloc_type == 1; /* R_MCORE_ADDR32.  */
     case EM_CYGNUS_MEP:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]