aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gold/ChangeLog15
-rw-r--r--gold/aarch64.cc4
-rw-r--r--gold/arm.cc2
-rw-r--r--gold/icf.cc4
-rw-r--r--gold/layout.cc2
-rw-r--r--gold/layout.h2
-rw-r--r--gold/mips.cc2
-rw-r--r--gold/output.h2
-rw-r--r--gold/plugin.h2
-rw-r--r--gold/script-sections.h2
-rw-r--r--gold/script.h2
-rw-r--r--gold/stringpool.h2
-rw-r--r--gold/tilegx.cc6
13 files changed, 31 insertions, 16 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index b0ea313..e2c7cc9 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,18 @@
+2016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
+
+ * aarch64.cc: Fix spelling in comments.
+ * arm.cc: Fix spelling in comments.
+ * icf.cc: Fix spelling in comments.
+ * layout.cc: Fix spelling in comments.
+ * layout.h: Fix spelling in comments.
+ * mips.cc: Fix spelling in comments.
+ * output.h: Fix spelling in comments.
+ * plugin.h: Fix spelling in comments.
+ * script-sections.h: Fix spelling in comments.
+ * script.h: Fix spelling in comments.
+ * stringpool.h: Fix spelling in comments.
+ * tilegx.cc: Fix spelling in comments.
+
2016-11-22 Cary Coutant <ccoutant@gmail.com>
PR gold/20346
diff --git a/gold/aarch64.cc b/gold/aarch64.cc
index 28e4d48..f38cd9a 100644
--- a/gold/aarch64.cc
+++ b/gold/aarch64.cc
@@ -156,7 +156,7 @@ public:
uint64_t imm = ((adrp >> 29) & mask2) | (((adrp >> 5) & mask19) << 2);
// Retrieve msb of 21-bit-signed imm for sign extension.
uint64_t msbt = (imm >> 20) & 1;
- // Real value is imm multipled by 4k. Value now has 33-bit information.
+ // Real value is imm multiplied by 4k. Value now has 33-bit information.
int64_t value = imm << 12;
// Sign extend to 64-bit by repeating msbt 31 (64-33) times and merge it
// with value.
@@ -1022,7 +1022,7 @@ public:
{ this->erratum_address_ = addr; }
// Comparator used to group Erratum_stubs in a set by (obj, shndx,
- // sh_offset). We do not include 'type' in the calculation, becuase there is
+ // sh_offset). We do not include 'type' in the calculation, because there is
// at most one stub type at (obj, shndx, sh_offset).
bool
operator<(const Erratum_stub<size, big_endian>& k) const
diff --git a/gold/arm.cc b/gold/arm.cc
index b51612c..e351ad9 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -11215,7 +11215,7 @@ Target_arm<big_endian>::attributes_accept_div(int arch, int profile,
{
case 0:
// Integer divide allowed if instruction contained in
- // archetecture.
+ // architecture.
if (arch == elfcpp::TAG_CPU_ARCH_V7 && (profile == 'R' || profile == 'M'))
return true;
else if (arch >= elfcpp::TAG_CPU_ARCH_V7E_M)
diff --git a/gold/icf.cc b/gold/icf.cc
index c09c746..e86436a 100644
--- a/gold/icf.cc
+++ b/gold/icf.cc
@@ -545,7 +545,7 @@ get_section_contents(bool first_iteration,
{
buffer.append("Contents = ");
buffer.append(reinterpret_cast<const char*>(contents), plen);
- // Store the section contents that dont change to avoid recomputing
+ // Store the section contents that don't change to avoid recomputing
// during the next call to this function.
(*section_contents)[section_num] = buffer;
}
@@ -670,7 +670,7 @@ match_sections(unsigned int iteration_num,
// Check section alignment here.
// The section with the larger alignment requirement
// should be kept. We assume alignment can only be
- // zero or postive integral powers of two.
+ // zero or positive integral powers of two.
uint64_t align_i = section_addraligns[i];
uint64_t align_kept = section_addraligns[kept_section];
if (align_i <= align_kept)
diff --git a/gold/layout.cc b/gold/layout.cc
index c9ea9eb..7223761 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -2585,7 +2585,7 @@ Layout::relaxation_loop_body(
return off;
}
-// Search the list of patterns and find the postion of the given section
+// Search the list of patterns and find the position of the given section
// name in the output section. If the section name matches a glob
// pattern and a non-glob name, then the non-glob position takes
// precedence. Return 0 if no match is found.
diff --git a/gold/layout.h b/gold/layout.h
index b2d699f..2263f0e 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -539,7 +539,7 @@ class Layout
// and ALIGN are the extra flags and alignment of the segment.
struct Unique_segment_info
{
- // Identifier for the segment. ELF segments dont have names. This
+ // Identifier for the segment. ELF segments don't have names. This
// is used as the name of the output section mapped to the segment.
const char* name;
// Additional segment flags.
diff --git a/gold/mips.cc b/gold/mips.cc
index 61b3513..2ed73b2 100644
--- a/gold/mips.cc
+++ b/gold/mips.cc
@@ -9742,7 +9742,7 @@ Target_mips<size, big_endian>::do_finalize_sections(Layout* layout,
d_val = elfcpp::RHF_NOTPOT;
odyn->add_constant(elfcpp::DT_MIPS_FLAGS, d_val);
- // Save layout for using when emiting custom dynamic tags.
+ // Save layout for using when emitting custom dynamic tags.
this->layout_ = layout;
// This member holds the base address of the segment.
diff --git a/gold/output.h b/gold/output.h
index 6b9186b..62386a6 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -2874,7 +2874,7 @@ class Output_data_dynamic : public Output_section_data
DYNAMIC_NUMBER = -1U,
// Section size.
DYNAMIC_SECTION_SIZE = -2U,
- // Symbol adress.
+ // Symbol address.
DYNAMIC_SYMBOL = -3U,
// String.
DYNAMIC_STRING = -4U,
diff --git a/gold/plugin.h b/gold/plugin.h
index 652ec58..0348eb7 100644
--- a/gold/plugin.h
+++ b/gold/plugin.h
@@ -378,7 +378,7 @@ class Plugin_manager
Mapfile* mapfile_;
Task_token* this_blocker_;
- // An extra directory to seach for the libraries passed by
+ // An extra directory to search for the libraries passed by
// add_input_library.
std::string extra_search_path_;
Lock* lock_;
diff --git a/gold/script-sections.h b/gold/script-sections.h
index 30fd96d..6e108fa 100644
--- a/gold/script-sections.h
+++ b/gold/script-sections.h
@@ -279,7 +279,7 @@ class Script_sections
size_t
total_header_size(Layout* layout) const;
- // Return the amount we have to subtract from the LMA to accomodate
+ // Return the amount we have to subtract from the LMA to accommodate
// headers of the given size.
uint64_t
header_size_adjustment(uint64_t lma, size_t sizeof_headers) const;
diff --git a/gold/script.h b/gold/script.h
index d81391b..d0cae11 100644
--- a/gold/script.h
+++ b/gold/script.h
@@ -538,7 +538,7 @@ class Script_options
// SECTIONS clause.
typedef std::vector<Symbol_assignment*> Symbol_assignments;
- // We keep a list of all assertions whcih occur outside of a
+ // We keep a list of all assertions which occur outside of a
// SECTIONS clause.
typedef std::vector<Script_assertion*> Assertions;
diff --git a/gold/stringpool.h b/gold/stringpool.h
index b7ac54f..a2b3ebd 100644
--- a/gold/stringpool.h
+++ b/gold/stringpool.h
@@ -118,7 +118,7 @@ class Chunked_vector
{
this->chunks_.resize((n + chunk_size - 1) / chunk_size);
// We need to call reserve() of all chunks since changing
- // this->chunks_ casues Element_vectors to be copied. The
+ // this->chunks_ causes Element_vectors to be copied. The
// reserved capacity of an Element_vector may be lost in copying.
for (size_t i = 0; i < this->chunks_.size(); ++i)
this->chunks_[i].reserve(chunk_size);
diff --git a/gold/tilegx.cc b/gold/tilegx.cc
index 03b1a50..7ab99ab 100644
--- a/gold/tilegx.cc
+++ b/gold/tilegx.cc
@@ -2527,7 +2527,7 @@ Target_tilegx<size, big_endian>::make_plt_section(Symbol_table* symtab,
this->got_section(symtab, layout);
// Ensure that .rela.dyn always appears before .rela.plt,
- // becuase on TILE-Gx, .rela.dyn needs to include .rela.plt
+ // because on TILE-Gx, .rela.dyn needs to include .rela.plt
// in it's range.
this->rela_dyn_section(layout);
@@ -3375,7 +3375,7 @@ Target_tilegx<size, big_endian>::Scan::local(Symbol_table* symtab,
// tilegx dynamic linker will not update local got entry,
// so, if we are generating a shared object, we need to add a
// dynamic relocation for this symbol's GOT entry to inform
- // dynamic linker plus the load base explictly.
+ // dynamic linker plus the load base explicitly.
if (parameters->options().output_is_position_independent())
{
unsigned int got_offset
@@ -3431,7 +3431,7 @@ Target_tilegx<size, big_endian>::Scan::local(Symbol_table* symtab,
//
// R_TILEGX_TLS_GD_CALL implicitly reference __tls_get_addr,
// while all other target, x86/arm/mips/powerpc/sparc
- // generate tls relocation against __tls_get_addr explictly,
+ // generate tls relocation against __tls_get_addr explicitly,
// so for TILEGX, we need the following hack.
if (opt_t == tls::TLSOPT_NONE) {
if (!target->tls_get_addr_sym_defined_) {