]> sourceware.org Git - glibc.git/commitdiff
Tell gcc about the nonstandard sections.
authorUlrich Drepper <drepper@redhat.com>
Sun, 17 Jun 2007 18:02:40 +0000 (18:02 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 17 Jun 2007 18:02:40 +0000 (18:02 +0000)
nptl/sysdeps/pthread/pt-initfini.c
sysdeps/generic/initfini.c

index 1e35edd3eb6cfeb7e83a72b2a7c2e79b0736ee61..9c00dc0b7dc058e4fa6f751afb048e678bd5ebb7 100644 (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)
 {
index 2b8412a42815c15dc2b27999ccb11f7008a3b556..d5ef778367f567bd4814ac956794ddc17095f141 100644 (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)
 {
This page took 0.042631 seconds and 5 git commands to generate.