/* nm.c -- Describe symbol table of a rel file.
- Copyright 1991, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
+ Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 1999
+ Free Software Foundation, Inc.
This file is part of GNU Binutils.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
#include "bfd.h"
#include "progress.h"
int c;
int retval;
+#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
+ setlocale (LC_MESSAGES, "");
+#endif
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
program_name = *argv;
xmalloc_set_program_name (program_name);
#ifdef HAVE_SBRK
if (show_stats)
{
- extern char **environ;
char *lim = (char *) sbrk (0);
fprintf (stderr, _("%s: data size %ld\n"), program_name,
{
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
{
- printf (_("No symbols in \"%s\".\n"), bfd_get_filename (abfd));
+ fprintf (stderr, _("%s: no symbols\n"), bfd_get_filename (abfd));
return;
}
}
static void
print_archive_filename_sysv (filename)
- char *filename;
+ char *filename ATTRIBUTE_UNUSED;
{
}
static void
print_archive_filename_posix (filename)
- char *filename;
+ char *filename ATTRIBUTE_UNUSED;
{
}
\f
static void
print_archive_member_bsd (archive, filename)
- char *archive;
+ char *archive ATTRIBUTE_UNUSED;
CONST char *filename;
{
if (!filename_per_symbol)
symbol_info *info;
bfd *abfd;
{
- if (info->type == 'U')
+ if (info->type == 'U' || info->type == 'w')
{
printf ("%*s",
#ifdef BFD64
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);
{
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);