Commit 9c5b50b3 by Jason Merrill

tlink.c (scan_linker_output): Skip the initial underscore in a mangled name if appropriate.

	* tlink.c (scan_linker_output): Skip the initial underscore in
	a mangled name if appropriate.

From-SVN: r29083
parent eb898ce4
...@@ -654,9 +654,13 @@ scan_linker_output (fname) ...@@ -654,9 +654,13 @@ scan_linker_output (fname)
if (dem) if (dem)
sym = symbol_hash_lookup (dem->mangled, false); sym = symbol_hash_lookup (dem->mangled, false);
else else
{
if (*p == '_' && prepends_underscore)
++p;
sym = symbol_hash_lookup (p, false); sym = symbol_hash_lookup (p, false);
} }
} }
}
if (sym && sym->tweaked) if (sym && sym->tweaked)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment