This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Add some missing xcoff support
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 7 Jul 2017 01:09:50 -0000
- Subject: [binutils-gdb] Add some missing xcoff support
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=532cc31305f46a979ddc4f98866b67e4d3a9d45c
commit 532cc31305f46a979ddc4f98866b67e4d3a9d45c
Author: Alan Modra <amodra@gmail.com>
Date: Fri Jul 7 10:31:27 2017 +0930
Add some missing xcoff support
* coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT.
Diff:
---
bfd/ChangeLog | 4 ++++
bfd/coffcode.h | 7 ++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4a3a3ac..1254e7e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
2017-07-07 Alan Modra <amodra@gmail.com>
+ * coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT.
+
+2017-07-07 Alan Modra <amodra@gmail.com>
+
* bfd.c (_doprnt): Replace "L" with "ll" when printing bfd_vma
as long long. Move code replacing "ll" with "I64", and simplify.
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;