summaryrefslogtreecommitdiff
path: root/gcc/tlink.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-03 16:14:54 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-03 16:14:54 +0000
commit01e2144f0abde071d54fb00dac1081c39099bf9d (patch)
tree7f168269ad80ce4375f1bc31e2c17d087b76a9f5 /gcc/tlink.c
parent208d09ab90da55b2c52ed0f437de66eb7b783b00 (diff)
downloadgcc-01e2144f0abde071d54fb00dac1081c39099bf9d.tar.gz
* tlink.c (scan_linker_output): Skip the initial underscore in
a mangled name if appropriate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29083 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tlink.c')
-rw-r--r--gcc/tlink.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tlink.c b/gcc/tlink.c
index e0972705042..55c66dca1b8 100644
--- a/gcc/tlink.c
+++ b/gcc/tlink.c
@@ -654,7 +654,11 @@ scan_linker_output (fname)
if (dem)
sym = symbol_hash_lookup (dem->mangled, false);
else
- sym = symbol_hash_lookup (p, false);
+ {
+ if (*p == '_' && prepends_underscore)
+ ++p;
+ sym = symbol_hash_lookup (p, false);
+ }
}
}