aboutsummaryrefslogtreecommitdiff
path: root/gold/incremental.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-10-10 17:38:07 +0000
committerCary Coutant <ccoutant@google.com>2011-10-10 17:38:07 +0000
commit53bbcc1bb8246868a785a77201a3245b07af87e0 (patch)
tree36e725a68ab2ae377b1c391a90fd58100ef0954f /gold/incremental.h
parent397b129b2a1e3d186e62ff37ecdbc329bf6bbc53 (diff)
downloadfsf-binutils-gdb-53bbcc1bb8246868a785a77201a3245b07af87e0.zip
fsf-binutils-gdb-53bbcc1bb8246868a785a77201a3245b07af87e0.tar.gz
fsf-binutils-gdb-53bbcc1bb8246868a785a77201a3245b07af87e0.tar.bz2
* 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/incremental.h b/gold/incremental.h
index e6732df..56fc52b 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.