Exactly what CPU are you using?
1) How exactly did you build GCC?
Where did you get <stdio.h> from - when you built arm-elf-gcc?
Did you borrow it from /usr/include - That is a bad thing!
2) Generally to build GCC you do it in two stages.
Stage 1 - You build a plain C only compiler.
Important config options:
--with-cpu=<THE_EXACT_ARM_YOU_ARE_USING>
--with-newlib
--disable-nls
--enable-threads=no
--enable-symvers=gnu
--enable-__cxa_atexit
--enable-languages=c
--disable-shared
Use "make all-gcc" then "make install-gcc"
Anything more - has mental issues...