aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-02-27 17:28:47 +1030
committerAndreas K. Huettel <dilfridge@gentoo.org>2020-02-29 18:42:31 +0100
commit6200c4f27fe56aa1a9b1722003171cd0f3f1ae0e (patch)
tree3e18d55c4d1d91a5b3b5272b52d4e16c64ac9e62
parentAutomatic date update in version.in (diff)
downloadbinutils-gdb-6200c4f27fe56aa1a9b1722003171cd0f3f1ae0e.tar.gz
binutils-gdb-6200c4f27fe56aa1a9b1722003171cd0f3f1ae0e.tar.bz2
binutils-gdb-6200c4f27fe56aa1a9b1722003171cd0f3f1ae0e.zip
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.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/syms.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 51eda90af1..702416cd43 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/syms.c b/bfd/syms.c
index 128cf19145..8a8b74f3f9 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 '?';