Skip to content

Instantly share code, notes, and snippets.

@comex
Created January 16, 2023 01:34
Show Gist options
  • Save comex/7aefb0bde77271fdceecd26a2b17613c to your computer and use it in GitHub Desktop.
Save comex/7aefb0bde77271fdceecd26a2b17613c to your computer and use it in GitHub Desktop.
@implementation Foo
-(void)bar {}
@end
int main() {}
/tmp % clang -o foo foo.m -lobjc -w
/tmp % strip -N foo
/tmp % llvm-nm-mp-15 foo
0000000100003f80 t <redacted LC_MAIN>
0000000100003f6c t <redacted function 0>
/tmp % xcrun llvm-nm foo
0000000100003f6c t -[Foo bar]
0000000100008098 S _OBJC_CLASS_$_Foo
00000001000080c0 S _OBJC_METACLASS_$_Foo
0000000100000000 T __mh_execute_header
0000000100003f80 T _main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment