[committed] Fix some typos/grammar-os.

Eric Christopher echristo@gmail.com
Fri Jun 16 01:52:00 GMT 2017


Small fix to some comments in gold/aarch64.cc.

Committed thusly:

echristo@athyra ~/s/b/gold> git push origin master
To ssh://sourceware.org/git/binutils-gdb.git
   00fd923b24..c092b67bf0  master -> master

Thanks!

-eric
-------------- next part --------------
commit c092b67bf0adb0fc1e179612b161e19938929e66
Author: Eric Christopher <echristo@gmail.com>
Date:   Thu Jun 15 18:46:17 2017 -0700

    2017-06-15  Eric Christopher  <echristo@gmail.com>
    
            * aarch64.cc: Fix a few typos and grammar-os.

diff --git a/gold/ChangeLog b/gold/ChangeLog
index a0aefdd05d..0b751b571b 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,7 @@
+2017-06-15  Eric Christopher  <echristo@gmail.com>
+
+	* aarch64.cc: Fix a few typos and grammar-os.
+
 2017-06-15  Jiong Wang  <jiong.wang@arm.com>
 
 	* aarch64.cc (Insn_utilities::is_mrs_tpidr_el0): New method.
diff --git a/gold/aarch64.cc b/gold/aarch64.cc
index 7309ded676..33f7abe6b7 100644
--- a/gold/aarch64.cc
+++ b/gold/aarch64.cc
@@ -930,7 +930,7 @@ private:
 
 // Erratum stub class. An erratum stub differs from a reloc stub in that for
 // each erratum occurrence, we generate an erratum stub. We never share erratum
-// stubs, whereas for reloc stubs, different branches insns share a single reloc
+// stubs, whereas for reloc stubs, different branch insns share a single reloc
 // stub as long as the branch targets are the same. (More to the point, reloc
 // stubs can be shared because they're used to reach a specific target, whereas
 // erratum stubs branch back to the original control flow.)
@@ -3774,7 +3774,8 @@ Target_aarch64<size, big_endian>::scan_reloc_for_stub(
 	}
       else if (gsym->is_undefined())
 	{
-	  // There is no need to generate a stub symbol is undefined.
+          // There is no need to generate a stub symbol if the original symbol
+          // is undefined.
           gold_debug(DEBUG_TARGET,
                      "stub: not creating a stub for undefined symbol %s in file %s",
                      gsym->name(), aarch64_relobj->name().c_str());
@@ -7736,8 +7737,8 @@ Target_aarch64<size, big_endian>::Relocate::tls_ld_to_le(
     {
       // Ideally we should give up gd_to_le relaxation and do gd access.
       // However the gd_to_le relaxation decision has been made early
-      // in the scan stage, where we did not allocate any GOT entry for
-      // this symbol. Therefore we have to exit and report error now.
+      // in the scan stage, where we did not allocate a GOT entry for
+      // this symbol. Therefore we have to exit and report an error now.
       gold_error(_("unexpected reloc insn sequence while relaxing "
 		   "tls gd to le for reloc %u."), r_type);
       return aarch64_reloc_funcs::STATUS_BAD_RELOC;


More information about the Binutils mailing list