summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/egcs/gcc')
-rw-r--r--gnu/egcs/gcc/tlink.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/tlink.c b/gnu/egcs/gcc/tlink.c
index 9f058c9b284..882c1ab2a75 100644
--- a/gnu/egcs/gcc/tlink.c
+++ b/gnu/egcs/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);
+ }
}
}