aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-02-26 05:21:26 +0000
committerAlan Modra <amodra@gcc.gnu.org>2003-02-26 15:51:26 +1030
commit8ace9f18b76c1fc652608388360229b21023a445 (patch)
tree88cedaa214fe664de2f9cbfef97d076a81ebfb37 /gcc
parent9a29ee42bfa264c086905c74837d6399b4ea2ebf (diff)
downloadgcc-8ace9f18b76c1fc652608388360229b21023a445.zip
gcc-8ace9f18b76c1fc652608388360229b21023a445.tar.gz
gcc-8ace9f18b76c1fc652608388360229b21023a445.tar.bz2
* tlink.c (scan_linker_output): Drop leading '.' from symbol names.
From-SVN: r63449
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tlink.c12
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a4061f9..34cef0d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tlink.c b/gcc/tlink.c
index 706bd6e..ded4337 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. */