daily update
[binutils.git] / bfd / elf32-spu.h
blob49c233a09ca04dcdfa5d3845445488a77e325bd6
1 /* SPU specific support for 32-bit ELF.
3 Copyright 2006, 2007 Free Software Foundation, Inc.
5 This file is part of BFD, the Binary File Descriptor library.
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
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
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,
19 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 /* Extra info kept for SPU sections. */
23 struct _spu_elf_section_data
25 struct bfd_elf_section_data elf;
27 /* Non-zero for overlay output sections. */
28 unsigned int ovl_index;
31 #define spu_elf_section_data(sec) \
32 ((struct _spu_elf_section_data *) elf_section_data (sec))
34 struct _ovl_stream
36 const void *start;
37 const void *end;
40 extern void spu_elf_plugin (int);
41 extern bfd_boolean spu_elf_open_builtin_lib (bfd **,
42 const struct _ovl_stream *);
43 extern bfd_boolean spu_elf_create_sections (bfd *,
44 struct bfd_link_info *);
45 extern bfd_boolean spu_elf_find_overlays (bfd *, struct bfd_link_info *);
46 extern bfd_boolean spu_elf_size_stubs (bfd *, struct bfd_link_info *, int,
47 asection **, asection **,
48 asection **);
49 extern bfd_boolean spu_elf_build_stubs (struct bfd_link_info *, int,
50 asection *);
51 extern asection *spu_elf_check_vma (bfd *, bfd_vma, bfd_vma);