2001-08-25 H.J. Lu <hjl@gnu.org>
* nm.c (print_width): New. (display_rel_file): Set `print_width' according to bfd_sprintf_vma. (print_symbol_info_bsd): Check `print_width' instead of BFD64.
This commit is contained in:
parent
917583ad77
commit
62a5a82d70
|
@ -1,3 +1,10 @@
|
||||||
|
2001-08-25 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* nm.c (print_width): New.
|
||||||
|
(display_rel_file): Set `print_width' according to
|
||||||
|
bfd_sprintf_vma.
|
||||||
|
(print_symbol_info_bsd): Check `print_width' instead of BFD64.
|
||||||
|
|
||||||
2001-08-24 Alexandre Oliva <aoliva@redhat.com>
|
2001-08-24 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* objcopy.c (use_alt_mach_code): New variable.
|
* objcopy.c (use_alt_mach_code): New variable.
|
||||||
|
|
|
@ -245,6 +245,11 @@ static char value_format[] = "%016lx";
|
||||||
/* We don't use value_format for this case. */
|
/* We don't use value_format for this case. */
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef BFD64
|
||||||
|
static int print_width = 16;
|
||||||
|
#else
|
||||||
|
static int print_width = 8;
|
||||||
|
#endif
|
||||||
static int print_radix = 16;
|
static int print_radix = 16;
|
||||||
/* Print formats for printing stab info. */
|
/* Print formats for printing stab info. */
|
||||||
static char other_format[] = "%02x";
|
static char other_format[] = "%02x";
|
||||||
|
@ -939,6 +944,7 @@ display_rel_file (abfd, archive_bfd)
|
||||||
PTR minisyms;
|
PTR minisyms;
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
struct size_sym *symsizes;
|
struct size_sym *symsizes;
|
||||||
|
char buf[30];
|
||||||
|
|
||||||
if (! dynamic)
|
if (! dynamic)
|
||||||
{
|
{
|
||||||
|
@ -959,6 +965,9 @@ display_rel_file (abfd, archive_bfd)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bfd_sprintf_vma (abfd, buf, (bfd_vma) -1);
|
||||||
|
print_width = strlen (buf);
|
||||||
|
|
||||||
/* Discard the symbols we don't want to print.
|
/* Discard the symbols we don't want to print.
|
||||||
It's OK to do this in place; we'll free the storage anyway
|
It's OK to do this in place; we'll free the storage anyway
|
||||||
(after printing). */
|
(after printing). */
|
||||||
|
@ -1475,9 +1484,8 @@ print_symbol_info_bsd (info, abfd)
|
||||||
{
|
{
|
||||||
if (bfd_is_undefined_symclass (info->type))
|
if (bfd_is_undefined_symclass (info->type))
|
||||||
{
|
{
|
||||||
#ifdef BFD64
|
if (print_width == 16)
|
||||||
printf (" ");
|
printf (" ");
|
||||||
#endif
|
|
||||||
printf (" ");
|
printf (" ");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue