1999-09-06 Donn Terry <donn@interix.com>
authorIan Lance Taylor <ian@airs.com>
Mon, 6 Sep 1999 18:47:31 +0000 (18:47 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 6 Sep 1999 18:47:31 +0000 (18:47 +0000)
* nm.c (print_symbol_info_bsd): Check for 'w' as well as 'U'.
(print_symbol_info_sysv): Likewise.
(print_symbol_info_posix): Likewise.

binutils/ChangeLog
binutils/nm.c

index 97f180642fcb4d47d1888e8731a1bd461858dbd5..a7c9abb1d9ceab80b0e5b28674e5c97a1289fb24 100644 (file)
@@ -1,3 +1,9 @@
+1999-09-06  Donn Terry  <donn@interix.com>
+
+       * nm.c (print_symbol_info_bsd): Check for 'w' as well as 'U'.
+       (print_symbol_info_sysv): Likewise.
+       (print_symbol_info_posix): Likewise.
+
 1999-09-04  Steve Chamberlain  <sac@pobox.com>
 
        * readelf.c: Include "elf/pj.h".
index 884f0b8105bf2569fbbd0a6e8e798da48a5ec66d..3e2ee12f492d1e71553813043fb2c6c2df1054f9 100644 (file)
@@ -1427,7 +1427,7 @@ print_symbol_info_bsd (info, abfd)
      symbol_info *info;
      bfd *abfd;
 {
-  if (info->type == 'U')
+  if (info->type == 'U' || info->type == 'w')
     {
       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')
+  if (info->type == 'U' || info->type == 'w')
     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')
+  if (info->type == 'U' || info->type == 'w')
     printf ("        ");
   else
     print_value (info->value);