diff options
author | Nick Clifton <nickc@redhat.com> | 2000-01-28 01:06:37 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-01-28 01:06:37 +0000 |
commit | fad6fcbb0080ab85b3c911b5b8b59852b7a5bfc7 (patch) | |
tree | 7e6819127cafce8caa11e89b464ec24d20a5a894 /binutils/nm.c | |
parent | 58efb6c0fdeb4fa7ed1aace3bd1fa5068e5fcc9a (diff) | |
download | gdb-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.c | 6 |
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); |