diff options
author | cvs2svn <> | 2011-10-27 18:27:17 +0400 |
---|---|---|
committer | cvs2svn <> | 2011-10-27 18:27:17 +0400 |
commit | e4ba438298387b8585562be93b52e80dbb4d1122 (patch) | |
tree | 5a39afad67d88a134670f069d0e2abdb459a2bed /include/elf/epiphany.h | |
parent | f4f02a260cd697c595ba8216364c4e9e6081663b (diff) |
This commit was manufactured by cvs2svn to create tag 'sid-sid-snapshot-20111101
snapshot-20111101'.
Sprout from binutils-2_22-branch 2011-09-21 20:49:16 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch 'binutils-'
Cherrypick from master 2011-10-27 14:27:16 UTC Joern Rennecke <joern.rennecke@embecosm.com> 'bfd:':
ChangeLog
config.sub
include/ChangeLog
include/ansidecl.h
include/bfdlink.h
include/demangle.h
include/dis-asm.h
include/elf/ChangeLog
include/elf/common.h
include/elf/epiphany.h
include/elf/ppc64.h
include/elf/rx.h
include/libiberty.h
include/obstack.h
include/opcode/ChangeLog
include/opcode/mips.h
include/plugin-api.h
include/timeval-utils.h
Delete:
texinfo/texinfo.tex
Diffstat (limited to 'include/elf/epiphany.h')
-rwxr-xr-x | include/elf/epiphany.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/include/elf/epiphany.h b/include/elf/epiphany.h new file mode 100755 index 000000000..bb2dcffee --- /dev/null +++ b/include/elf/epiphany.h @@ -0,0 +1,59 @@ +/* Adapteva EPIPHANY ELF support for BFD. + Copyright (C) 2009, 2011 Free Software Foundation, Inc. + Contributed by Embecosm on behalf of Adapteva, 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 3 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _ELF_EPIPHANY_H +#define _ELF_EPIPHANY_H + +#include "elf/reloc-macros.h" + +/* Relocations. */ +START_RELOC_NUMBERS (elf_epiphany_reloc_type) + RELOC_NUMBER (R_EPIPHANY_NONE, 0) + + /* Absolute address relocations. */ + RELOC_NUMBER (R_EPIPHANY_8, 1) + RELOC_NUMBER (R_EPIPHANY_16, 2) + RELOC_NUMBER (R_EPIPHANY_32, 3) + + /* PC-relative relocations. */ + RELOC_NUMBER (R_EPIPHANY_8_PCREL, 4) + RELOC_NUMBER (R_EPIPHANY_16_PCREL,5) + RELOC_NUMBER (R_EPIPHANY_32_PCREL,6) + + /* special forms for 8/24 bit branch displacements. */ + RELOC_NUMBER (R_EPIPHANY_SIMM8, 7) + RELOC_NUMBER (R_EPIPHANY_SIMM24, 8) + + /* HIGH and LOW relocations taking part of a 32 bit address and + depositing it into the IMM16 field of a destination. */ + RELOC_NUMBER (R_EPIPHANY_HIGH, 9) + RELOC_NUMBER (R_EPIPHANY_LOW,10) + + /* 11 bit signed immediate value. */ + RELOC_NUMBER (R_EPIPHANY_SIMM11, 11) + /* 11 bit magnitude addressing displacement. */ + RELOC_NUMBER (R_EPIPHANY_IMM11, 12) + + /* 8 bit immediate for MOV.S R,IMM8. */ + RELOC_NUMBER (R_EPIPHANY_IMM8, 13) + +END_RELOC_NUMBERS(R_EPIPHANY_max) + +#endif /* _ELF_EPIPHANY_H */ |