mcore.h revision 78829
1234353Sdim/* Motorola MCore support for BFD.
2234353Sdim   Copyright 1995, 1999, 2000 Free Software Foundation, Inc.
3193323Sed
4193323SedThis file is part of BFD, the Binary File Descriptor library.
5193323Sed
6193323SedThis program is free software; you can redistribute it and/or modify
7234353Sdimit under the terms of the GNU General Public License as published by
8193323Sedthe Free Software Foundation; either version 2 of the License, or
9193323Sed(at your option) any later version.
10193323Sed
11193323SedThis program is distributed in the hope that it will be useful,
12193323Sedbut WITHOUT ANY WARRANTY; without even the implied warranty of
13193323SedMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14193323SedGNU General Public License for more details.
15193323Sed
16193323SedYou should have received a copy of the GNU General Public License
17193323Sedalong with this program; if not, write to the Free Software
18193323SedFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19198090Srdivacky
20198090Srdivacky/* This file holds definitions specific to the MCore ELF ABI. */
21198090Srdivacky#ifndef _ELF_MORE_H
22198090Srdivacky#define _ELF_MORE_H
23208599Srdivacky
24208599Srdivacky#include "elf/reloc-macros.h"
25208599Srdivacky
26208599Srdivacky/* Relocations.  */
27208599SrdivackySTART_RELOC_NUMBERS (elf_mcore_reloc_type)
28193323Sed  RELOC_NUMBER (R_MCORE_NONE, 0)
29193323Sed  RELOC_NUMBER (R_MCORE_ADDR32, 1)
30193323Sed  RELOC_NUMBER (R_MCORE_PCRELIMM8BY4, 2)
31193323Sed  RELOC_NUMBER (R_MCORE_PCRELIMM11BY2, 3)
32193323Sed  RELOC_NUMBER (R_MCORE_PCRELIMM4BY2, 4)
33193323Sed  RELOC_NUMBER (R_MCORE_PCREL32, 5)
34193323Sed  RELOC_NUMBER (R_MCORE_PCRELJSR_IMM11BY2, 6)
35193323Sed  RELOC_NUMBER (R_MCORE_GNU_VTINHERIT, 7)
36193323Sed  RELOC_NUMBER (R_MCORE_GNU_VTENTRY, 8)
37193323Sed  RELOC_NUMBER (R_MCORE_RELATIVE, 9)
38193323Sed  RELOC_NUMBER (R_MCORE_COPY, 10)
39193323Sed  RELOC_NUMBER (R_MCORE_GLOB_DAT, 11)
40193323Sed  RELOC_NUMBER (R_MCORE_JUMP_SLOT, 12)
41208599SrdivackyEND_RELOC_NUMBERS (R_MCORE_max)
42234353Sdim
43193323Sed/* Section Attributes.  */
44193323Sed#define SHF_MCORE_NOREAD	0x80000000
45198090Srdivacky
46249423Sdim#endif /* _ELF_MCORE_H */
47198090Srdivacky