[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r3066 - in /trunk/libc: ChangeLog.eglibc sysdeps/generic/initfini.c



Author: dan
Date: Mon Aug  6 06:39:40 2007
New Revision: 3066

Log:
	Backport:
	2007-06-17  Andreas Schwab  <schwab@xxxxxxx>
	* sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.

Modified:
    trunk/libc/ChangeLog.eglibc
    trunk/libc/sysdeps/generic/initfini.c

Modified: trunk/libc/ChangeLog.eglibc
==============================================================================
--- trunk/libc/ChangeLog.eglibc (original)
+++ trunk/libc/ChangeLog.eglibc Mon Aug  6 06:39:40 2007
@@ -1,3 +1,9 @@
+2007-08-05  Daniel Jacobowitz  <dan@xxxxxxxxxxxxxxxx>
+
+	Backport:
+	2007-06-17  Andreas Schwab  <schwab@xxxxxxx>
+	* sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
+
 2007-07-28  Jim Blandy  <jimb@xxxxxxxxxxxxxxxx>
 
 	Implement the OPTION_EGLIBC_SUNRPC option group.

Modified: trunk/libc/sysdeps/generic/initfini.c
==============================================================================
--- trunk/libc/sysdeps/generic/initfini.c (original)
+++ trunk/libc/sysdeps/generic/initfini.c Mon Aug  6 06:39:40 2007
@@ -81,7 +81,7 @@
 }
 
 SECTION (".init");
-extern void _init (void);
+extern void __attribute__ ((section (".init"))) _init (void);
 void
 _init (void)
 {
@@ -107,7 +107,7 @@
 asm ("\n/*@_fini_PROLOG_BEGINS*/");
 
 SECTION (".fini");
-extern void _fini (void);
+extern void __attribute__ ((section (".fini"))) _fini (void);
 void
 _fini (void)
 {