xref: /netbsd-src/external/gpl3/binutils.old/dist/bfd/elf32-nios2.h (revision e992f068c547fd6e84b3f104dc2340adcc955732)
175fd0b74Schristos /* Nios II support for 32-bit ELF
2*e992f068Schristos    Copyright (C) 2013-2022 Free Software Foundation, Inc.
375fd0b74Schristos    Contributed by Mentor Graphics
475fd0b74Schristos 
575fd0b74Schristos    This file is part of BFD, the Binary File Descriptor library.
675fd0b74Schristos 
775fd0b74Schristos    This program is free software; you can redistribute it and/or modify
875fd0b74Schristos    it under the terms of the GNU General Public License as published by
975fd0b74Schristos    the Free Software Foundation; either version 3 of the License, or
1075fd0b74Schristos    (at your option) any later version.
1175fd0b74Schristos 
1275fd0b74Schristos    This program is distributed in the hope that it will be useful,
1375fd0b74Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1475fd0b74Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1575fd0b74Schristos    GNU General Public License for more details.
1675fd0b74Schristos 
1775fd0b74Schristos    You should have received a copy of the GNU General Public License
1875fd0b74Schristos    along with this program; if not, write to the Free Software
1975fd0b74Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
2075fd0b74Schristos    MA 02110-1301, USA.  */
2175fd0b74Schristos 
2275fd0b74Schristos #ifndef _ELF32_NIOS2_H
2375fd0b74Schristos #define _ELF32_NIOS2_H
2475fd0b74Schristos 
2575fd0b74Schristos extern int nios2_elf32_setup_section_lists
2675fd0b74Schristos   (bfd *, struct bfd_link_info *);
2775fd0b74Schristos 
2875fd0b74Schristos extern void nios2_elf32_next_input_section
2975fd0b74Schristos   (struct bfd_link_info *, asection *);
3075fd0b74Schristos 
31*e992f068Schristos extern bool nios2_elf32_size_stubs
3275fd0b74Schristos   (bfd *, bfd *, struct bfd_link_info *,
33*e992f068Schristos    asection * (*) (const char *, asection *, bool), void (*) (void));
3475fd0b74Schristos 
35*e992f068Schristos extern bool nios2_elf32_build_stubs
3675fd0b74Schristos   (struct bfd_link_info *);
3775fd0b74Schristos 
3875fd0b74Schristos #endif  /* _ELF32_NIOS2_H */
39