int __sym(int x) { return x+1; } extern int sym(int x) __attribute__((weak,alias("__sym"))); int same(int x) { return sym(x)*3; }