From ee5a3b13cab00147fb3f29323022679c69f1a2f6 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Wed, 9 Jan 2019 20:12:26 +0100 Subject: [PATCH] binutils: display file auxentries --- binutils/bfd/coffcode.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/binutils/bfd/coffcode.h b/binutils/bfd/coffcode.h index 11c22ab67e..16dc46f559 100644 --- a/binutils/bfd/coffcode.h +++ b/binutils/bfd/coffcode.h @@ -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) {