aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldfile.h')
-rw-r--r--ld/ldfile.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/ld/ldfile.h b/ld/ldfile.h
index f79abf2..08826f6 100644
--- a/ld/ldfile.h
+++ b/ld/ldfile.h
@@ -26,6 +26,15 @@ extern unsigned long ldfile_output_machine;
extern enum bfd_architecture ldfile_output_architecture;
extern const char *ldfile_output_machine_name;
+enum search_dir_source
+{
+ search_dir_cmd_line,
+#if BFD_SUPPORTS_PLUGINS
+ search_dir_plugin,
+#endif
+ search_dir_linker_script
+};
+
/* Structure used to hold the list of directories to search for
libraries. */
@@ -35,8 +44,12 @@ typedef struct search_dirs
struct search_dirs *next;
/* Name of directory. */
const char *name;
- /* TRUE if this is from the command line. */
- bool cmdline;
+ /* Where the search path came from. */
+ enum search_dir_source source;
+#if BFD_SUPPORTS_PLUGINS
+ /* For search dirs added by plugins, the plugin that added them. */
+ void * plugin;
+#endif
} search_dirs_type;
enum script_open_style
@@ -59,8 +72,8 @@ extern search_dirs_type *search_head;
extern void ldfile_add_arch
(const char *);
-extern void ldfile_add_library_path
- (const char *, bool cmdline);
+extern search_dirs_type * ldfile_add_library_path
+ (const char *, enum search_dir_source);
extern void ldfile_open_command_file
(const char *name);
extern void ldfile_open_script_file