2011-11-22 Tristan Gingold <gingold@adacore.com>

* mach-o.c (bfd_mach_o_print_symbol): Display COM for common
	symbols.  Print section name in brackets.
This commit is contained in:
Tristan Gingold 2011-11-22 10:47:50 +00:00
parent a3769e0c79
commit e0ce100545
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-11-22 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_print_symbol): Display COM for common
symbols. Print section name in brackets.
2011-11-21 Andreas Tobler <andreast@fgznet.ch>
* config.bfd: Add vectors for powerpc and powerpc64-freebsd.

View File

@ -547,7 +547,10 @@ bfd_mach_o_print_symbol (bfd *abfd,
switch (asym->n_type & BFD_MACH_O_N_TYPE)
{
case BFD_MACH_O_N_UNDF:
name = "UND";
if (symbol->value == 0)
name = "UND";
else
name = "COM";
break;
case BFD_MACH_O_N_ABS:
name = "ABS";
@ -571,7 +574,7 @@ bfd_mach_o_print_symbol (bfd *abfd,
asym->n_type, name, asym->n_sect, asym->n_desc);
if ((asym->n_type & BFD_MACH_O_N_STAB) == 0
&& (asym->n_type & BFD_MACH_O_N_TYPE) == BFD_MACH_O_N_SECT)
fprintf (file, " %-5s", symbol->section->name);
fprintf (file, " [%s]", symbol->section->name);
fprintf (file, " %s", symbol->name);
}
}