diff options
Diffstat (limited to 'gold/incremental.cc')
-rw-r--r-- | gold/incremental.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/incremental.cc b/gold/incremental.cc index 4af4ef3..506c575 100644 --- a/gold/incremental.cc +++ b/gold/incremental.cc @@ -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); } |