]> git.saurik.com Git - apple/dyld.git/blob - testing/kernel-cache-tests/vtable-patching-metaclass-alias/foo.c
dyld-832.7.1.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / vtable-patching-metaclass-alias / foo.c
1
2 // This is the symbol xnu now exports
3 extern int symbol_from_xnu() __asm("__ZN15OSMetaClassBase8DispatchE5IORPC");
4
5 // And this is the old symbol it needs to implicitly alias to the above symbol
6 extern int symbol_from_xnu_implicit_alias() __asm("__ZN15OSMetaClassBase25_RESERVEDOSMetaClassBase3Ev");
7
8 int foo() {
9 return symbol_from_xnu() + symbol_from_xnu_implicit_alias();
10 }