iPhone libgcc?

I was looking at Gruber's iPhone crash log... and came across:

0x31c38000 - 0x31c3ffff libgcc_s_v6.1.dylib UUID (C3CE0B41C9CA490EAEADA6D7EB997082) /usr/lib/libgcc_s_v6.1.dylib

Does that mean the iPhone's OS X 1.0 is shipping with GCC?

edit: Daniel clears things up in the comments.

Also interesting:

0x31db9000 - 0x31dbcfff liblockdown.dylib UUID (30A0EB0C05724FA487617B860E360B88) /usr/lib/liblockdown.dylib

Hmmmm...

Another:

0x3026d000 - 0x3032cfff Celestial UUID (15045615F83249D49720253EBDF9132A) /System/Library/Frameworks/Celestial.framework/Celestial

What is the Celestial framework?

  • Terry Simons
    WankleBook:/usr/lib terry$ find . | grep libgcc
    ./gcc/darwin/3.3/libgcc.a
    ./gcc/i686-apple-darwin8/4.0.1/libgcc.a
    ./gcc/i686-apple-darwin8/4.0.1/libgcc_eh.a
    ./gcc/i686-apple-darwin8/4.0.1/libgcc_static.a
    ./gcc/i686-apple-darwin8/4.0.1/x86_64/libgcc.a
    ./gcc/i686-apple-darwin8/4.0.1/x86_64/libgcc_eh.a
    ./gcc/powerpc-apple-darwin8/4.0.1/libgcc.a
    ./gcc/powerpc-apple-darwin8/4.0.1/libgcc_eh.a
    ./gcc/powerpc-apple-darwin8/4.0.1/libgcc_static.a
    ./gcc/powerpc-apple-darwin8/4.0.1/ppc64/libgcc.a
    ./gcc/powerpc-apple-darwin8/4.0.1/ppc64/libgcc_eh.a
    ./libgcc_s.1.dylib
    ./libgcc_s.10.4.dylib
    ./libgcc_s.10.5.dylib
    ./libgcc_s_ppc64.1.dylib
    ./libgcc_s_x86_64.1.dylib

    It's there. ;)
  • Daniel: I considered that but I wasn't sure, I ran a locate for libgcc_s and completely missed the /usr/lib/ results. I thought they were only in /Developer/SDKs/.

    Thanks for clearing that up!
  • This doesn't mean GCC is packaged on all the iPhones, which would be extremely unlikely. All code compiled with gcc requires libgcc_s.
blog comments powered by Disqus
Copyright © 2004 - 2010 M. Auayan. All rights reserved.