From: Alan Modra Date: Thu, 27 Feb 2020 06:58:47 +0000 (+1030) Subject: Re: PR24511, nm should not mark symbols in .init_array as "t" X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40bfb9762747f8336b17c70a0173d10200fa62eb;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 51eda90af19..702416cd43b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2020-02-27 Alan Modra + + PR 24511 + * syms.c (bfd_decode_symclass): Reverse order of coff_section_type + and decode_section_type calls. + 2020-02-25 H.J. Lu PR binutils/25584 diff --git a/bfd/syms.c b/bfd/syms.c index 128cf191453..8a8b74f3f92 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 '?';