2010-03-19 Doug Kwan <dougkwan@google.com>
authorDoug Kwan <dougkwan@google.com>
Fri, 19 Mar 2010 19:11:21 +0000 (19:11 +0000)
committerDoug Kwan <dougkwan@google.com>
Fri, 19 Mar 2010 19:11:21 +0000 (19:11 +0000)
commitd099120c64430117a80fc95c0bff2da9ff5d8657
tree459701f27b0243cd692c50d63fd90bd934a3886c
parent20781792668b79372f059ecb51fa5d61a1a43f84
2010-03-19  Doug Kwan  <dougkwan@google.com>

* arm.cc (Stub_table::Stub_table): Initialize new data members
Stub_table::reloc_stubs_size_ and Stub_table::reloc_stubs_addralign_.
(Stub_table::add_reloc_stub): Assign stub offset and update
Stub_table::reloc_stubs_size_ and Stub_table::reloc_stubs_addralign_.
(Stub_table::reloc_stubs_size_, Stub_table::reloc_stubs_addralign_):
New data members.
  (Stub_table::update_data_size_and_addralign): Use
Stub_table::reloc_stubs_size_ and Stub_table::reloc_stubs_addralign_
instead of going over all reloc stubs.
  (Stub_table::finalize_stubs): Do not assign reloc stub offsets.
* stringpool.cc (Stringpool_template::Stringpool_template): Initialize
Stringpool_template::offset_ to size of Stringpool_char.
  (Stringpool_template::new_key_offset): Remove code to initialize
Stringpool_template::offset_.
* stringpool.h (Stringpool_template::set_no_zero_null): Set
Stringpool_template::offset_ to zero.
gold/ChangeLog
gold/arm.cc
gold/stringpool.cc
gold/stringpool.h