Displaying 1 result from an estimated 1 matches for "_init_prolog_ends".
2010 Feb 21
3
[LLVMdev] how to build eglibc using llvm-gcc without unsupported -fno-toplevel-reorder
...s wrong parts into crt*.s.
Exmple initfini.c fragment:
asm (".section " ".init" );
extern void __attribute__ ((section (".init"))) _init (void);
void
_init (void)
{
call_gmon_start ();
asm ("ALIGN");
asm("END_INIT");
asm ("\n/*@_init_PROLOG_ENDS*/");
asm ("\n/*@_init_EPILOG_BEGINS*/");
asm (".section " ".init" );
}
asm ("END_INIT");
asm ("\n/*@_init_EPILOG_ENDS*/");
asm ("\n/*@_fini_PROLOG_BEGINS*/");
Regards,
Sergey Yakoushkin
-------------- next part -------------...