198b9484cSchristos /* SPU ELF support for BFD. 298b9484cSchristos 3*02f41505Schristos Copyright (C) 2006-2024 Free Software Foundation, Inc. 498b9484cSchristos 598b9484cSchristos This file is part of BFD, the Binary File Descriptor library. 698b9484cSchristos 798b9484cSchristos This program is free software; you can redistribute it and/or modify 898b9484cSchristos it under the terms of the GNU General Public License as published by 998b9484cSchristos the Free Software Foundation; either version 3 of the License, or 1098b9484cSchristos (at your option) any later version. 1198b9484cSchristos 1298b9484cSchristos This program is distributed in the hope that it will be useful, 1398b9484cSchristos but WITHOUT ANY WARRANTY; without even the implied warranty of 1498b9484cSchristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1598b9484cSchristos GNU General Public License for more details. 1698b9484cSchristos 1798b9484cSchristos You should have received a copy of the GNU General Public License 1898b9484cSchristos along with this program; if not, write to the Free Software Foundation, 1998b9484cSchristos Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 2098b9484cSchristos 2198b9484cSchristos #ifndef _ELF_SPU_H 2298b9484cSchristos #define _ELF_SPU_H 2398b9484cSchristos 2498b9484cSchristos #include "elf/reloc-macros.h" 2598b9484cSchristos 2698b9484cSchristos /* elf32-spu.c depends on these being consecutive. */ 2798b9484cSchristos START_RELOC_NUMBERS (elf_spu_reloc_type) 2898b9484cSchristos RELOC_NUMBER (R_SPU_NONE, 0) 2998b9484cSchristos RELOC_NUMBER (R_SPU_ADDR10, 1) 3098b9484cSchristos RELOC_NUMBER (R_SPU_ADDR16, 2) 3198b9484cSchristos RELOC_NUMBER (R_SPU_ADDR16_HI, 3) 3298b9484cSchristos RELOC_NUMBER (R_SPU_ADDR16_LO, 4) 3398b9484cSchristos RELOC_NUMBER (R_SPU_ADDR18, 5) 3498b9484cSchristos RELOC_NUMBER (R_SPU_ADDR32, 6) 3598b9484cSchristos RELOC_NUMBER (R_SPU_REL16, 7) 3698b9484cSchristos RELOC_NUMBER (R_SPU_ADDR7, 8) 3798b9484cSchristos RELOC_NUMBER (R_SPU_REL9, 9) 3898b9484cSchristos RELOC_NUMBER (R_SPU_REL9I, 10) 3998b9484cSchristos RELOC_NUMBER (R_SPU_ADDR10I, 11) 4098b9484cSchristos RELOC_NUMBER (R_SPU_ADDR16I, 12) 4198b9484cSchristos RELOC_NUMBER (R_SPU_REL32, 13) 4298b9484cSchristos RELOC_NUMBER (R_SPU_ADDR16X, 14) 4398b9484cSchristos RELOC_NUMBER (R_SPU_PPU32, 15) 4498b9484cSchristos RELOC_NUMBER (R_SPU_PPU64, 16) 4598b9484cSchristos RELOC_NUMBER (R_SPU_ADD_PIC, 17) 4698b9484cSchristos END_RELOC_NUMBERS (R_SPU_max) 4798b9484cSchristos 4898b9484cSchristos /* Program header extensions */ 4998b9484cSchristos 5098b9484cSchristos /* Mark a PT_LOAD segment as containing an overlay which should not 5198b9484cSchristos initially be loaded. */ 5298b9484cSchristos #define PF_OVERLAY (1 << 27) 5398b9484cSchristos 5498b9484cSchristos /* SPU Dynamic Object Information. */ 5598b9484cSchristos #define PT_SPU_INFO 0x70000000 5698b9484cSchristos 5798b9484cSchristos /* SPU plugin information */ 5898b9484cSchristos #define SPU_PLUGIN_NAME "SPUNAME" 5998b9484cSchristos #define SPU_PTNOTE_SPUNAME ".note.spu_name" 6098b9484cSchristos 6198b9484cSchristos #endif /* _ELF_SPU_H */ 62