Apply patch from Thomas de Lellis to allow nm to distinguish between weak

function symbols and weak data symbols.
This commit is contained in:
Nick Clifton
2000-01-28 01:06:37 +00:00
parent 58efb6c0fd
commit fad6fcbb00
6 changed files with 86 additions and 13 deletions

View File

@@ -1427,7 +1427,7 @@ print_symbol_info_bsd (info, abfd)
symbol_info *info;
bfd *abfd;
{
if (info->type == 'U' || info->type == 'w')
if (bfd_is_undefined_symclass (info->type))
{
printf ("%*s",
#ifdef BFD64
@@ -1458,7 +1458,7 @@ print_symbol_info_sysv (info, abfd)
bfd *abfd;
{
print_symname ("%-20s|", info->name, abfd); /* Name */
if (info->type == 'U' || info->type == 'w')
if (bfd_is_undefined_symclass (info->type))
printf (" "); /* Value */
else
print_value (info->value);
@@ -1481,7 +1481,7 @@ print_symbol_info_posix (info, abfd)
{
print_symname ("%s ", info->name, abfd);
printf ("%c ", info->type);
if (info->type == 'U' || info->type == 'w')
if (bfd_is_undefined_symclass (info->type))
printf (" ");
else
print_value (info->value);