diff options
author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2009-12-03 04:26:01 +0000 |
---|---|---|
committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2009-12-03 04:26:01 +0000 |
commit | 3aec4f9c2fe16765755d252ffe05aff9eb10bf8b (patch) | |
tree | 44f5c2a51c18aec14d7521a3de1912ee67734d8a /gold/incremental.cc | |
parent | 55da44bd78324051f2828065c54ecfe60002ba1f (diff) | |
download | gdb-3aec4f9c2fe16765755d252ffe05aff9eb10bf8b.zip gdb-3aec4f9c2fe16765755d252ffe05aff9eb10bf8b.tar.gz gdb-3aec4f9c2fe16765755d252ffe05aff9eb10bf8b.tar.bz2 |
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.
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); } |