From 82abfd75f35d407a1495797243c8cdd195848955 Mon Sep 17 00:00:00 2001 From: Theodore Dubois Date: Sat, 22 Dec 2018 04:26:27 +0000 Subject: [PATCH] Fix ELF interpreter of i386 musl target --- tcc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tcc.h b/tcc.h index f79cbaf..cc85291 100644 --- a/tcc.h +++ b/tcc.h @@ -254,7 +254,11 @@ extern long double strtold (const char *__nptr, char **__endptr); # endif # elif !defined(TCC_ARM_EABI) # if defined(TCC_MUSL) -# define CONFIG_TCC_ELFINTERP "/lib/ld-musl-arm.so.1" +# if defined(TCC_TARGET_I386) +# define CONFIG_TCC_ELFINTERP "/lib/ld-musl-i386.so.1" +# else +# define CONFIG_TCC_ELFINTERP "/lib/ld-musl-arm.so.1" +# endif # else # define CONFIG_TCC_ELFINTERP "/lib/ld-linux.so.2" # endif