]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: PR24511, nm should not mark symbols in .init_array as "t"
authorAlan Modra <amodra@gmail.com>
Thu, 27 Feb 2020 06:58:47 +0000 (17:28 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 27 Feb 2020 21:50:39 +0000 (08:20 +1030)
PR 24511
* syms.c (bfd_decode_symclass): Reverse order of coff_section_type
and decode_section_type calls.

bfd/ChangeLog
bfd/syms.c

index 51eda90af19ed4bc847d57f073499b719ebd7f2d..702416cd43bd3c35455f1f28ddc6c1a3e222a235 100644 (file)
@@ -1,3 +1,9 @@
+2020-02-27  Alan Modra  <amodra@gmail.com>
+
+       PR 24511
+       * syms.c (bfd_decode_symclass): Reverse order of coff_section_type
+       and decode_section_type calls.
+
 2020-02-25  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR binutils/25584
index 128cf191453c116732339c0461fcda19c6421a30..8a8b74f3f927b1f4374b15f0373b1ef7c9023195 100644 (file)
@@ -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 '?';