1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <stdlib.h> static int foo_ten() { return 10; } // This foo is a "resolver" function that return the actual address of "foo" void* foo() { __asm__(".symbol_resolver _foo"); // magic until we have compiler support return &foo_ten; }