Update release readme after making 2.43.1 release
[binutils-gdb.git] / ld / ldfile.h
blob08826f65f041eb826bc2193be5046b3b8bdf5d0b
1 /* ldfile.h -
2 Copyright (C) 1991-2024 Free Software Foundation, Inc.
4 This file is part of the GNU Binutils.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
21 #ifndef LDFILE_H
22 #define LDFILE_H
24 extern bool ldfile_assumed_script;
25 extern unsigned long ldfile_output_machine;
26 extern enum bfd_architecture ldfile_output_architecture;
27 extern const char *ldfile_output_machine_name;
29 enum search_dir_source
31 search_dir_cmd_line,
32 #if BFD_SUPPORTS_PLUGINS
33 search_dir_plugin,
34 #endif
35 search_dir_linker_script
38 /* Structure used to hold the list of directories to search for
39 libraries. */
41 typedef struct search_dirs
43 /* Next directory on list. */
44 struct search_dirs *next;
45 /* Name of directory. */
46 const char *name;
47 /* Where the search path came from. */
48 enum search_dir_source source;
49 #if BFD_SUPPORTS_PLUGINS
50 /* For search dirs added by plugins, the plugin that added them. */
51 void * plugin;
52 #endif
53 } search_dirs_type;
55 enum script_open_style
57 script_nonT,
58 script_T,
59 script_defaultT
62 struct script_name_list
64 struct script_name_list * next;
65 enum script_open_style open_how;
66 char name[1];
69 extern struct script_name_list * processed_scripts;
71 extern search_dirs_type *search_head;
73 extern void ldfile_add_arch
74 (const char *);
75 extern search_dirs_type * ldfile_add_library_path
76 (const char *, enum search_dir_source);
77 extern void ldfile_open_command_file
78 (const char *name);
79 extern void ldfile_open_script_file
80 (const char *name);
81 extern void ldfile_open_default_command_file
82 (const char *name);
83 extern void ldfile_open_file
84 (struct lang_input_statement_struct *);
85 extern bool ldfile_try_open_bfd
86 (const char *, struct lang_input_statement_struct *);
87 extern void ldfile_set_output_arch
88 (const char *, enum bfd_architecture);
89 extern bool ldfile_open_file_search
90 (const char *arch, struct lang_input_statement_struct *,
91 const char *lib, const char *suffix);
93 extern void ldfile_add_remap
94 (const char *, const char *);
95 extern bool ldfile_add_remap_file
96 (const char *);
97 extern void ldfile_remap_input_free
98 (void);
99 extern const char * ldfile_possibly_remap_input
100 (const char *);
101 extern void ldfile_print_input_remaps
102 (void);
104 #endif