binutils: display file auxentries

This commit is contained in:
Wolfgang Thaller 2019-01-09 20:12:26 +01:00
parent 641a8e2c77
commit ee5a3b13ca

View File

@ -2407,6 +2407,21 @@ coff_print_aux (bfd *abfd ATTRIBUTE_UNUSED,
BFD_ASSERT (symbol->is_sym);
BFD_ASSERT (! aux->is_sym);
#ifdef RS6000COFF_C
if (symbol->u.syment.n_sclass == C_FILE)
{
if (aux->u.auxent.x_file.x_n.x_zeroes)
{
fprintf (file, "File \"%s\"", aux->u.auxent.x_file.x_fname);
}
else
{
const char * string_table = obj_coff_strings(abfd);
fprintf (file, "File \"%s\"", string_table + aux->u.auxent.x_file.x_n.x_offset);
}
return TRUE;
}
if (CSECT_SYM_P (symbol->u.syment.n_sclass)
&& indaux + 1 == symbol->u.syment.n_numaux)
{