2009-12-02 Rafael Avila de Espindola <espindola@google.com>
* incremental.cc (make_sized_incremental_binary): Set the target. Error if it is incompatible. * output.h (Output_file): Add filename method.
This commit is contained in:
parent
55da44bd78
commit
3aec4f9c2f
|
@ -1,3 +1,9 @@
|
|||
2009-12-02 Rafael Avila de Espindola <espindola@google.com>
|
||||
|
||||
* incremental.cc (make_sized_incremental_binary): Set the target.
|
||||
Error if it is incompatible.
|
||||
* output.h (Output_file): Add filename method.
|
||||
|
||||
2009-12-02 Rafael Avila de Espindola <espindola@google.com>
|
||||
|
||||
* incremental.cc (Incremental_inputs_entry): Remove unused argument
|
||||
|
|
|
@ -333,6 +333,11 @@ make_sized_incremental_binary(Output_file* file,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (!parameters->target_valid())
|
||||
set_parameters_target(target);
|
||||
else if (target != ¶meters->target())
|
||||
gold_error(_("%s: incompatible target"), file->filename());
|
||||
|
||||
return new Sized_incremental_binary<size, big_endian>(file, ehdr, target);
|
||||
}
|
||||
|
||||
|
|
|
@ -3653,6 +3653,11 @@ class Output_file
|
|||
filesize()
|
||||
{ return this->file_size_; }
|
||||
|
||||
// Return the name of this file.
|
||||
const char*
|
||||
filename()
|
||||
{ return this->name_; }
|
||||
|
||||
// We currently always use mmap which makes the view handling quite
|
||||
// simple. In the future we may support other approaches.
|
||||
|
||||
|
|
Loading…
Reference in New Issue