diff options
Diffstat (limited to 'gold/main.cc')
-rw-r--r-- | gold/main.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/main.cc b/gold/main.cc index 7de1b87..d0f36e7 100644 --- a/gold/main.cc +++ b/gold/main.cc @@ -195,10 +195,6 @@ main(int argc, char** argv) if (parameters->options().relocatable()) command_line.script_options().version_script_info()->clear(); - // Load plugin libraries. - if (command_line.options().has_plugins()) - command_line.options().plugins()->load_plugins(); - // The work queue. Workqueue workqueue(command_line.options()); @@ -234,6 +230,10 @@ main(int argc, char** argv) if (parameters->options().section_ordering_file()) layout.read_layout_from_file(); + // Load plugin libraries. + if (command_line.options().has_plugins()) + command_line.options().plugins()->load_plugins(&layout); + // Get the search path from the -L options. Dirsearch search_path; search_path.initialize(&workqueue, &command_line.options().library_path()); |