avr.h revision 68673
168673Sobrien/* AVR ELF support for BFD. 268673Sobrien Copyright (C) 1999, 2000 Free Software Foundation, Inc. 368673Sobrien Contributed by Denis Chertykov <denisc@overta.ru> 468673Sobrien 568673SobrienThis file is part of BFD, the Binary File Descriptor library. 668673Sobrien 768673SobrienThis program is free software; you can redistribute it and/or modify 868673Sobrienit under the terms of the GNU General Public License as published by 968673Sobrienthe Free Software Foundation; either version 2 of the License, or 1068673Sobrien(at your option) any later version. 1168673Sobrien 1268673SobrienThis program is distributed in the hope that it will be useful, 1368673Sobrienbut WITHOUT ANY WARRANTY; without even the implied warranty of 1468673SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1568673SobrienGNU General Public License for more details. 1668673Sobrien 1768673SobrienYou should have received a copy of the GNU General Public License 1868673Sobrienalong with this program; if not, write to the Free Software Foundation, Inc., 1968673Sobrien59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 2068673Sobrien 2168673Sobrien#ifndef _ELF_AVR_H 2268673Sobrien#define _ELF_AVR_H 2368673Sobrien 2468673Sobrien#include "elf/reloc-macros.h" 2568673Sobrien 2668673Sobrien/* Processor specific flags for the ELF header e_flags field. */ 2768673Sobrien#define EF_AVR_MACH 0xf 2868673Sobrien 2968673Sobrien#define E_AVR_MACH_AVR1 1 3068673Sobrien#define E_AVR_MACH_AVR2 2 3168673Sobrien#define E_AVR_MACH_AVR3 3 3268673Sobrien#define E_AVR_MACH_AVR4 4 3368673Sobrien 3468673Sobrien/* Relocations. */ 3568673SobrienSTART_RELOC_NUMBERS (elf_avr_reloc_type) 3668673Sobrien RELOC_NUMBER (R_AVR_NONE, 0) 3768673Sobrien RELOC_NUMBER (R_AVR_32, 1) 3868673Sobrien RELOC_NUMBER (R_AVR_7_PCREL, 2) 3968673Sobrien RELOC_NUMBER (R_AVR_13_PCREL, 3) 4068673Sobrien RELOC_NUMBER (R_AVR_16, 4) 4168673Sobrien RELOC_NUMBER (R_AVR_16_PM, 5) 4268673Sobrien RELOC_NUMBER (R_AVR_LO8_LDI, 6) 4368673Sobrien RELOC_NUMBER (R_AVR_HI8_LDI, 7) 4468673Sobrien RELOC_NUMBER (R_AVR_HH8_LDI, 8) 4568673Sobrien RELOC_NUMBER (R_AVR_LO8_LDI_NEG, 9) 4668673Sobrien RELOC_NUMBER (R_AVR_HI8_LDI_NEG, 10) 4768673Sobrien RELOC_NUMBER (R_AVR_HH8_LDI_NEG, 11) 4868673Sobrien RELOC_NUMBER (R_AVR_LO8_LDI_PM, 12) 4968673Sobrien RELOC_NUMBER (R_AVR_HI8_LDI_PM, 13) 5068673Sobrien RELOC_NUMBER (R_AVR_HH8_LDI_PM, 14) 5168673Sobrien RELOC_NUMBER (R_AVR_LO8_LDI_PM_NEG, 15) 5268673Sobrien RELOC_NUMBER (R_AVR_HI8_LDI_PM_NEG, 16) 5368673Sobrien RELOC_NUMBER (R_AVR_HH8_LDI_PM_NEG, 17) 5468673Sobrien RELOC_NUMBER (R_AVR_CALL, 18) 5568673Sobrien EMPTY_RELOC (R_AVR_max) 5668673SobrienEND_RELOC_NUMBERS 5768673Sobrien 5868673Sobrien#endif /* _ELF_AVR_H */ 59