aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-08 07:06:58 +0000
committerIan Lance Taylor <iant@google.com>2008-02-08 07:06:58 +0000
commitbc644c6cfca852cd34e486a018bfde7fd1ac55e8 (patch)
tree0a3f5a7539df0cebdaddc0accf07a156e5c5221c /gold/layout.cc
parent897b09ca9f17a38ab9c552ae6933eb595283aa4c (diff)
downloadgdb-bc644c6cfca852cd34e486a018bfde7fd1ac55e8.zip
gdb-bc644c6cfca852cd34e486a018bfde7fd1ac55e8.tar.gz
gdb-bc644c6cfca852cd34e486a018bfde7fd1ac55e8.tar.bz2
Add support for --format binary for input files.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index cea25b0..6cba3aa 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -57,7 +57,7 @@ Layout_task_runner::run(Workqueue* workqueue, const Task* task)
// Now we know the final size of the output file and we know where
// each piece of information goes.
Output_file* of = new Output_file(parameters->output_file_name());
- if (this->options_.output_format() != General_options::OUTPUT_FORMAT_ELF)
+ if (this->options_.output_format() != General_options::OBJECT_FORMAT_ELF)
of->set_is_temporary();
of->open(file_size);
@@ -951,7 +951,7 @@ Layout::finalize(const Input_objects* input_objects, Symbol_table* symtab,
else
load_seg = this->find_first_load_seg();
- if (this->options_.output_format() != General_options::OUTPUT_FORMAT_ELF)
+ if (this->options_.output_format() != General_options::OBJECT_FORMAT_ELF)
load_seg = NULL;
gold_assert(phdr_seg == NULL || load_seg != NULL);
@@ -2502,7 +2502,7 @@ void
Layout::write_binary(Output_file* in) const
{
gold_assert(this->options_.output_format()
- == General_options::OUTPUT_FORMAT_BINARY);
+ == General_options::OBJECT_FORMAT_BINARY);
// Get the size of the binary file.
uint64_t max_load_address = 0;
@@ -2672,7 +2672,7 @@ void
Close_task_runner::run(Workqueue*, const Task*)
{
// If we've been asked to create a binary file, we do so here.
- if (this->options_->output_format() != General_options::OUTPUT_FORMAT_ELF)
+ if (this->options_->output_format() != General_options::OBJECT_FORMAT_ELF)
this->layout_->write_binary(this->of_);
this->of_->close();