Skip to content

Commit

Permalink
Tell gcc about the nonstandard sections.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jun 17, 2007
1 parent b26e274 commit c4243ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nptl/sysdeps/pthread/pt-initfini.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ call_initialize_minimal (void)
}

SECTION (".init");
extern void _init (void);
extern void __attribute__ ((section (".init"))) _init (void);
void
_init (void)
{
Expand All @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/generic/initfini.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ call_gmon_start(void)
}

SECTION (".init");
extern void _init (void);
extern void __attribute__ ((section (".init"))) _init (void);
void
_init (void)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit c4243ff

Please sign in to comment.