]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tlink.c (scan_linker_output): Drop leading '.' from symbol names.
authorAlan Modra <amodra@bigpond.net.au>
Wed, 26 Feb 2003 05:21:26 +0000 (05:21 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 26 Feb 2003 05:21:26 +0000 (15:51 +1030)
From-SVN: r63449

gcc/ChangeLog
gcc/tlink.c

index a4061f97131cdd702c31e3f345a0d92d48d3b631..34cef0de242558bbca97cb8a3c0526eefb7a5bf0 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
+
 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
index 706bd6e65bd87d5d7088eed1fd8152576be84442..ded4337a2e8e2d6f8cb4bad041c5aa55968026d8 100644 (file)
@@ -633,10 +633,16 @@ scan_linker_output (fname)
          else if (p = strchr (oldq, '"'), p)
            p++, q = strchr (p, '"');
 
-         /* Don't let the strstr's below see the demangled name; we
-            might get spurious matches.  */
          if (p)
-           p[-1] = '\0';
+           {
+             /* Don't let the strstr's below see the demangled name; we
+                might get spurious matches.  */
+             p[-1] = '\0';
+
+             /* powerpc64-linux references .foo when calling function foo.  */
+             if (*p == '.')
+               p++;
+           }
 
          /* We need to check for certain error keywords here, or we would
             mistakenly use GNU ld's "In function `foo':" message.  */