[GOLD] Fix handling of __start/__stop symbols
authorDavide Italiano <dccitaliano@gmail.com>
Sun, 31 May 2015 20:22:11 +0000 (13:22 -0700)
committerAlan Modra <amodra@gmail.com>
Thu, 11 Jun 2015 05:06:05 +0000 (14:36 +0930)
If the section contains 'Q' in the name, is_cident() returns false,
__start and __stop symbols for the section are not generated..

* gold.h (is_cident): Correct typo.

gold/ChangeLog
gold/gold.h

index 97a03b4b8a0c055e5d63b56776bf4deb35261848..94c0088adebad25103313034067496779966aeeb 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-11  Davide Italiano  <dccitaliano@gmail.com>
+
+       * gold.h (is_cident): Correct typo.
+
 2015-06-10  Han Shen  <shenhan@google.com>
        Patch for erratum-843419 (2 of 2 - fix erratum occurrences).
 
index 9dfafc897f18133622948728b7168a275951baa9..2179dae599b140edbf860ef29fee952c31607b54 100644 (file)
@@ -255,8 +255,8 @@ inline bool
 is_cident(const char* name)
 {
   return (name[strspn(name,
-                     ("0123456789"
-                      "ABCDEFGHIJKLMNOPWRSTUVWXYZ"
+                     ("0123456789"
+                      "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                       "abcdefghijklmnopqrstuvwxyz"
                       "_"))]
          == '\0');