diff options
author | Cary Coutant <ccoutant@google.com> | 2011-10-10 17:38:07 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2011-10-10 17:38:07 +0000 |
commit | 76dafe9c840650be6bf14d1446410c1c0b06f54e (patch) | |
tree | 9133356c359d405fb3e451803f04e29b0300b742 /gold/incremental.h | |
parent | 12214b25350907ab40bdd62b5ec23b2f43393287 (diff) | |
download | binutils-redhat-76dafe9c840650be6bf14d1446410c1c0b06f54e.tar.gz |
* gold/incremental.cc (Sized_relobj_incr::Sized_relobj_incr):
Initialize defined_count_.
(Sized_relobj_incr::do_add_symbols): Count defined symbols.
(Sized_relobj_incr::do_get_global_symbol_counts): Rewrite.
(Sized_incr_dynobj::Sized_incr_dynobj): Initialize defined_count_.
(Sized_incr_dynobj::do_add_symbols): Count defined symbols.
(Sized_incr_dynobj::do_get_global_symbol_counts): Rewrite.
* gold/incremental.h (Sized_relobj_incr::defined_count_): New data
member.
(Sized_incr_dynobj::defined_count_): New data member.
* gold/plugin.cc (Sized_pluginobj::do_get_global_symbol_counts):
Return zeroes instead of internal error.
Diffstat (limited to 'gold/incremental.h')
-rw-r--r-- | gold/incremental.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/incremental.h b/gold/incremental.h index e6732df5ac..56fc52b753 100644 --- a/gold/incremental.h +++ b/gold/incremental.h @@ -1996,6 +1996,8 @@ class Sized_relobj_incr : public Sized_relobj<size, big_endian> unsigned int local_dynsym_offset_; // The entries in the symbol table for the external symbols. Symbols symbols_; + // Number of symbols defined in object file itself. + size_t defined_count_; // The offset of the first incremental relocation for this object. unsigned int incr_reloc_offset_; // The number of incremental relocations for this object. @@ -2127,6 +2129,8 @@ class Sized_incr_dynobj : public Dynobj Input_entry_reader input_reader_; // The entries in the symbol table for the external symbols. Symbols symbols_; + // Number of symbols defined in object file itself. + size_t defined_count_; }; // Allocate an incremental object of the appropriate size and endianness. |