From: Alan Modra Date: Wed, 26 Feb 2003 05:21:26 +0000 (+0000) Subject: * tlink.c (scan_linker_output): Drop leading '.' from symbol names. X-Git-Tag: releases/gcc-3.4.0~8407 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ace9f18b76c1fc652608388360229b21023a445;p=thirdparty%2Fgcc.git * tlink.c (scan_linker_output): Drop leading '.' from symbol names. From-SVN: r63449 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4061f97131c..34cef0de2425 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-02-26 Alan Modra + + * tlink.c (scan_linker_output): Drop leading '.' from symbol names. + 2003-02-25 David Edelsohn * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine diff --git a/gcc/tlink.c b/gcc/tlink.c index 706bd6e65bd8..ded4337a2e8e 100644 --- a/gcc/tlink.c +++ b/gcc/tlink.c @@ -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. */