aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-07 07:33:46 +0000
committerIan Lance Taylor <iant@google.com>2008-02-07 07:33:46 +0000
commit516cb3d01efb6f72ffa445ada40003e4e9e8e23a (patch)
tree7d422728cec6c2217ab76106f6c01479e2f2db4a /gold/layout.h
parent1ef1f3d387940683bcba12c0bee8c5adfdef4bc7 (diff)
downloadgdb-516cb3d01efb6f72ffa445ada40003e4e9e8e23a.zip
gdb-516cb3d01efb6f72ffa445ada40003e4e9e8e23a.tar.gz
gdb-516cb3d01efb6f72ffa445ada40003e4e9e8e23a.tar.bz2
Support --oformat binary.
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 674956e..e4e97e4 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -287,6 +287,10 @@ class Layout
script_options() const
{ return this->script_options_; }
+ // Rewrite output file in binary format.
+ void
+ write_binary(Output_file* in) const;
+
// Dump statistical information to stderr.
void
print_stats() const;
@@ -732,8 +736,9 @@ class Write_after_input_sections_task : public Task
class Close_task_runner : public Task_function_runner
{
public:
- Close_task_runner(Output_file* of)
- : of_(of)
+ Close_task_runner(const General_options* options, const Layout* layout,
+ Output_file* of)
+ : options_(options), layout_(layout), of_(of)
{ }
// Run the operation.
@@ -741,6 +746,8 @@ class Close_task_runner : public Task_function_runner
run(Workqueue*, const Task*);
private:
+ const General_options* options_;
+ const Layout* layout_;
Output_file* of_;
};