aboutsummaryrefslogtreecommitdiff
path: root/gold/sparc.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-07-13 12:04:03 +0000
committerIan Lance Taylor <ian@airs.com>2010-07-13 12:04:03 +0000
commit8274239589cb7d560af55e3565ad7e6829b1edfe (patch)
tree2f57a27ac6fc1a907a4032919d280af987770de5 /gold/sparc.cc
parent241531d62d5e36e157fbf2f5db99f50b632d1a29 (diff)
downloadfsf-binutils-gdb-8274239589cb7d560af55e3565ad7e6829b1edfe.zip
fsf-binutils-gdb-8274239589cb7d560af55e3565ad7e6829b1edfe.tar.gz
fsf-binutils-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/sparc.cc')
-rw-r--r--gold/sparc.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/gold/sparc.cc b/gold/sparc.cc
index e2d59b9..90e5ae3 100644
--- a/gold/sparc.cc
+++ b/gold/sparc.cc
@@ -1045,12 +1045,10 @@ Target_sparc<size, big_endian>::got_section(Symbol_table* symtab,
this->got_ = new Output_data_got<size, big_endian>();
- Output_section* os;
- os = layout->add_output_section_data(".got", elfcpp::SHT_PROGBITS,
- (elfcpp::SHF_ALLOC
- | elfcpp::SHF_WRITE),
- this->got_, false, true, false,
- false);
+ layout->add_output_section_data(".got", elfcpp::SHT_PROGBITS,
+ (elfcpp::SHF_ALLOC
+ | elfcpp::SHF_WRITE),
+ this->got_, false, true, false, false);
// Define _GLOBAL_OFFSET_TABLE_ at the start of the .got section.
symtab->define_in_output_data("_GLOBAL_OFFSET_TABLE_", NULL,
@@ -2474,7 +2472,6 @@ Target_sparc<size, big_endian>::Relocate::relocate(
// Get the GOT offset if needed. Unlike i386 and x86_64, our GOT
// pointer points to the beginning, not the end, of the table.
// So we just use the plain offset.
- bool have_got_offset = false;
unsigned int got_offset = 0;
switch (r_type)
{
@@ -2495,7 +2492,6 @@ Target_sparc<size, big_endian>::Relocate::relocate(
gold_assert(object->local_has_got_offset(r_sym, GOT_TYPE_STANDARD));
got_offset = object->local_got_offset(r_sym, GOT_TYPE_STANDARD);
}
- have_got_offset = true;
break;
default: