• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* this is part of the test_relocs.c test, which is used to check that
2  * the relocations generated in a shared object are properly handled
3  * by the Bionic dynamic linker
4  */
5 
6 struct foo { int first, second; };
7 struct foo Foo = {1, 2};
8 
9 int* FooPtr[] = { &Foo.first, &Foo.second };
10 
func1(void)11 int func1( void )
12 {
13     return *FooPtr[0];
14 }
15 
func2(void)16 int  func2( void )
17 {
18     return *FooPtr[1];
19 }
20