Tell gcc about the nonstandard sections.

This commit is contained in:
Ulrich Drepper 2007-06-17 18:02:40 +00:00
parent b26e274db2
commit c4243ff43f
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ call_initialize_minimal (void)
}
SECTION (".init");
extern void _init (void);
extern void __attribute__ ((section (".init"))) _init (void);
void
_init (void)
{
@ -93,7 +93,7 @@ asm ("\n/*@_init_EPILOG_ENDS*/");
asm ("\n/*@_fini_PROLOG_BEGINS*/");
SECTION (".fini");
extern void _fini (void);
extern void __attribute__ ((section (".fini"))) _fini (void);
void
_fini (void)
{

View File

@ -81,7 +81,7 @@ call_gmon_start(void)
}
SECTION (".init");
extern void _init (void);
extern void __attribute__ ((section (".init"))) _init (void);
void
_init (void)
{
@ -107,7 +107,7 @@ asm ("\n/*@_init_EPILOG_ENDS*/");
asm ("\n/*@_fini_PROLOG_BEGINS*/");
SECTION (".fini");
extern void _fini (void);
extern void __attribute__ ((section (".fini"))) _fini (void);
void
_fini (void)
{