History

Fix ELF interpreter of i386 musl target

Theodore Dubois committed 7 years ago

Commit 82abfd71 parent 63f69c21 file · +5 −1Browse files

Unified · Split

tcc.h+5−1
@@ -254,7 +254,11 @@ extern long double strtold (const char *__nptr, char **__endptr); · 253 unmodified lines
254254 # endif
255255 # elif !defined(TCC_ARM_EABI)
256256 # if defined(TCC_MUSL)
257−# define CONFIG_TCC_ELFINTERP "/lib/ld-musl-arm.so.1"
257+# if defined(TCC_TARGET_I386)
258+# define CONFIG_TCC_ELFINTERP "/lib/ld-musl-i386.so.1"
259+# else
260+# define CONFIG_TCC_ELFINTERP "/lib/ld-musl-arm.so.1"
261+# endif
258262 # else
259263 # define CONFIG_TCC_ELFINTERP "/lib/ld-linux.so.2"
260264 # endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t