191041Sobrien/* OR1K ELF support for BFD. Derived from ppc.h. 291041Sobrien Copyright (C) 2002 Free Software Foundation, Inc. 391041Sobrien Contributed by Ivan Guzvinec <ivang@opencores.org> 491041Sobrien 591041Sobrien This file is part of BFD, the Binary File Descriptor library. 691041Sobrien 791041Sobrien This program is free software; you can redistribute it and/or modify 891041Sobrien it under the terms of the GNU General Public License as published by 991041Sobrien the Free Software Foundation; either version 2 of the License, or 1091041Sobrien (at your option) any later version. 1191041Sobrien 1291041Sobrien This program is distributed in the hope that it will be useful, 1391041Sobrien but WITHOUT ANY WARRANTY; without even the implied warranty of 1491041Sobrien MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1591041Sobrien GNU General Public License for more details. 1691041Sobrien 1791041Sobrien You should have received a copy of the GNU General Public License 1891041Sobrien along with this program; if not, write to the Free Software 19218822Sdim Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 2091041Sobrien 2191041Sobrien#ifndef _ELF_OR1K_H 2291041Sobrien#define _ELF_OR1K_H 2391041Sobrien 2491041Sobrien#include "elf/reloc-macros.h" 2591041Sobrien 2691041Sobrien/* Relocations. */ 2791041SobrienSTART_RELOC_NUMBERS (elf_or32_reloc_type) 2891041Sobrien RELOC_NUMBER (R_OR32_NONE, 0) 2991041Sobrien RELOC_NUMBER (R_OR32_32, 1) 3091041Sobrien RELOC_NUMBER (R_OR32_16, 2) 3191041Sobrien RELOC_NUMBER (R_OR32_8, 3) 3291041Sobrien RELOC_NUMBER (R_OR32_CONST, 4) 3391041Sobrien RELOC_NUMBER (R_OR32_CONSTH, 5) 3491041Sobrien RELOC_NUMBER (R_OR32_JUMPTARG, 6) 3591041Sobrien RELOC_NUMBER (R_OR32_GNU_VTENTRY, 7) 3691041Sobrien RELOC_NUMBER (R_OR32_GNU_VTINHERIT, 8) 3791041SobrienEND_RELOC_NUMBERS (R_OR32_max) 3891041Sobrien 3991041Sobrien/* Four bit OR32 machine type field. */ 4091041Sobrien#define EF_OR32_MACH 0x0000000f 4191041Sobrien 4291041Sobrien/* Various CPU types. */ 4391041Sobrien#define E_OR32_MACH_BASE 0x00000000 4491041Sobrien#define E_OR32_MACH_UNUSED1 0x00000001 4591041Sobrien#define E_OR32_MACH_UNUSED2 0x00000002 4691041Sobrien#define E_OR32_MACH_UNUSED4 0x00000003 4791041Sobrien 4891041Sobrien/* Processor specific section headers, sh_type field */ 4991041Sobrien#define SHT_ORDERED SHT_HIPROC /* Link editor is to sort the \ 5091041Sobrien entries in this section \ 5191041Sobrien based on the address \ 5291041Sobrien specified in the associated \ 5391041Sobrien symbol table entry. */ 5491041Sobrien 5591041Sobrien/* Processor specific section flags, sh_flags field */ 5691041Sobrien#define SHF_EXCLUDE 0x80000000 /* Link editor is to exclude \ 5791041Sobrien this section from executable \ 5891041Sobrien and shared objects that it \ 5991041Sobrien builds when those objects \ 6091041Sobrien are not to be furhter \ 6191041Sobrien relocated. */ 6291041Sobrien#endif /* _ELF_OR1K_H */ 63