diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-07-13 12:04:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-07-13 12:04:03 +0000 |
commit | 8274239589cb7d560af55e3565ad7e6829b1edfe (patch) | |
tree | 2f57a27ac6fc1a907a4032919d280af987770de5 /gold/i386.cc | |
parent | 241531d62d5e36e157fbf2f5db99f50b632d1a29 (diff) | |
download | gdb-8274239589cb7d560af55e3565ad7e6829b1edfe.zip gdb-8274239589cb7d560af55e3565ad7e6829b1edfe.tar.gz gdb-8274239589cb7d560af55e3565ad7e6829b1edfe.tar.bz2 |
* output.h (Output_section_lookup_maps::add_merge_section):
Correct check of whether value was inserted.
(Output_section_lookup_maps::add_merge_input_section): Likewise.
(Output_section_lookup_maps::add_relaxed_input_section):
Likewise.
* arm.cc (Target_arm::got_section): Remove used local os.
* i386.cc (Target_i386::got_section): Likewise.
* x86_64.cc (Target_x86_64::got_section): Likewise.
* sparc.cc (Target_sparc::got_section): Likewise.
(Target_sparc::relocate): Remove unused local have_got_offset.
* powerpc.cc (Target_powerpc::relocate): Likewise.
Diffstat (limited to 'gold/i386.cc')
-rw-r--r-- | gold/i386.cc | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/gold/i386.cc b/gold/i386.cc index 1776383..e49207a 100644 --- a/gold/i386.cc +++ b/gold/i386.cc @@ -494,19 +494,17 @@ Target_i386::got_section(Symbol_table* symtab, Layout* layout) this->got_ = new Output_data_got<32, false>(); - Output_section* os; - os = layout->add_output_section_data(".got", elfcpp::SHT_PROGBITS, - (elfcpp::SHF_ALLOC - | elfcpp::SHF_WRITE), - this->got_, false, true, true, - false); + layout->add_output_section_data(".got", elfcpp::SHT_PROGBITS, + (elfcpp::SHF_ALLOC + | elfcpp::SHF_WRITE), + this->got_, false, true, true, false); this->got_plt_ = new Output_data_space(4, "** GOT PLT"); - os = layout->add_output_section_data(".got.plt", elfcpp::SHT_PROGBITS, - (elfcpp::SHF_ALLOC - | elfcpp::SHF_WRITE), - this->got_plt_, false, false, false, - true); + layout->add_output_section_data(".got.plt", elfcpp::SHT_PROGBITS, + (elfcpp::SHF_ALLOC + | elfcpp::SHF_WRITE), + this->got_plt_, false, false, false, + true); // The first three entries are reserved. this->got_plt_->set_current_data_size(3 * 4); |