forked from Imagelibrary/binutils-gdb
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user