aboutsummaryrefslogtreecommitdiff
path: root/gold/plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r--gold/plugin.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc
index 104ac5c..6170d74 100644
--- a/gold/plugin.cc
+++ b/gold/plugin.cc
@@ -413,7 +413,11 @@ Plugin_manager::release_input_file(unsigned int handle)
ld_plugin_status
Plugin_manager::add_input_file(char *pathname, bool is_lib)
{
- Input_file_argument file(pathname, is_lib, "", false, this->options_);
+ Input_file_argument file(pathname,
+ (is_lib
+ ? Input_file_argument::INPUT_FILE_TYPE_LIBRARY
+ : Input_file_argument::INPUT_FILE_TYPE_FILE),
+ "", false, this->options_);
Input_argument* input_argument = new Input_argument(file);
Task_token* next_blocker = new Task_token(true);
next_blocker->add_blocker();