* core.c (core_sym_class): Treat weak symbols as text symbols.

From Dean Gaudet <dgaudet@arctic.org>.
This commit is contained in:
Ian Lance Taylor 1997-12-29 11:20:37 +00:00
parent 5a08c6a17e
commit a3da1edc5e
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Dec 29 14:17:08 1997 Ian Lance Taylor <ian@cygnus.com>
* core.c (core_sym_class): Treat weak symbols as text symbols.
From Dean Gaudet <dgaudet@arctic.org>.
Wed Sep 24 11:35:43 1997 Ian Lance Taylor <ian@cygnus.com>
* aclocal.m4: Rebuild with new libtool.

View File

@ -231,6 +231,13 @@ DEFUN (core_sym_class, (sym), asymbol * sym)
return i; /* it's a global symbol */
}
if (i == 'W')
{
/* Treat weak symbols as text symbols. FIXME: a weak symbol may
also be a data symbol. */
return 'T';
}
if (i != 't')
{
/* not a static text symbol */