From: Nathan Froyd Date: Thu, 25 Jun 2009 13:27:59 +0000 (+0000) Subject: Add missing CLIBABI variables __aeabi_stdin, __aeabi_stdout, __aeabi_stderr. X-Git-Tag: upstream/2.30~10627^2~610 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a6ba634c66e64aab5b070403d23fb22ab2bf6d9;p=external%2Fglibc.git Add missing CLIBABI variables __aeabi_stdin, __aeabi_stdout, __aeabi_stderr. * sysdeps/arm/eabi/aeabi_lcsts.c (__aeabi_stdin, __aeabi_stdout, __aeabi_stderr): New variables. (setup_aeabi_stdio): New function. Add it to .preinit_array. --- diff --git a/ChangeLog.arm b/ChangeLog.arm index dbc00f6..ebc4e30 100644 --- a/ChangeLog.arm +++ b/ChangeLog.arm @@ -1,3 +1,9 @@ +2009-06-25 Nathan Froyd + + * sysdeps/arm/eabi/aeabi_lcsts.c (__aeabi_stdin, __aeabi_stdout, + __aeabi_stderr): New variables. + (setup_aeabi_stdio): New function. Add it to .preinit_array. + 2009-06-24 Maxim Kuvyrkov Mark Mitchell Joseph Myers diff --git a/sysdeps/arm/eabi/aeabi_lcsts.c b/sysdeps/arm/eabi/aeabi_lcsts.c index 99c7985..0c620d4 100644 --- a/sysdeps/arm/eabi/aeabi_lcsts.c +++ b/sysdeps/arm/eabi/aeabi_lcsts.c @@ -81,4 +81,19 @@ eabi_constant (TMP_MAX); eabi_constant (FILENAME_MAX); eabi_constant (L_tmpnam); +FILE *__aeabi_stdin attribute_hidden; +FILE *__aeabi_stdout attribute_hidden; +FILE *__aeabi_stderr attribute_hidden; + +static void __attribute__ ((used)) +setup_aeabi_stdio (void) +{ + __aeabi_stdin = stdin; + __aeabi_stdout = stdout; + __aeabi_stderr = stderr; +} + +static void (*fp) (void) __attribute__ ((used, section (".preinit_array"))) + = setup_aeabi_stdio; + eabi_constant (CLOCKS_PER_SEC);