mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-13 00:30:07 +00:00
Tell gcc about the nonstandard sections.
This commit is contained in:
parent
b26e274db2
commit
c4243ff43f
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user