diff options
Diffstat (limited to 'contrib/gcc/tlink.c')
-rw-r--r-- | contrib/gcc/tlink.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/gcc/tlink.c b/contrib/gcc/tlink.c index 9f058c9..882c1ab 100644 --- a/contrib/gcc/tlink.c +++ b/contrib/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); + } } } |