This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Clean up script-sections.cc
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Wed, 24 Jun 2009 12:01:30 -0700
- Subject: gold patch committed: Clean up script-sections.cc
I committed this patch to gold to clean up a couple of minor issues in
script-sections.cc: a local variable in a block shadowed a parameter,
and a comment had a typo.
Ian
2009-06-24 Ian Lance Taylor <iant@google.com>
* script-sections.cc (Output_section_definition::
set_section_addresses): Rename shadowing local load_address to
laddr.
Index: script-sections.cc
===================================================================
RCS file: /cvs/src/src/gold/script-sections.cc,v
retrieving revision 1.19
diff -u -r1.19 script-sections.cc
--- script-sections.cc 23 Jun 2009 06:07:50 -0000 1.19
+++ script-sections.cc 24 Jun 2009 18:59:59 -0000
@@ -1863,12 +1863,12 @@
else
{
Output_section* dummy;
- uint64_t load_address =
+ uint64_t laddr =
this->load_address_->eval_with_dot(symtab, layout, true, *dot_value,
this->output_section_, &dummy);
if (this->output_section_ != NULL)
- this->output_section_->set_load_address(load_address);
- this->evaluated_load_address_ = load_address;
+ this->output_section_->set_load_address(laddr);
+ this->evaluated_load_address_ = laddr;
}
uint64_t subalign;
@@ -3076,7 +3076,7 @@
// Add a program header. The PHDRS clause is syntactically distinct
// from the SECTIONS clause, but we implement it with the SECTIONS
-// support becauase PHDRS is useless if there is no SECTIONS clause.
+// support because PHDRS is useless if there is no SECTIONS clause.
void
Script_sections::add_phdr(const char* name, size_t namelen, unsigned int type,