| #include "globals.h" | |
| extern int Func1(int x); | |
| // Verify local relocations for the function pointer happen before the | |
| // R_ARM_COPY of this object to the main.nexe | |
| struct OBJ g_OBJS[2] = { | |
| { 7, Func1 }, | |
| { 11, Func1 }, | |
| }; | |
| extern int puts(const char *); | |
| char* hello_string = "Hello World.\n"; | |
| void do_hello() { | |
| puts(hello_string); | |
| } | |
| int Func1(int x) { | |
| return x; | |
| } |