summaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-06-24 00:38:00 +0000
committerIan Lance Taylor <ian@airs.com>2009-06-24 00:38:00 +0000
commite4d7af61031c2e1e12ab1b48e4f87fa332269459 (patch)
tree3afaeade42903c8e2443c09a435430ceba91b857 /gold/layout.h
parent1c96dd9fc4dbc4b4428768143ccad014b20313fe (diff)
downloadbinutils-redhat-e4d7af61031c2e1e12ab1b48e4f87fa332269459.tar.gz
PR 10219
* layout.cc (Layout::Layout): Initialize have_stabstr_section_. (Layout::make_output_section): Set have_stabstr_section_ if we see a .stab*str section. (Layout::finalize): Call link_stabs_sections. (Layout::link_stabs_sections): New file. * layout.h (class Layout): Add have_stabstr_section_ field. Declare link_stabs_sections.
Diffstat (limited to 'gold/layout.h')
-rw-r--r--gold/layout.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h
index 93ecd8544d..f538b643cc 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -480,6 +480,10 @@ class Layout
void
create_build_id();
+ // Link .stab and .stabstr sections.
+ void
+ link_stabs_sections();
+
// Create .gnu_incremental_inputs and .gnu_incremental_strtab sections needed
// for the next run of incremental linking to check what has changed.
void
@@ -724,6 +728,8 @@ class Layout
bool any_postprocessing_sections_;
// Whether we have resized the signatures_ hash table.
bool resized_signatures_;
+ // Whether we have created a .stab*str output section.
+ bool have_stabstr_section_;
// In incremental build, holds information check the inputs and build the
// .gnu_incremental_inputs section.
Incremental_inputs* incremental_inputs_;