summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/include/elf/m32r.h
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2000-09-12 14:44:57 +0000
committerespie <espie@openbsd.org>2000-09-12 14:44:57 +0000
commitf7cc78ec694aa42ece3363be499a17e16a4780bc (patch)
treed546b913d84d85cec78043ac6b226b2be5db4f0f /gnu/usr.bin/binutils/include/elf/m32r.h
parentmake it compile with INET6 defined. the old INET6 code was from NRL, (diff)
downloadwireguard-openbsd-f7cc78ec694aa42ece3363be499a17e16a4780bc.tar.xz
wireguard-openbsd-f7cc78ec694aa42ece3363be499a17e16a4780bc.zip
Import binutils-2.10
- only the binutils package (no gdb here) - don't import libiberty and texinfo, they are elsewhere - remove all .info* generated files
Diffstat (limited to 'gnu/usr.bin/binutils/include/elf/m32r.h')
-rw-r--r--gnu/usr.bin/binutils/include/elf/m32r.h46
1 files changed, 30 insertions, 16 deletions
diff --git a/gnu/usr.bin/binutils/include/elf/m32r.h b/gnu/usr.bin/binutils/include/elf/m32r.h
index 92d9d75c68f..a12ae16aea5 100644
--- a/gnu/usr.bin/binutils/include/elf/m32r.h
+++ b/gnu/usr.bin/binutils/include/elf/m32r.h
@@ -1,5 +1,5 @@
/* M32R ELF support for BFD.
- Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -20,21 +20,25 @@ along with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef _ELF_M32R_H
#define _ELF_M32R_H
-enum reloc_type
-{
- R_M32R_NONE = 0,
- R_M32R_16,
- R_M32R_32,
- R_M32R_24,
- R_M32R_10_PCREL,
- R_M32R_18_PCREL,
- R_M32R_26_PCREL,
- R_M32R_HI16_ULO,
- R_M32R_HI16_SLO,
- R_M32R_LO16,
- R_M32R_SDA16,
- R_M32R_max
-};
+#include "elf/reloc-macros.h"
+
+/* Relocations. */
+START_RELOC_NUMBERS (elf_m32r_reloc_type)
+ RELOC_NUMBER (R_M32R_NONE, 0)
+ RELOC_NUMBER (R_M32R_16, 1)
+ RELOC_NUMBER (R_M32R_32, 2)
+ RELOC_NUMBER (R_M32R_24, 3)
+ RELOC_NUMBER (R_M32R_10_PCREL, 4)
+ RELOC_NUMBER (R_M32R_18_PCREL, 5)
+ RELOC_NUMBER (R_M32R_26_PCREL, 6)
+ RELOC_NUMBER (R_M32R_HI16_ULO, 7)
+ RELOC_NUMBER (R_M32R_HI16_SLO, 8)
+ RELOC_NUMBER (R_M32R_LO16, 9)
+ RELOC_NUMBER (R_M32R_SDA16, 10)
+ RELOC_NUMBER (R_M32R_GNU_VTINHERIT, 11)
+ RELOC_NUMBER (R_M32R_GNU_VTENTRY, 12)
+ EMPTY_RELOC (R_M32R_max)
+END_RELOC_NUMBERS
/* Processor specific section indices. These sections do not actually
exist. Symbols with a st_shndx field corresponding to one of these
@@ -51,4 +55,14 @@ enum reloc_type
move. */
#define SHF_M32R_CAN_RELAX 0x10000000
+/* Processor specific flags for the ELF header e_flags field. */
+
+/* Two bit m32r architecture field. */
+#define EF_M32R_ARCH 0x30000000
+
+/* m32r code. */
+#define E_M32R_ARCH 0x00000000
+/* m32rx code. */
+#define E_M32RX_ARCH 0x10000000
+
#endif