/* Additions for compatibility with later runtime conventions especially for
sections containing strings. */
+DEF_SECTION (objc2_data_section, 0, ".section __DATA, __data", 1)
+
+DEF_SECTION (objc2_ivar_section, 0, ".section __DATA, __objc_ivar", 1)
+
DEF_SECTION (objc2_class_names_section, 0,
".section __TEXT, __objc_classname, cstring_literals", 1)
else if (!strncmp (p, "G2_META", 7) || !strncmp (p, "G2_CLAS", 7))
return darwin_sections[objc2_classdefs_section];
+ else if (!strncmp (p, "V2_PCOL", 7))
+ return ld_uses_coal_sects ? darwin_sections[data_coal_section]
+ : darwin_sections[objc2_data_section];
else if (!strncmp (p, "V2_MREF", 7))
return darwin_sections[objc2_message_refs_section];
else if (!strncmp (p, "V2_CLRF", 7))
else if (!strncmp (p, "V2_CSTR", 7))
return darwin_sections[objc2_constant_string_object_section];
+ else if (!strncmp (p, "V2_IVRF", 7))
+ return darwin_sections[objc2_ivar_section];
+
/* Not recognized, default. */
return base;
}
meta_class = get_identifier ("G2_CLAS");
meta_metaclass = get_identifier ("G2_META");
- meta_category =
- meta_protocol = meta_base;
+ meta_category = meta_base;
+ meta_protocol = get_identifier ("V2_PCOL");
meta_clac_vars =
meta_clai_vars = meta_base;