This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Add some missing xcoff support
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 7 Jul 2017 10:39:13 +0930
- Subject: Add some missing xcoff support
- Authentication-results: sourceware.org; auth=none
This was necessary to objdump the file produced by AIX in pr21700.
* coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT.
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index d6388d7..ef82772 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4811,6 +4811,7 @@ coff_slurp_symbol_table (bfd * abfd)
#endif
#ifdef RS6000COFF_C
case C_HIDEXT:
+ case C_AIX_WEAKEXT:
#endif
#ifdef C_SYSTEM
case C_SYSTEM: /* System Wide variable. */
@@ -4883,7 +4884,11 @@ coff_slurp_symbol_table (bfd * abfd)
&& src->u.syment.n_scnum > 0)
dst->symbol.flags = BSF_LOCAL;
#endif
- if (src->u.syment.n_sclass == C_WEAKEXT)
+ if (src->u.syment.n_sclass == C_WEAKEXT
+#ifdef RS6000COFF_C
+ || src->u.syment.n_sclass == C_AIX_WEAKEXT
+#endif
+ )
dst->symbol.flags |= BSF_WEAK;
break;
--
Alan Modra
Australia Development Lab, IBM