[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] PowerPC -m64 fix for trunk GCC
- To: patches@xxxxxxxxxx
- Subject: [patches] PowerPC -m64 fix for trunk GCC
- From: Daniel Jacobowitz <dan@xxxxxxxxxxxxxxxx>
- Date: Mon, 6 Aug 2007 07:40:20 -0400
OK to commit? Fixes a bazillion testsuite failures when glibc is
built with -m64 and GCC trunk.
--
Daniel Jacobowitz
CodeSourcery
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.
Index: sysdeps/generic/initfini.c
===================================================================
--- sysdeps/generic/initfini.c (revision 2969)
+++ sysdeps/generic/initfini.c (working copy)
@@ -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,10 +107,10 @@ 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)
{