aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-09-20 14:52:54 +0930
committerAlan Modra <amodra@gmail.com>2019-09-20 15:37:11 +0930
commit4c51dacacf8a97194a1241ad5e1cbf7be00a59a3 (patch)
tree6f089a1e722057350343f53e8d96468ff3ca8b95 /gold/layout.cc
parente59a1001222d853f0517c7e974bb51589ba86710 (diff)
downloadgdb-4c51dacacf8a97194a1241ad5e1cbf7be00a59a3.zip
gdb-4c51dacacf8a97194a1241ad5e1cbf7be00a59a3.tar.gz
gdb-4c51dacacf8a97194a1241ad5e1cbf7be00a59a3.tar.bz2
[GOLD] Fix spurious "plugin needed to handle lto object" warnings
lto_slim_object_ was unitialized. I also thought it worth adding a sanity check on the .gnu.lto_.lto.* section size, and made some other tidies. PR 24768 * layout.cc (Layout::Layout): Init lto_slim_object_. * object.cc (Sized_relobj_file::do_layout): Wrap overlong line. Don't use C cast. Validate section size. Don't copy contents.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index fc7cdf8..194d088c 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -466,6 +466,7 @@ Layout::Layout(int number_of_input_files, Script_options* script_options)
unique_segment_for_sections_specified_(false),
incremental_inputs_(NULL),
record_output_section_data_from_script_(false),
+ lto_slim_object_(false),
script_output_section_data_list_(),
segment_states_(NULL),
relaxation_debug_check_(NULL),