From: Jeffrey A Law Date: Tue, 12 Oct 1999 06:39:14 +0000 (+0000) Subject: tlink.c (scan_linker_output): Skip the initial underscore in a mangled name if approp... X-Git-Tag: releases/gcc-2.95.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca47ce66e65dd913476ffc0349d547b47d32d9cb;p=thirdparty%2Fgcc.git tlink.c (scan_linker_output): Skip the initial underscore in a mangled name if appropriate. Fri Sep 3 09:14:32 1999 Marc Espie * tlink.c (scan_linker_output): Skip the initial underscore in a mangled name if appropriate. From-SVN: r29915 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 27006485a78e..ad31a5ecec69 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ Mon Oct 11 23:35:19 1999 Jeffrey A Law (law@cygnus.com) + Fri Sep 3 09:14:32 1999 Marc Espie + * tlink.c (scan_linker_output): Skip the initial underscore in + a mangled name if appropriate. + Fri Aug 27 19:19:43 CEST 1999 Marc Espie * config/openbsd.h (SET_ASM_OP): Define. diff --git a/gcc/tlink.c b/gcc/tlink.c index 9f058c9b2848..882c1ab2a75e 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); + } } }