aboutsummaryrefslogtreecommitdiff
path: root/include/coff/xcoff.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/coff/xcoff.h')
-rw-r--r--include/coff/xcoff.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/coff/xcoff.h b/include/coff/xcoff.h
index 3c3c8e9..4f9f7ed 100644
--- a/include/coff/xcoff.h
+++ b/include/coff/xcoff.h
@@ -214,6 +214,8 @@ struct internal_ldsym
#define L_ENTRY (0x20)
/* Exported symbol. */
#define L_EXPORT (0x10)
+/* Weak symbol. */
+#define L_WEAK (0x08)
/* The ldrel structure. This is used to represent a reloc in the
.loader section. */
@@ -644,4 +646,8 @@ struct xcoff_ar_hdr_big
#define arch_xhdr_big(bfd) \
((struct xcoff_ar_hdr_big *) arch_eltdata (bfd)->arch_header)
+/* True if symbols of class CLASS are external. */
+#define EXTERN_SYM_P(CLASS) \
+ ((CLASS) == C_EXT || (CLASS) == C_AIX_WEAKEXT)
+
#endif /* _INTERNAL_XCOFF_H */