------- Comment #23 from developer at sandoe-acoustics dot co dot uk  
2010-02-14 23:57 -------
(In reply to comment #22)
> There are no modifications visible in the assembly.  But there is magic:
> 
>         .objc_cls_refs
>         .align 2
> L_OBJC_CLASS_REFERENCES_0:
>         .long   L_OBJC_CLASS_NAME_0
> 
> what is .objc_cls_refs?

DEF_SECTION (objc_cls_refs_section, SECTION_MERGE, ".objc_cls_refs", 1)

If I've got this correct - this is implementing the constraint that class names
are global in the NeXT runtime [at least at release 0/1].  I assume that the
section merge arranges that all references to class FOO point to the same and
unique class definition. 

> > Well, obviously some Objective-C maintainer needs to chime in and explain
> things.

indeed.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43061

Reply via email to