| 1 | /* CRIS ELF support for BFD.
|
|---|
| 2 | Copyright 2000, 2001 Free Software Foundation, Inc.
|
|---|
| 3 | Contributed by Axis Communications AB, Lund, Sweden.
|
|---|
| 4 | Written by Hans-Peter Nilsson.
|
|---|
| 5 |
|
|---|
| 6 | This file is part of BFD, the Binary File Descriptor library.
|
|---|
| 7 |
|
|---|
| 8 | This program is free software; you can redistribute it and/or modify
|
|---|
| 9 | it under the terms of the GNU General Public License as published by
|
|---|
| 10 | the Free Software Foundation; either version 2 of the License, or
|
|---|
| 11 | (at your option) any later version.
|
|---|
| 12 |
|
|---|
| 13 | This program is distributed in the hope that it will be useful,
|
|---|
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 16 | GNU General Public License for more details.
|
|---|
| 17 |
|
|---|
| 18 | You should have received a copy of the GNU General Public License
|
|---|
| 19 | along with this program; if not, write to the Free Software Foundation, Inc.,
|
|---|
| 20 | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|---|
| 21 |
|
|---|
| 22 | #ifndef _ELF_CRIS_H
|
|---|
| 23 | #define _ELF_CRIS_H
|
|---|
| 24 |
|
|---|
| 25 | #include "elf/reloc-macros.h"
|
|---|
| 26 |
|
|---|
| 27 | /* Relocations. */
|
|---|
| 28 | START_RELOC_NUMBERS (elf_cris_reloc_type)
|
|---|
| 29 | RELOC_NUMBER (R_CRIS_NONE, 0)
|
|---|
| 30 | RELOC_NUMBER (R_CRIS_8, 1)
|
|---|
| 31 | RELOC_NUMBER (R_CRIS_16, 2)
|
|---|
| 32 | RELOC_NUMBER (R_CRIS_32, 3)
|
|---|
| 33 | RELOC_NUMBER (R_CRIS_8_PCREL, 4)
|
|---|
| 34 | RELOC_NUMBER (R_CRIS_16_PCREL, 5)
|
|---|
| 35 | RELOC_NUMBER (R_CRIS_32_PCREL, 6)
|
|---|
| 36 |
|
|---|
| 37 | RELOC_NUMBER (R_CRIS_GNU_VTINHERIT, 7)
|
|---|
| 38 | RELOC_NUMBER (R_CRIS_GNU_VTENTRY, 8)
|
|---|
| 39 |
|
|---|
| 40 | /* No other relocs must be visible outside the assembler. */
|
|---|
| 41 |
|
|---|
| 42 | END_RELOC_NUMBERS (R_CRIS_max)
|
|---|
| 43 |
|
|---|
| 44 | /* User symbols in this file have a leading underscore. */
|
|---|
| 45 | #define EF_CRIS_UNDERSCORE 0x00000001
|
|---|
| 46 |
|
|---|
| 47 | #endif /* _ELF_CRIS_H */
|
|---|