Op 16-11-2025 om 11:07 schreef DFP:
Thank you for taking a look and pointing me to the code in question.

It seems like when -run is used with -nostdlib, the tcc_run() function calls 
the _start symbol as-if it was a function. Which is not correct as per the x86 
64 ABI, not sure about x86 32 ABI. It works with the nostdlib check disabled 
because it seems to link in runmain.o, which actually calls the main() function 
of the compiled code, effectivelly negating a part of the -nostdlib flag.
I pushed a fix for this.

    Herman

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to