aboutsummaryrefslogtreecommitdiff
path: root/gold/main.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-04-02 04:19:03 +0000
committerIan Lance Taylor <ian@airs.com>2009-04-02 04:19:03 +0000
commite55bde5eb0ac6c73574b45f17df964458e94488c (patch)
tree9d20b0fedd1cd9a043f462013957be1c54a7136e /gold/main.cc
parente401b04ca7cd4cc3450c375b63b30b0907f14de0 (diff)
downloadgdb-e55bde5eb0ac6c73574b45f17df964458e94488c.zip
gdb-e55bde5eb0ac6c73574b45f17df964458e94488c.tar.gz
gdb-e55bde5eb0ac6c73574b45f17df964458e94488c.tar.bz2
* gold.h (reserve_unordered_map): Define, three versions, one for
each version of Unordered_map. * layout.cc (Layout::Layout): Remove options parameter. Add number_of_input_files parameter. Don't initialize options_. Initialize number_of_input_files_ and resized_signatures_. Move sections_are_attached_. (Layout::layout_group): Reserve space for group_signatures_. (Layout::find_or_add_kept_section): Change name parameter to be a reference. Resize signatures_ map when it gets large enough. (Layout::layout_eh_frame): Use parameters->options() instead of this->options_. (Layout::make_output_section): Likewise. (Layout::attach_allocated_section_to_segment): Likewise. (Layout::finalize, Layout::create_executable_stack): Likewise. (Layout::set_segment_offsets, Layout::create_interp): Likewise. (Layout::finish_dynamic_section, Layout::write_binary): Likewise. * layout.h (class Layout): Update declarations. Remove options_ field. Add number_of_input_files_ and resized_signatures_ fields. Move sections_are_attached_ field. * main.cc (main): Pass number of input files to Layout constructor. Don't pass options.
Diffstat (limited to 'gold/main.cc')
-rw-r--r--gold/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/main.cc b/gold/main.cc
index 0019863..2985a84 100644
--- a/gold/main.cc
+++ b/gold/main.cc
@@ -216,7 +216,8 @@ main(int argc, char** argv)
symtab.set_gc(&gc);
// The layout object.
- Layout layout(command_line.options(), &command_line.script_options());
+ Layout layout(command_line.number_of_input_files(),
+ &command_line.script_options());
// Get the search path from the -L options.
Dirsearch search_path;