aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/layout.h')
-rw-r--r--gold/layout.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/gold/layout.h b/gold/layout.h
index ede2604..1c71d47 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -40,6 +40,7 @@ namespace gold
class General_options;
class Input_objects;
+class Mapfile;
class Symbol_table;
class Output_section_data;
class Output_section;
@@ -64,9 +65,10 @@ class Layout_task_runner : public Task_function_runner
const Input_objects* input_objects,
Symbol_table* symtab,
Target* target,
- Layout* layout)
+ Layout* layout,
+ Mapfile* mapfile)
: options_(options), input_objects_(input_objects), symtab_(symtab),
- target_(target), layout_(layout)
+ target_(target), layout_(layout), mapfile_(mapfile)
{ }
// Run the operation.
@@ -82,6 +84,7 @@ class Layout_task_runner : public Task_function_runner
Symbol_table* symtab_;
Target* target_;
Layout* layout_;
+ Mapfile* mapfile_;
};
// This class handles the details of laying out input sections.
@@ -334,6 +337,10 @@ class Layout
void
write_binary(Output_file* in) const;
+ // Print output sections to the map file.
+ void
+ print_to_mapfile(Mapfile*) const;
+
// Dump statistical information to stderr.
void
print_stats() const;