2011-09-29 Sriraman Tallam <tmsriram@google.com>
authorSriraman Tallam <tmsriram@google.com>
Thu, 29 Sep 2011 23:45:57 +0000 (23:45 +0000)
committerSriraman Tallam <tmsriram@google.com>
Thu, 29 Sep 2011 23:45:57 +0000 (23:45 +0000)
commitf0558624db8e79622bb71ea5279ec6b5f8c9bc79
treed197f7cab34bbcca71419dd08cdc05e47d661d0d
parenta7dac15368485853f4bd463352afb9b49517b624
2011-09-29 Sriraman Tallam  <tmsriram@google.com>

* layout.h (section_order_map_): New member.
(get_section_order_map): New member function.
* output.cc (Output_section::add_input_section): Check for patterns
only when --section-ordering-file is specified.
* gold.cc (queue_middle_tasks): Delay updating order of sections till
output_sections have been formed.
* layout.cc (Layout_Layout): Initialize section_order_map_.
* plugin.cc (update_section_order): Store order in order_map. Do not
update the order.
* testsuite/Makefile.am: Add test case for plugin_final_layout.
* testsuite/Makefile.in: Regenerate.
* testsuite/plugin_section_order.c: New file.
* testsuite/plugin_final_layout.cc: New file.
* testsuite/plugin_final_layout.sh: New file.
12 files changed:
gold/ChangeLog
gold/gold.cc
gold/layout.cc
gold/layout.h
gold/output.cc
gold/output.h
gold/plugin.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/plugin_final_layout.cc [new file with mode: 0644]
gold/testsuite/plugin_final_layout.sh [new file with mode: 0755]
gold/testsuite/plugin_section_order.c [new file with mode: 0644]