Rev 5191 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5191 | Rev 6324 | ||
---|---|---|---|
1 | /* Infineon XC16X ELF support for BFD. |
1 | /* Infineon XC16X ELF support for BFD. |
2 | Copyright 2006, 2010 Free Software Foundation, Inc. |
2 | Copyright (C) 2006-2015 Free Software Foundation, Inc. |
3 | Contributed by KPIT Cummins Infosystems |
3 | Contributed by KPIT Cummins Infosystems |
4 | 4 | ||
5 | This file is part of BFD, the Binary File Descriptor library. |
5 | This file is part of BFD, the Binary File Descriptor library. |
6 | 6 | ||
7 | This program is free software; you can redistribute it and/or modify |
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 |
8 | it under the terms of the GNU General Public License as published by |
9 | the Free Software Foundation; either version 3 of the License, or |
9 | the Free Software Foundation; either version 3 of the License, or |
10 | (at your option) any later version. |
10 | (at your option) any later version. |
11 | 11 | ||
12 | This program is distributed in the hope that it will be useful, |
12 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. |
15 | GNU General Public License for more details. |
16 | 16 | ||
17 | You should have received a copy of the GNU General Public License |
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 Foundation, |
18 | along with this program; if not, write to the Free Software Foundation, |
19 | Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ |
19 | Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ |
20 | 20 | ||
21 | #ifndef _ELF_XC16X_H |
21 | #ifndef _ELF_XC16X_H |
22 | #define _ELF_XC16X_H |
22 | #define _ELF_XC16X_H |
23 | 23 | ||
24 | #include "elf/reloc-macros.h" |
24 | #include "elf/reloc-macros.h" |
25 | 25 | ||
26 | /* Relocations. */ |
26 | /* Relocations. */ |
27 | START_RELOC_NUMBERS (elf_xc16x_reloc_type) |
27 | START_RELOC_NUMBERS (elf_xc16x_reloc_type) |
28 | RELOC_NUMBER (R_XC16X_NONE, 0) |
28 | RELOC_NUMBER (R_XC16X_NONE, 0) |
29 | RELOC_NUMBER (R_XC16X_ABS_8, 1) |
29 | RELOC_NUMBER (R_XC16X_ABS_8, 1) |
30 | RELOC_NUMBER (R_XC16X_ABS_16, 2) |
30 | RELOC_NUMBER (R_XC16X_ABS_16, 2) |
31 | RELOC_NUMBER (R_XC16X_ABS_32, 3) |
31 | RELOC_NUMBER (R_XC16X_ABS_32, 3) |
32 | RELOC_NUMBER (R_XC16X_8_PCREL, 4) |
32 | RELOC_NUMBER (R_XC16X_8_PCREL, 4) |
33 | RELOC_NUMBER (R_XC16X_PAG, 5) |
33 | RELOC_NUMBER (R_XC16X_PAG, 5) |
34 | RELOC_NUMBER (R_XC16X_POF, 6) |
34 | RELOC_NUMBER (R_XC16X_POF, 6) |
35 | RELOC_NUMBER (R_XC16X_SEG, 7) |
35 | RELOC_NUMBER (R_XC16X_SEG, 7) |
36 | RELOC_NUMBER (R_XC16X_SOF, 8) |
36 | RELOC_NUMBER (R_XC16X_SOF, 8) |
37 | 37 | ||
38 | END_RELOC_NUMBERS (R_XC16X_max) |
38 | END_RELOC_NUMBERS (R_XC16X_max) |
39 | 39 | ||
40 | #endif /* _ELF_XC16X_H */ |
40 | #endif /* _ELF_XC16X_H */ |