What happens if you patch:

tcc.h:#     define CONFIG_TCC_ELFINTERP "/lib/ld-musl-arm.so.1"

Can you then correctly link and execute the generated executable?

-----Original Message-----
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On 
Behalf Of raingloom
Sent: Tuesday, February 22, 2022 00:45
To: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] wrong interpreter on armhf

Hi! I recently tried tcc on a postmarketOS (Alpine) device. It seems to
generate the correct binary for hello world and even -run worked, but
the resulting binary can't be run directly.
It expects /lib/ld-musl-arm.so.1, but only /lib/ld-musl-armhf.so.1
exists.

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to