diff options
author | Nick Clifton <nickc@redhat.com> | 1997-12-15 23:10:11 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1997-12-15 23:10:11 +0000 |
commit | a5fdb816135cd4f48681d7812b0123d1a94be826 (patch) | |
tree | 06a4bc0e5484bd8782b9f025c055650a782c4cc5 /include | |
parent | 6870e2f5e6ba457153ebd066cd970dc624bbaf3a (diff) | |
download | gdb-a5fdb816135cd4f48681d7812b0123d1a94be826.zip gdb-a5fdb816135cd4f48681d7812b0123d1a94be826.tar.gz gdb-a5fdb816135cd4f48681d7812b0123d1a94be826.tar.bz2 |
Add support for m32rx processor.
Diffstat (limited to 'include')
-rw-r--r-- | include/elf/ChangeLog | 5 | ||||
-rw-r--r-- | include/elf/m32r.h | 64 |
2 files changed, 69 insertions, 0 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 949fec3..022186b 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 15 15:07:49 1997 Nick Clifton <nickc@cygnus.com> + + * m32r.h (EF_M32R_ARCH, E_M32R_ARCH, E_M32RX_ARCH): New flags to + specify machine architecture. + Fri Dec 5 11:20:08 1997 Nick Clifton <nickc@cygnus.com> * v850.h: New constants: SHN_V850_SCOMMON, SHN_V850_TCOMMON, diff --git a/include/elf/m32r.h b/include/elf/m32r.h new file mode 100644 index 0000000..951b1f5 --- /dev/null +++ b/include/elf/m32r.h @@ -0,0 +1,64 @@ +/* M32R ELF support for BFD. + Copyright (C) 1996, 1997 Free Software Foundation, Inc. + +This file is part of BFD, the Binary File Descriptor library. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software Foundation, Inc., +59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#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 +}; + +/* Processor specific section indices. These sections do not actually + exist. Symbols with a st_shndx field corresponding to one of these + values have a special meaning. */ + +/* Small common symbol. */ +#define SHN_M32R_SCOMMON 0xff00 + +/* Processor specific section flags. */ + +/* This section contains sufficient relocs to be relaxed. + When relaxing, even relocs of branch instructions the assembler could + complete must be present because relaxing may cause the branch target to + move. */ +#define SHF_M32R_CAN_RELAX 0x10000000 + +/* Processor specific flags for the ELF header e_flags field. */ + +/* Two bit V850 architecture field. */ +#define EF_M32R_ARCH 0x30000000 + +/* m32r code. */ +#define E_M32R_ARCH 0x00000000 +/* m32rx code. */ +#define E_M32RX_ARCH 0x10000000 + +#endif |