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:
Rafael Ávila de Espíndola 2009-12-03 04:26:01 +00:00
parent 55da44bd78
commit 3aec4f9c2f
3 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -333,6 +333,11 @@ make_sized_incremental_binary(Output_file* file,
return NULL;
}
if (!parameters->target_valid())
set_parameters_target(target);
else if (target != &parameters->target())
gold_error(_("%s: incompatible target"), file->filename());
return new Sized_incremental_binary<size, big_endian>(file, ehdr, target);
}

View File

@ -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.