diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-29 20:10:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-29 20:10:17 +0000 |
commit | 27bc2bce094e3a3ef536c5b8c2a38470bd7f3217 (patch) | |
tree | d5e89fcd143c9cd693712fb947f7afdf2426adb6 /gold/i386.cc | |
parent | 6ac84f65c22563675d0c3153db167db8f99df6f9 (diff) | |
download | gdb-27bc2bce094e3a3ef536c5b8c2a38470bd7f3217.zip gdb-27bc2bce094e3a3ef536c5b8c2a38470bd7f3217.tar.gz gdb-27bc2bce094e3a3ef536c5b8c2a38470bd7f3217.tar.bz2 |
Clean up setting address and section offset.
Diffstat (limited to 'gold/i386.cc')
-rw-r--r-- | gold/i386.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gold/i386.cc b/gold/i386.cc index e37e41f..1bfc659 100644 --- a/gold/i386.cc +++ b/gold/i386.cc @@ -348,7 +348,7 @@ Target_i386::got_section(Symbol_table* symtab, Layout* layout) this->got_plt_); // The first three entries are reserved. - this->got_plt_->set_space_size(3 * 4); + this->got_plt_->set_current_data_size(3 * 4); // Define _GLOBAL_OFFSET_TABLE_ at the start of the PLT. symtab->define_in_output_data(this, "_GLOBAL_OFFSET_TABLE_", NULL, @@ -417,7 +417,7 @@ class Output_data_plt_i386 : public Output_section_data // Set the final size. void - do_set_address(uint64_t, off_t) + set_final_data_size() { this->set_data_size((this->count_ + 1) * plt_entry_size); } // Write out the PLT data. @@ -466,12 +466,12 @@ Output_data_plt_i386::add_entry(Symbol* gsym) ++this->count_; - off_t got_offset = this->got_plt_->data_size(); + off_t got_offset = this->got_plt_->current_data_size(); // Every PLT entry needs a GOT entry which points back to the PLT // entry (this will be changed by the dynamic linker, normally // lazily when the function is called). - this->got_plt_->set_space_size(got_offset + 4); + this->got_plt_->set_current_data_size(got_offset + 4); // Every PLT entry needs a reloc. gsym->set_needs_dynsym_entry(); @@ -700,10 +700,10 @@ Target_i386::copy_reloc(const General_options* options, if (align > dynbss->addralign()) dynbss->set_space_alignment(align); - off_t dynbss_size = dynbss->data_size(); + off_t dynbss_size = dynbss->current_data_size(); dynbss_size = align_address(dynbss_size, align); off_t offset = dynbss_size; - dynbss->set_space_size(dynbss_size + symsize); + dynbss->set_current_data_size(dynbss_size + symsize); symtab->define_with_copy_reloc(this, ssym, dynbss, offset); |