[PATCH] Fix handling of __start/__stop symbols

Davide Italiano dccitaliano@gmail.com
Sun May 31 20:22:00 GMT 2015


If the section contains 'Q' in the name, is_cident() returns false,
__start and __stop symbols for the section are not generated..
This is likely wrong. While at it, I changed a trailing whitespace in
the line immediately above the one containing the typo.
Sorry if I missed something in the patch submission, it's my first one
and I'm not still really familiar with the process.

Thanks,

--
Davide

 % git diff
diff --git a/gold/gold.h b/gold/gold.h
index ef95f53..45292b7 100644
--- a/gold/gold.h
+++ b/gold/gold.h
@@ -255,8 +255,8 @@ inline bool
 is_cident(const char* name)
 {
   return (name[strspn(name,
-                     ("0123456789"
-                      "ABCDEFGHIJKLMNOPWRSTUVWXYZ"
+                     ("0123456789"
+                      "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                       "abcdefghijklmnopqrstuvwxyz"
                       "_"))]
          == '\0');



More information about the Binutils mailing list