diff options
author | Thomas Schwinge <thomas@schwinge.name> | 2012-04-02 22:26:43 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2012-04-03 00:31:38 +0200 |
commit | 8d462eb9cd9782d70039fe8d636488f367362f79 (patch) | |
tree | f942fa146efcff4ec06904c111ca0b6628d2d36b /csu | |
parent | 19c78622202e837f145eb26d2b56fb32d2340c4d (diff) |
Call __ctype_init in early glibc startup.
This adds the bits missing from fd5bdc0924e0cfd1688b632068c1b26f3b0c88da.
(cherry picked from commit 228c019e6336d6da448715a1c5fcca9771827f61)
Conflicts:
ChangeLog
Diffstat (limited to 'csu')
-rw-r--r-- | csu/init-first.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/csu/init-first.c b/csu/init-first.c index fa21274c73..59fd477579 100644 --- a/csu/init-first.c +++ b/csu/init-first.c @@ -1,5 +1,5 @@ /* Initialization code run first thing by the ELF startup code. Stub version. - Copyright (C) 1995, 1997, 1998, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1995-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -17,6 +17,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include <ctype.h> #include <unistd.h> #include <sys/types.h> @@ -56,4 +57,7 @@ void __libc_init_first /* This is a hack to make the special getopt in GNU libc working. */ __getopt_clean_environment (envp); #endif + + /* Initialize ctype data. */ + __ctype_init (); } |