From cd4f3d962d3d6f28bef49f00caac223092c6b4b6 Mon Sep 17 00:00:00 2001 From: seyko Date: Tue, 3 Mar 2015 17:05:44 +0300 Subject: [PATCH] x86_64-win-tcc elfinterp: a bug correction ./x86_64-win-tcc -vv Before elfinterp: /lib64/ld-linux-x86-64.so.2 After elfinterp: - This output is identical to the output of the i386-win-tcc --- tcc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tcc.h b/tcc.h index 308cae7..a8e66a0 100644 --- a/tcc.h +++ b/tcc.h @@ -265,14 +265,14 @@ # define CONFIG_TCC_ELFINTERP "/usr/libexec/ld-elf.so.2" # elif defined __GNU__ # define CONFIG_TCC_ELFINTERP "/lib/ld.so" +# elif defined(TCC_TARGET_PE) +# define CONFIG_TCC_ELFINTERP "-" +# elif defined(TCC_UCLIBC) +# define CONFIG_TCC_ELFINTERP "/lib/ld-uClibc.so.0" /* is there a uClibc for x86_64 ? */ # elif defined TCC_TARGET_ARM64 # define CONFIG_TCC_ELFINTERP "/lib/ld-linux-aarch64.so.1" # elif defined(TCC_TARGET_X86_64) # define CONFIG_TCC_ELFINTERP "/lib64/ld-linux-x86-64.so.2" -# elif defined(TCC_UCLIBC) -# define CONFIG_TCC_ELFINTERP "/lib/ld-uClibc.so.0" -# elif defined(TCC_TARGET_PE) -# define CONFIG_TCC_ELFINTERP "-" # elif !defined(TCC_ARM_EABI) # define CONFIG_TCC_ELFINTERP "/lib/ld-linux.so.2" # endif