Rewrite relocation definition using macros.
authorUlrich Drepper <drepper@redhat.com>
Wed, 22 Jul 1998 20:11:54 +0000 (20:11 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 22 Jul 1998 20:11:54 +0000 (20:11 +0000)
include/elf/ChangeLog
include/elf/mn10300.h

index 4e1dd06f1fd866dd59074b9204e2dd2c4a8498a8..8bfac7a8b50d70fea3bf08dd112fb811db59cbc1 100644 (file)
@@ -1,3 +1,7 @@
+1998-07-22 13:07  Ulrich Drepper  <drepper@cygnus.com>
+
+       * mn10300.h: Rewrite relocation definition using macros.
+
 1998-07-21 13:07  Ulrich Drepper  <drepper@cygnus.com>
 
        * arm.h: New file.
index 30b2918551e0d5524265de5d4fe8defe9fc03440..0458af0308b9dd8c3761e4dc2af7df9301e39e1d 100644 (file)
@@ -22,14 +22,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #ifndef _ELF_MN10300_H
 #define _ELF_MN10300_H
 
-/* Relocations.  */
-#define R_MN10300_NONE         0
-#define R_MN10300_32           1
-#define R_MN10300_16           2
-#define R_MN10300_8            3
-#define R_MN10300_PCREL32      4
-#define R_MN10300_PCREL16      5
-#define R_MN10300_PCREL8       6
+/* Relocations.  Keep this list sorted wrt the numeric value.  */
+START_RELOC_NUMBERS (elf_mn10300_reloc_type)
+  RELOC_NUMBER (R_MN10300_NONE, 0)
+  RELOC_NUMBER (R_MN10300_32, 1)
+  RELOC_NUMBER (R_MN10300_16, 2)
+  RELOC_NUMBER (R_MN10300_8, 3)
+  RELOC_NUMBER (R_MN10300_PCREL32, 4)
+  RELOC_NUMBER (R_MN10300_PCREL16, 5)
+  RELOC_NUMBER (R_MN10300_PCREL8, 6)
+  RELOC_NUMBER (R_MN10300_GNU_VTINHERIT, 7)
+  RELOC_NUMBER (R_MN10300_GNU_VTENTRY, 8)
+END_RELOC_NUMBERS
 
 /* Machine variant if we know it.  This field was invented at Cygnus,
    but it is hoped that other vendors will adopt it.  If some standard
This page took 0.029604 seconds and 4 git commands to generate.