mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
gold/
* dwp.cc (Dwp_output_file::add_cu_set): Check for duplicate CUs. (Dwp_output_file::Dwp_index::enter_set): Add assert.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-12-14 Cary Coutant <ccoutant@google.com>
|
||||||
|
|
||||||
|
* dwp.cc (Dwp_output_file::add_cu_set): Check for duplicate CUs.
|
||||||
|
(Dwp_output_file::Dwp_index::enter_set): Add assert.
|
||||||
|
|
||||||
2012-12-12 Alan Modra <amodra@gmail.com>
|
2012-12-12 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* powerpc.cc (class Track_tls): New.
|
* powerpc.cc (class Track_tls): New.
|
||||||
|
@ -1532,8 +1532,11 @@ Dwp_output_file::add_cu_set(uint64_t dwo_id,
|
|||||||
debug_loc, debug_str_offsets, debug_macinfo,
|
debug_loc, debug_str_offsets, debug_macinfo,
|
||||||
debug_macro };
|
debug_macro };
|
||||||
unsigned int slot;
|
unsigned int slot;
|
||||||
this->cu_index_.find_or_add(dwo_id, &slot);
|
if (!this->cu_index_.find_or_add(dwo_id, &slot))
|
||||||
this->cu_index_.enter_set(slot, cu_set);
|
this->cu_index_.enter_set(slot, cu_set);
|
||||||
|
else
|
||||||
|
gold_warning(_("%s: duplicate entry for CU (dwo_id 0x%llx)"),
|
||||||
|
this->name_, (unsigned long long)dwo_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lookup a type signature and return TRUE if we have already seen it.
|
// Lookup a type signature and return TRUE if we have already seen it.
|
||||||
@ -1617,6 +1620,7 @@ Dwp_output_file::Dwp_index::enter_set(unsigned int slot,
|
|||||||
this->shndx_pool_.push_back(0);
|
this->shndx_pool_.push_back(0);
|
||||||
|
|
||||||
// Enter the signature and pool index into the hash table.
|
// Enter the signature and pool index into the hash table.
|
||||||
|
gold_assert(this->hash_table_[slot] == 0);
|
||||||
this->hash_table_[slot] = set.signature;
|
this->hash_table_[slot] = set.signature;
|
||||||
this->index_table_[slot] = pool_index;
|
this->index_table_[slot] = pool_index;
|
||||||
++this->used_;
|
++this->used_;
|
||||||
|
Reference in New Issue
Block a user