I loop mounted another 5.1.0 image somebody sent me, and it appears that this is a library loader script problem just like for libc.
Try replacing your tccmake script contents with this:
Code:
#!/bin/sh
[[ -f /usr/lib/libc.so ]]&& mount -o bind /mnt/us/tcc/tcc.libc.so /usr/lib/libc.so
[[ -f /usr/lib/libpthread.so ]]&& mount -o bind /mnt/us/tcc/tcc.libpthread.so /usr/lib/libpthread.so
tcc -I/mnt/us/tcc/include -o $1 $2 $3 $4 $5 $6 $7 $8 $9 $1.c
[[ -f /usr/lib/libc.so ]]&& umount /usr/lib/libc.so
[[ -f /usr/lib/libpthread.so ]]&& umount /usr/lib/libpthread.so
Does that work for you?
EDIT: Bind mounts like I show above are MUCH safer than making changes to root that could break an OTA update (possibly bricking the kindle). Please UNDO the changes you made and try my script. It is the same problem as libc, so the fix shown above WILL work. Although the changes you made are fine for testing (if you allow for undoing them like knc1 suggested with the backup copy of the old file). Please undo your changes and do it the right way as I showed, to prevent bricking your kindle. Thanks. Also, I want confirmation that the CORRECT (bind mount) fix that I provided works as expected.