From: Ken Raeburn Date: Fri, 22 Apr 1994 20:39:01 +0000 (+0000) Subject: * config/obj-coff.c (obj_symbol_new_hook): Don't need to strip underscores, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=988238d38052803c0b516b3f5da2301c1aa0acc2;p=binutils-gdb.git * config/obj-coff.c (obj_symbol_new_hook): Don't need to strip underscores, since symbol_new will already have done it. * config/obj-coffbfd.c (obj_symbol_new_hook): Ditto. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 810faf13af2..6b85b68f14b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -3,6 +3,10 @@ Fri Apr 22 15:17:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com) * listing.c (list_symbol_table): Don't print register symbols as undefined. + * config/obj-coff.c (obj_symbol_new_hook): Don't need to strip + underscores, since symbol_new will already have done it. + * config/obj-coffbfd.c (obj_symbol_new_hook): Ditto. + Thu Apr 21 15:50:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * config/tc-mips.c (append_insn): Permit branches to be switched diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index a6ba063bd95..f80fe66558c 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -301,16 +301,6 @@ obj_symbol_new_hook (symbolP) S_SET_STORAGE_CLASS (symbolP, 0); S_SET_NUMBER_AUXILIARY (symbolP, 0); -#ifdef STRIP_UNDERSCORE - /* Remove leading underscore at the beginning of the symbol. - This is to be compatible with the standard librairies. */ - if (*S_GET_NAME (symbolP) == '_') - { - underscore = 1; - S_SET_NAME (symbolP, S_GET_NAME (symbolP) + 1); - } -#endif /* STRIP_UNDERSCORE */ - if (S_IS_STRING (symbolP)) SF_SET_STRING (symbolP); if (!underscore && S_IS_LOCAL (symbolP)) diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c index b09368ca1c3..46c2302fd12 100644 --- a/gas/config/obj-coffbfd.c +++ b/gas/config/obj-coffbfd.c @@ -697,17 +697,6 @@ obj_symbol_new_hook (symbolP) /* Auxiliary entries */ memset ((char *) &symbolP->sy_symbol.ost_auxent[0], 0, AUXESZ); -#ifdef STRIP_UNDERSCORE - /* Remove leading underscore at the beginning of the symbol. - * This is to be compatible with the standard librairies. - */ - if (*S_GET_NAME (symbolP) == '_') - { - underscore = 1; - S_SET_NAME (symbolP, S_GET_NAME (symbolP) + 1); - } /* strip underscore */ -#endif /* STRIP_UNDERSCORE */ - if (S_IS_STRING (symbolP)) SF_SET_STRING (symbolP); if (!underscore && S_IS_LOCAL (symbolP))