View Single Post
Old 07-27-2025, 02:04 AM   #2
smbgaiden
Member
smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!smbgaiden rocks like Gibraltar!
 
Posts: 10
Karma: 100000
Join Date: Jul 2025
Device: none
Update for any future readers. Step 2 is working now. Compiling helloworld from amd64 linux via tcc arm eabihf compiler produces an exe that does not crash.


The problem was 7e. That caused intermixed thumb and arm code. TCC is arm only and likely doesn't fix up calls to and from thumb, so either stuff gets misaligned, some registers get neglected, or the thumb arm switch doesn't get toggled. I don't know, but i do know the solution is to avoid arm thumb intermixed. aso i dumped crt1.o from the aforementioned thread package and made a crt1.s to replace the stuff that was added on 7e and removed the 7e stuff.

next step is to use kox to cross compile this cross compiling tcc to run on armhf.
smbgaiden is offline   Reply With Quote