aboutsummaryrefslogtreecommitdiff
path: root/binutils/nm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-01-28 01:06:37 +0000
committerNick Clifton <nickc@redhat.com>2000-01-28 01:06:37 +0000
commitfad6fcbb0080ab85b3c911b5b8b59852b7a5bfc7 (patch)
tree7e6819127cafce8caa11e89b464ec24d20a5a894 /binutils/nm.c
parent58efb6c0fdeb4fa7ed1aace3bd1fa5068e5fcc9a (diff)
downloadgdb-fad6fcbb0080ab85b3c911b5b8b59852b7a5bfc7.zip
gdb-fad6fcbb0080ab85b3c911b5b8b59852b7a5bfc7.tar.gz
gdb-fad6fcbb0080ab85b3c911b5b8b59852b7a5bfc7.tar.bz2
Apply patch from Thomas de Lellis to allow nm to distinguish between weak
function symbols and weak data symbols.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r--binutils/nm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/nm.c b/binutils/nm.c
index 3e2ee12..ade3f7c 100644
--- a/binutils/nm.c
+++ b/binutils/nm.c
@@ -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);