This is the mail archive of the binutils@sources.redhat.com 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]

[RFA]: Recognize HC11/HC12 relocs in readelf


Hi!

I discovered that readelf does not recognize the 68HC11/HC12 relocs.
The following patch fixes that.

Can you approve it?

Thanks,
	Stephane

2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>

	* readelf.c (dump_relocations): Handle 68HC11/68HC12 relocations.

Index: readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.163
diff -u -p -r1.163 readelf.c
--- readelf.c	18 Jun 2002 21:11:47 -0000	1.163
+++ readelf.c	29 Jun 2002 10:02:28 -0000
@@ -67,6 +67,7 @@
 #include "elf/ia64.h"
 #include "elf/m32r.h"
 #include "elf/m68k.h"
+#include "elf/m68hc11.h"
 #include "elf/mcore.h"
 #include "elf/mips.h"
 #include "elf/mmix.h"
@@ -974,6 +975,11 @@ dump_relocations (file, rel_offset, rel_
 	case EM_486:
 	  rtype = elf_i386_reloc_type (type);
 	  break;
+
+        case EM_68HC11:
+        case EM_68HC12:
+          rtype = elf_m68hc11_reloc_type (type);
+          break;
 
 	case EM_68K:
 	  rtype = elf_m68k_reloc_type (type);

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