aboutsummaryrefslogtreecommitdiff
path: root/gold/arm.cc
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-12-12 01:26:12 +0000
committerDoug Kwan <dougkwan@google.com>2009-12-12 01:26:12 +0000
commitb0eec2ccdafc32f2d0d82d8582fe28d91ea5a679 (patch)
tree389b8f994b9bf250f380f78e2bebb9e0237f201e /gold/arm.cc
parent759a05ce2497537aaf1982648a616ecd04127a4a (diff)
downloadgdb-b0eec2ccdafc32f2d0d82d8582fe28d91ea5a679.zip
gdb-b0eec2ccdafc32f2d0d82d8582fe28d91ea5a679.tar.gz
gdb-b0eec2ccdafc32f2d0d82d8582fe28d91ea5a679.tar.bz2
2009-12-11 Doug Kwan <dougkwan@google.com>
* arm.cc (Target_arm::do_finalize_sections): Fix build breakage due to -Wshadow. * attributes.cc (Object_attribute::size): Ditto. (Attributes_section_data::size): Ditto. (Attributes_section_data::Attributes_section_data): Ditto. (Output_attributes_section_data::do_write): Ditto. * attributes.h (Object_attribute::set_type): Ditto. * testsuite/tls_test_main.cc (safe_lock, safe_unlock): Ditto.
Diffstat (limited to 'gold/arm.cc')
-rw-r--r--gold/arm.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/gold/arm.cc b/gold/arm.cc
index f69593e..5faaf3c 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -4784,11 +4784,10 @@ Target_arm<big_endian>::do_finalize_sections(
}
// Create an .ARM.attributes section if there is not one already.
- Output_attributes_section_data* attributes_section =
+ Output_attributes_section_data* as =
new Output_attributes_section_data(*this->attributes_section_data_);
- layout->add_output_section_data(".ARM.attributes",
- elfcpp::SHT_ARM_ATTRIBUTES, 0,
- attributes_section, false);
+ alayout->add_output_section_data(".ARM.attributes",
+ elfcpp::SHT_ARM_ATTRIBUTES, 0, as, false);
}
// Return whether a direct absolute static relocation needs to be applied.