blob: 812f033a072525bf97b90699a5af9f9078073d16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#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;
}
|