binutils-gdb/bfd/xcofflink.h
Alan Modra fd67aa1129 Update year range in copyright notice of binutils files
Adds two new external authors to etc/update-copyright.py to cover
bfd/ax_tls.m4, and adds gprofng to dirs handled automatically, then
updates copyright messages as follows:

1) Update cgen/utils.scm emitted copyrights.
2) Run "etc/update-copyright.py --this-year" with an extra external
   author I haven't committed, 'Kalray SA.', to cover gas testsuite
   files (which should have their copyright message removed).
3) Build with --enable-maintainer-mode --enable-cgen-maint=yes.
4) Check out */po/*.pot which we don't update frequently.
2024-01-04 22:58:12 +10:30

61 lines
2.5 KiB
C

/* POWER/PowerPC XCOFF linker support.
Copyright (C) 2019-2024 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
/* Used to pass info between ld and bfd. */
struct bfd_xcoff_link_params
{
/* Linker stub bfd. */
bfd *stub_bfd;
/* Linker call-backs. */
asection * (*add_stub_section) (const char *, asection *);
void (*layout_sections_again) (void);
};
extern bool bfd_xcoff_split_import_path
(bfd *, const char *, const char **, const char **);
extern bool bfd_xcoff_set_archive_import_path
(struct bfd_link_info *, bfd *, const char *);
extern bool bfd_xcoff_link_record_set
(bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *, bfd_size_type);
extern bool bfd_xcoff_import_symbol
(bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *, bfd_vma,
const char *, const char *, const char *, unsigned int);
extern bool bfd_xcoff_export_symbol
(bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *);
extern bool bfd_xcoff_link_count_reloc
(bfd *, struct bfd_link_info *, const char *);
extern bool bfd_xcoff_record_link_assignment
(bfd *, struct bfd_link_info *, const char *);
extern bool bfd_xcoff_size_dynamic_sections
(bfd *, struct bfd_link_info *, const char *, const char *,
unsigned long, unsigned long, unsigned long, bool,
int, bool, unsigned int, struct bfd_section **, bool);
extern bool bfd_xcoff_build_dynamic_sections
(bfd *, struct bfd_link_info *);
extern bool bfd_xcoff_link_generate_rtinit
(bfd *, const char *, const char *, bool);
extern bool bfd_xcoff_link_init
(struct bfd_link_info *, struct bfd_xcoff_link_params *);
extern bool bfd_xcoff_size_stubs
(struct bfd_link_info *info);
extern bool bfd_xcoff_build_stubs
(struct bfd_link_info *info);