[klibc] Register parameters are unsafe with gcc 3.3.2

Alexander E. Patrakov patrakov at ums.usu.ru
Sat Jun 5 18:32:43 PDT 2004

I have the following toolchain:

$ ld --version
GNU ld version 20040415
$ gcc --version
gcc (GCC) 3.3.2

I attempted to build klibc with this toolchain. It builds without 
errors, but the included "ash" shell does not function properly.


read cmdline </proc/cmdline
echo $cmdline

The first command prints a message:

cannot open /proc/cmdline: error 14

Other shell redirections don't work either. When I comment out the 
following line in klibc/klibc/arch/i386/MCONFIG:

# REGPARM_OPT := -mregparm=3 -DREGPARM

and rebuild klibc, everything works. Please take some action against 
this error, e.g. update the README file.

Alexander E. Patrakov

More information about the klibc mailing list