168673Sobrien/* picoJava ELF support for BFD.
278828Sobrien   Copyright 1999, 2000 Free Software Foundation, Inc.
368673Sobrien
468673Sobrien   This file is part of BFD, the Binary File Descriptor library.
568673Sobrien
668673Sobrien   This program is free software; you can redistribute it and/or modify
768673Sobrien   it under the terms of the GNU General Public License as published by
868673Sobrien   the Free Software Foundation; either version 2 of the License, or
968673Sobrien   (at your option) any later version.
1068673Sobrien
1168673Sobrien   This program is distributed in the hope that it will be useful,
1268673Sobrien   but WITHOUT ANY WARRANTY; without even the implied warranty of
1368673Sobrien   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1468673Sobrien   GNU General Public License for more details.
1568673Sobrien
1668673Sobrien   You should have received a copy of the GNU General Public License
1768673Sobrien   along with this program; if not, write to the Free Software Foundation,
18218822Sdim   Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
1968673Sobrien
2068673Sobrien#ifndef _ELF_PJ_H
2168673Sobrien#define _ELF_PJ_H
2268673Sobrien
2368673Sobrien#include "elf/reloc-macros.h"
2468673Sobrien
2568673Sobrien/* Relocations.  */
2668673Sobrien
2768673SobrienSTART_RELOC_NUMBERS (elf_pj_reloc_type)
2868673Sobrien  RELOC_NUMBER (R_PJ_NONE, 0)
2968673Sobrien  RELOC_NUMBER (R_PJ_DATA_DIR32, 1)
3068673Sobrien  RELOC_NUMBER (R_PJ_CODE_REL32, 2)
3168673Sobrien  RELOC_NUMBER (R_PJ_CODE_REL16, 3)
3268673Sobrien  RELOC_NUMBER (R_PJ_CODE_DIR32, 6)
3368673Sobrien  RELOC_NUMBER (R_PJ_CODE_DIR16, 7)
3468673Sobrien  RELOC_NUMBER (R_PJ_CODE_LO16, 13)
3568673Sobrien  RELOC_NUMBER (R_PJ_CODE_HI16, 14)
3668673Sobrien  RELOC_NUMBER (R_PJ_GNU_VTINHERIT, 15)
3768673Sobrien  RELOC_NUMBER (R_PJ_GNU_VTENTRY, 16)
3877298SobrienEND_RELOC_NUMBERS (R_PJ_max)
3968673Sobrien
4068673Sobrien#define EF_PICOJAVA_ARCH     0x0000000f
4168673Sobrien#define EF_PICOJAVA_NEWCALLS 0x00000010
4268673Sobrien#define EF_PICOJAVA_GNUCALLS 0x00000020  /* The (currently) non standard GNU calling convention */
4368673Sobrien
4468673Sobrien#endif
45