+2007-05-30 Kazu Hirata <kazu@codesourcery.com>
+
+ * m68k/cf-crt1.C, m68k/cf.sc, m68k/fido.sc, m68k/fido-crt0.S:
+ Replace __INIT_SECTION__ and __FINI_SECTION__ with _init and
+ _fini, respectively.
+
2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
* spu/syscalls.c: Change __send_to_ppe to return the result stored
void *__heap_limit;
extern void software_init_hook (void) __attribute__ ((weak));
extern void hardware_init_hook (void) __attribute__ ((weak));
-extern void __INIT_SECTION__ (void);
-extern void __FINI_SECTION__ (void);
+extern void _init (void);
+extern void _fini (void);
extern int main (int, char **, char **);
if (software_init_hook)
software_init_hook ();
- __INIT_SECTION__ ();
+ _init ();
/* I'm not sure how useful it is to have a fini_section in an
embedded system. */
- atexit (__FINI_SECTION__);
+ atexit (_fini);
ix = main (0, NULL, NULL);
exit (ix);
*(.eh_frame)
. = ALIGN(0x4);
- __INIT_SECTION__ = . ;
+ _init = . ;
LONG (0x4e560000) /* linkw %fp,#0 */
*(.init)
SHORT (0x4e5e) /* unlk %fp */
SHORT (0x4e75) /* rts */
. = ALIGN(0x4);
- __FINI_SECTION__ = . ;
+ _fini = . ;
LONG (0x4e560000) /* linkw %fp,#0 */
*(.fini)
SHORT (0x4e5e) /* unlk %fp */
movel IMM (SYM(__do_global_dtors)),(sp)
jsr SYM (atexit)
#endif
- movel IMM (__FINI_SECTION__),(sp)
+ movel IMM (_fini),(sp)
jsr SYM (atexit)
- jsr __INIT_SECTION__
+ jsr _init
/*
* call the main routine from the application to get it going.
*(.eh_frame)
. = ALIGN(0x2);
- __INIT_SECTION__ = . ;
+ _init = . ;
LONG (0x4e560000) /* linkw %fp,#0 */
*(.init)
SHORT (0x4e5e) /* unlk %fp */
SHORT (0x4e75) /* rts */
- __FINI_SECTION__ = . ;
+ _fini = . ;
LONG (0x4e560000) /* linkw %fp,#0 */
*(.fini)
SHORT (0x4e5e) /* unlk %fp */