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/arm.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/arm.cc')
-rw-r--r-- | gold/arm.cc | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/gold/arm.cc b/gold/arm.cc index 76d466b..ddfe543 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -4116,22 +4116,20 @@ Target_arm<big_endian>::got_section(Symbol_table* symtab, Layout* layout) this->got_ = new Arm_output_data_got<big_endian>(symtab, layout); - Output_section* os; - os = layout->add_output_section_data(".got", elfcpp::SHT_PROGBITS, - (elfcpp::SHF_ALLOC - | elfcpp::SHF_WRITE), - this->got_, false, false, false, - true); + layout->add_output_section_data(".got", elfcpp::SHT_PROGBITS, + (elfcpp::SHF_ALLOC + | elfcpp::SHF_WRITE), + this->got_, false, false, false, true); // The old GNU linker creates a .got.plt section. We just // create another set of data in the .got section. Note that we // always create a PLT if we create a GOT, although the PLT // might be empty. this->got_plt_ = new Output_data_space(4, "** GOT PLT"); - os = layout->add_output_section_data(".got", elfcpp::SHT_PROGBITS, - (elfcpp::SHF_ALLOC - | elfcpp::SHF_WRITE), - this->got_plt_, false, false, - false, false); + layout->add_output_section_data(".got", elfcpp::SHT_PROGBITS, + (elfcpp::SHF_ALLOC + | elfcpp::SHF_WRITE), + this->got_plt_, false, false, false, + false); // The first three entries are reserved. this->got_plt_->set_current_data_size(3 * 4); |