From 40bfb9762747f8336b17c70a0173d10200fa62eb Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 27 Feb 2020 17:28:47 +1030 Subject: [PATCH] Re: PR24511, nm should not mark symbols in .init_array as "t" PR 24511 * syms.c (bfd_decode_symclass): Reverse order of coff_section_type and decode_section_type calls. --- bfd/syms.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bfd/syms.c b/bfd/syms.c index 128cf19..8a8b74f 100644 --- a/bfd/syms.c +++ b/bfd/syms.c @@ -705,9 +705,9 @@ bfd_decode_symclass (asymbol *symbol) c = 'a'; else if (symbol->section) { - c = decode_section_type (symbol->section); + c = coff_section_type (symbol->section->name); if (c == '?') - c = coff_section_type (symbol->section->name); + c = decode_section_type (symbol->section); } else return '?'; -- 1.8.3.1