68HC11 port of Binutils

Nick Clifton nickc@cygnus.com
Sun Jun 18 18:22:00 GMT 2000


+++ binutils/bfd/reloc.c	Thu Jun  1 11:17:53 2000
Hi Stephane,

  Thanks for contributing this work.  I have applied your patches (1
  through 8) to the binutils source tree with one small bug fix (see
  below). 

Cheers
	Nick

+++ binutils/bfd/reloc.c	Thu Jun  1 11:17:53 2000
@@ -2888,6 +2888,23 @@ ENUMX
 ENUMDOC
   Intel IA64 Relocations.
 ENDSENUM
+
+ENUM
+  BFD_RELOC_M68HC11_HI8
+ENUMDOC
+  Motorola 68HC11 reloc.
+  This is the 8 bits high part of an absolute address.
+ENUM
+  BFD_RELOC_M68HC11_LO8
+ENUMDOC
+  Motorola 68HC11 reloc.
+  This is the 8 bits low part of an absolute address.
+ENUM
+  BFD_RELOC_M68HC11_3B
+ENUMDOC
+  Motorola 68HC11 reloc.
+  This is the 3 bits of a value.
+
   BFD_RELOC_UNUSED
 CODE_FRAGMENT

This is wrong.  The ENDSENUM should come after the last entry in the
enum and just before BFD_RELOC_UNUSED.  Otherewise when bfd.h and
libbfd.h are generated they will end up with enum fields being
declared outside of the enum statement.





More information about the Binutils mailing list