blob: af4cf6f8684440328b2c80f5950fe98b3e1038da [file] [log] [blame]
/* this is part of the test_relocs.c test, which is used to check that
* the relocations generated in a shared object are properly handled
* by the Bionic dynamic linker
*/
struct foo { int first, second; };
struct foo Foo = {1, 2};
int* FooPtr[] = { &Foo.first, &Foo.second };
int func1( void )
{
return *FooPtr[0];
}
int func2( void )
{
return *FooPtr[1];
}