summaryrefslogtreecommitdiff
path: root/gcc/tlink.c
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-26 05:21:26 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-26 05:21:26 +0000
commit0beb646cdca1e291ecb42da839841e8128614dfd (patch)
tree88cedaa214fe664de2f9cbfef97d076a81ebfb37 /gcc/tlink.c
parentddca8899f019001fba8ab055d788e3fa83952bb5 (diff)
downloadgcc-0beb646cdca1e291ecb42da839841e8128614dfd.tar.gz
* tlink.c (scan_linker_output): Drop leading '.' from symbol names.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63449 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tlink.c')
-rw-r--r--gcc/tlink.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/tlink.c b/gcc/tlink.c
index 706bd6e65bd..ded4337a2e8 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. */