X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=bfd%2Fxcofflink.h;h=d647ba0a5df4a9c352468a8c8399e05cce0d2cf9;hb=243cf0f69c36c4ee09c3c2b0bc7a97dc16119c51;hp=30e7f0412c02a9113d932b94c94a6466ab5a44b6;hpb=0a1b45a20eaa98d4d9026dc1fd17e79e741183af;p=binutils-gdb.git diff --git a/bfd/xcofflink.h b/bfd/xcofflink.h index 30e7f0412c0..d647ba0a5df 100644 --- a/bfd/xcofflink.h +++ b/bfd/xcofflink.h @@ -1,5 +1,5 @@ /* POWER/PowerPC XCOFF linker support. - Copyright (C) 2019-2021 Free Software Foundation, Inc. + Copyright (C) 2019-2022 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -18,6 +18,17 @@ 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 @@ -37,5 +48,13 @@ 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);