View Single Post
Old 04-19-2012, 08:46 PM   #6
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Version 1.1 of tcc works great on the K3, but on the K5(touch) it has a problem parsing one of the new load library scripts.
Code:
# cat /usr/lib/libc.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-littlearm)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux.so.3 ) )
Part of the problem is that although the /usr/lib/libc.so loader script included in newer kindles says to load libc_nonshared.a, that file does not actually exist on the kindle, so when you comiple with tcc on a newer kindle, it fails with this error message:
tcc: file '/usr/lib/libc_nonshared.a' not found

So, I just solved this problem by bind-mounting a stripped-down libc.so script file that tcc knows how to parse. I added the script to the /mnt/us/tcc directory, and I added the mount and umount statements to the tccmake script. It works great.

I packaged that up into a v1.3 download package, available at the first post in this thread. This new version should work on all the kindles.


Last edited by geekmaster; 04-20-2012 at 01:10 AM.
geekmaster is offline   Reply With Quote