diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-07-22 20:11:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-07-22 20:11:54 +0000 |
commit | ddffd87116e01fde5fceb52bc7ea3b9d9265b9ed (patch) | |
tree | d3be0a808a14a05ecfbfb36e03a932e11ec72944 /include | |
parent | 767af63c2c062be0da486e92a2efd1710bfe5e50 (diff) | |
download | gdb-ddffd87116e01fde5fceb52bc7ea3b9d9265b9ed.zip gdb-ddffd87116e01fde5fceb52bc7ea3b9d9265b9ed.tar.gz gdb-ddffd87116e01fde5fceb52bc7ea3b9d9265b9ed.tar.bz2 |
Rewrite relocation definition using macros.
Diffstat (limited to 'include')
-rw-r--r-- | include/elf/ChangeLog | 4 | ||||
-rw-r--r-- | include/elf/mn10300.h | 20 |
2 files changed, 16 insertions, 8 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 4e1dd06..8bfac7a 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -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. diff --git a/include/elf/mn10300.h b/include/elf/mn10300.h index 30b2918..0458af0 100644 --- a/include/elf/mn10300.h +++ b/include/elf/mn10300.h @@ -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 |