From c4243ff43f097b4ac4cd1b81c59a5bbb33558194 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 17 Jun 2007 18:02:40 +0000 Subject: [PATCH] Tell gcc about the nonstandard sections. --- nptl/sysdeps/pthread/pt-initfini.c | 4 ++-- sysdeps/generic/initfini.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nptl/sysdeps/pthread/pt-initfini.c b/nptl/sysdeps/pthread/pt-initfini.c index 1e35edd3eb..9c00dc0b7d 100644 --- a/nptl/sysdeps/pthread/pt-initfini.c +++ b/nptl/sysdeps/pthread/pt-initfini.c @@ -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) { diff --git a/sysdeps/generic/initfini.c b/sysdeps/generic/initfini.c index 2b8412a428..d5ef778367 100644 --- a/sysdeps/generic/initfini.c +++ b/sysdeps/generic/initfini.c @@ -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) {