UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
2,964 Views
Registered: ‎04-29-2009

Fail GCC in `_init' `_fini'

I'm try compiler the following

 

//*************************Begin*************************************// 


extern void (*__init_array_start [ ]) (void);
extern void (*__init_array_end [ ]) (void);
extern void (*__fini_array_start [ ]) (void);
extern void (*__fini_array_end [ ]) (void);

int main( int argc, char *argv[] )
{
  void *foo = *__preinit_array_start[0];
  foo = (void*)0;
  return 0;
}

extern void (*__preinit_array_start [ ]) (void);

 

 

//***************************End******************//

 

 but I obtain the following fails

 

glibc/csu/elf-init.c:95: undefined reference to `_init'
glibc/csu/elf-init.c:116: undefined reference to `_fini'

Please, help me!

 

 

 

0 Kudos