Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2010-06-22 01:21:25 +0400
committerRafael Ávila de Espíndola <respindola@mozilla.com>2010-06-22 01:21:25 +0400
commit90e4ed055095a8f68b05cc7b449d43e8b93330a1 (patch)
treef6b47ea594d8a1c3b11f1fabe1df790227b76fba
parentf074bd3aef7273eec50d78013cbf18200b1f00db (diff)
2010-06-21 Rafael Espindola <espindola@google.com>
* fileread.cc (Input_file::find_fie): New (Input_file::open): Use Input_file::find_fie. * fileread.h (Input_file::find_fie): New * plugin.cc (set_extra_library_path): New. (Plugin::load): Add set_extra_library_path to the transfer vector. (Plugin_manager::set_extra_library_path): New. (Plugin_manager::add_input_file): Use the extra search path if set. (set_extra_library_path(): New. * plugin.h (Plugin_manager): Add set_extra_library_path and extra_search_path_. 2010-06-21 Rafael Espindola <espindola@google.com> * plugin-api.h (ld_plugin_set_extra_library_path): New. (ld_plugin_tag): Add LDPT_SET_EXTRA_LIBRARY_PATH. (ld_plugin_tv): Add tv_set_extra_library_path.
-rw-r--r--include/ChangeLog6
-rw-r--r--include/plugin-api.h10
2 files changed, 15 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index decb57ad0..f4191af5f 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-21 Rafael Espindola <espindola@google.com>
+
+ * plugin-api.h (ld_plugin_set_extra_library_path): New.
+ (ld_plugin_tag): Add LDPT_SET_EXTRA_LIBRARY_PATH.
+ (ld_plugin_tv): Add tv_set_extra_library_path.
+
2010-06-21 Jakub Jelinek <jakub@redhat.com>
* dwarf2.h (enum dwarf_type): Add DW_ATE_UTF.
diff --git a/include/plugin-api.h b/include/plugin-api.h
index 55cfe2578..a0cf5f458 100644
--- a/include/plugin-api.h
+++ b/include/plugin-api.h
@@ -228,6 +228,12 @@ typedef
enum ld_plugin_status
(*ld_plugin_add_input_library) (const char *libname);
+/* The linker's interface for adding a library path that should be searched. */
+
+typedef
+enum ld_plugin_status
+(*ld_plugin_set_extra_library_path) (const char *path);
+
/* The linker's interface for issuing a warning or error message. */
typedef
@@ -261,7 +267,8 @@ enum ld_plugin_tag
LDPT_GET_INPUT_FILE,
LDPT_RELEASE_INPUT_FILE,
LDPT_ADD_INPUT_LIBRARY,
- LDPT_OUTPUT_NAME
+ LDPT_OUTPUT_NAME,
+ LDPT_SET_EXTRA_LIBRARY_PATH
};
/* The plugin transfer vector. */
@@ -283,6 +290,7 @@ struct ld_plugin_tv
ld_plugin_get_input_file tv_get_input_file;
ld_plugin_release_input_file tv_release_input_file;
ld_plugin_add_input_library tv_add_input_library;
+ ld_plugin_set_extra_library_path tv_set_extra_library_path;
} tv_u;
};