http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48094
--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> 2011-03-14 09:40:07 UTC --- (In reply to comment #3) > (In reply to comment #2) > > > (b) the second needs more checking - the tests pass on darwin9 (and darwin10 > > with 3.2.5 - last time I tried) > > it looks like the .lazy_reference to . objc_class_name_myRootObject is getting > dropped somewhere; > in this instance, because the code is self-contained, it works OK (when ld > doesn't barf). > > ... in other cases in the test-suite, the only external object is usually > "Object" which is in libobjc and therefore it also works. > > I have an idea about getting rid of the TARGET_ASM method to make these > references and use a real variable to carry the information (just make it > zero-sized, and use that + a meta-data tag to emit the efficient asm). I was > intending to make that a stage-1 investigation -- but perhaps it might warrant > trying sooner. this is now PR48109 -- and a separate issue, please use PR48094 to track the image_info issue.