#include "i.h" extern int global; extern void hello(int); #if defined (__mips__) void tst_pc16(void) { printf("R_MIPS_PC16: 'b tst_pc16' \n"); return; } #endif #if defined (__sparc__) void tst_wdisp(void); void tst_wdisp(void) { printf("R_SPARC_DISP22: pass\n"); return; } #endif int test(int argc, char **argv) { global = 1; //inter-module data access printf("In test() global = %d\n", global); hello(2); //inter-module call return 0; } int my_main(int argc, char **argv) { exit(0); return 0; }