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

[commits] r8602 - in /fsf/trunk/ports: ChangeLog.arm sysdeps/arm/eabi/aeabi_lcsts.c



Author: eglibc
Date: Thu Jun 25 06:46:05 2009
New Revision: 8602

Log:
Import glibc-ports-mainline for 2009-06-25

Modified:
    fsf/trunk/ports/ChangeLog.arm
    fsf/trunk/ports/sysdeps/arm/eabi/aeabi_lcsts.c

Modified: fsf/trunk/ports/ChangeLog.arm
==============================================================================
--- fsf/trunk/ports/ChangeLog.arm (original)
+++ fsf/trunk/ports/ChangeLog.arm Thu Jun 25 06:46:05 2009
@@ -1,3 +1,9 @@
+2009-06-25  Nathan Froyd  <froydnj@xxxxxxxxxxxxxxxx>
+
+	* 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  <maxim@xxxxxxxxxxxxxxxx>
             Mark Mitchell  <mark@xxxxxxxxxxxxxxxx>
             Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>

Modified: fsf/trunk/ports/sysdeps/arm/eabi/aeabi_lcsts.c
==============================================================================
--- fsf/trunk/ports/sysdeps/arm/eabi/aeabi_lcsts.c (original)
+++ fsf/trunk/ports/sysdeps/arm/eabi/aeabi_lcsts.c Thu Jun 25 06:46:05 2009
@@ -81,4 +81,19 @@
 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);