aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-07-07 10:31:27 +0930
committerAlan Modra <amodra@gmail.com>2017-07-07 10:35:31 +0930
commit532cc31305f46a979ddc4f98866b67e4d3a9d45c (patch)
treea458ea5c23365b78a54cf9a4f225c2c03368786f /bfd/coffcode.h
parentaff6079bc770cb97f29f0bf15467f8c04bd1383c (diff)
downloadgdb-532cc31305f46a979ddc4f98866b67e4d3a9d45c.zip
gdb-532cc31305f46a979ddc4f98866b67e4d3a9d45c.tar.gz
gdb-532cc31305f46a979ddc4f98866b67e4d3a9d45c.tar.bz2
Add some missing xcoff support
* coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h7
1 files changed, 6 insertions, 1 deletions
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;