From 3cde47d015d7b74f25d61b19f1a5bd498aa4f6ea Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 30 May 2007 18:33:56 +0000 Subject: * 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. --- libgloss/m68k/cf-crt1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libgloss/m68k/cf-crt1.c') diff --git a/libgloss/m68k/cf-crt1.c b/libgloss/m68k/cf-crt1.c index a26acfd91..fb569675c 100644 --- a/libgloss/m68k/cf-crt1.c +++ b/libgloss/m68k/cf-crt1.c @@ -25,8 +25,8 @@ extern char __end[] __attribute__ ((aligned (4))); 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 **); @@ -48,11 +48,11 @@ void __start1 (void *heap_limit) 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); -- cgit v1.2.3