1 /* V850 ELF support for BFD.
2 Copyright (C) 1997 Free Software Foundation, Inc.
3 Created by Michael Meissner, Cygnus Support <meissner@cygnus.com>
5 This file is part of BFD, the Binary File Descriptor library.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 /* This file holds definitions specific to the MIPS ELF ABI. Note
22 that most of this is not actually implemented by BFD. */
27 /* Processor specific flags for the ELF header e_flags field. */
29 /* Four bit V850 architecture field. */
30 #define EF_V850_ARCH 0xf0000000
33 #define E_V850_ARCH 0x00000000
35 /* start-sanitize-v850e */
37 #define E_V850E_ARCH 0x10000000
38 /* end-sanitize-v850e */
40 /* start-sanitize-v850eq */
42 #define E_V850EQ_ARCH 0x20000000
43 /* end-sanitize-v850eq */
46 /* Flags for the st_other field */
47 #define V850_OTHER_SDA 0x01 /* symbol had SDA relocations */
48 #define V850_OTHER_ZDA 0x02 /* symbol had ZDA relocations */
49 #define V850_OTHER_TDA 0x04 /* symbol had TDA relocations */
50 #define V850_OTHER_TDA_BYTE 0x08 /* symbol had TDA byte relocations */
51 #define V850_OTHER_ERROR 0x80 /* symbol had an error reported */
53 /* V850 relocations */
66 R_V850_SDA_16_16_OFFSET
, /* For ld.b, st.b, set1, clr1, not1, tst1, movea, movhi */
67 R_V850_SDA_15_16_OFFSET
, /* For ld.w, ld.h, ld.hu, st.w, st.h */
68 R_V850_ZDA_16_16_OFFSET
, /* For ld.b, st.b, set1, clr1, not1, tst1, movea, movhi */
69 R_V850_ZDA_15_16_OFFSET
, /* For ld.w, ld.h, ld.hu, st.w, st.h */
70 R_V850_TDA_6_8_OFFSET
, /* For sst.w, sld.w */
71 R_V850_TDA_7_8_OFFSET
, /* For sst.h, sld.h */
72 R_V850_TDA_7_7_OFFSET
, /* For sst.b, sld.b */
73 /* start-sanitize-v850e */
74 R_V850_TDA_4_5_OFFSET
, /* For sld.hu */
75 R_V850_TDA_4_4_OFFSET
, /* For sld.bu */
76 R_V850_SDA_16_16_SPLIT_OFFSET
, /* For ld.bu */
77 R_V850_ZDA_16_16_SPLIT_OFFSET
, /* For ld.bu */
78 /* end-sanitize-v850e */
82 #endif /* _ELF_V850_H */