aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-01-28 08:27:38 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-01-28 08:27:38 +0100
commit253bad7993825fc4f2caa3613035b3bfa36821fa (patch)
tree989f8eea4d730af9b92bd77e2d8adc482413f0c9 /tccelf.c
parent900871ca8daf805e3c3a90634b07a9d56e4fd8bb (diff)
downloadtinycc-253bad7993825fc4f2caa3613035b3bfa36821fa.tar.gz
tinycc-253bad7993825fc4f2caa3613035b3bfa36821fa.tar.bz2
Added patch to detect and use the paths for 64bit libraries as
used by CentOS (affects X86_64 only).
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tccelf.c b/tccelf.c
index 2d884d2..f262ac5 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -1307,7 +1307,11 @@ static const char elf_interp[] = "/libexec/ld-elf.so.1";
#elif defined TCC_ARM_EABI
static const char elf_interp[] = "/lib/ld-linux.so.3";
#elif defined(TCC_TARGET_X86_64)
+# if defined(TCC_TARGET_X86_64_CENTOS)
+static const char elf_interp[] = "/lib64/ld-linux-x86-64.so.2";
+# else
static const char elf_interp[] = "/lib/ld-linux-x86-64.so.2";
+# endif /* TCC_TARGET_X86_64_CENTOS */
#elif defined(TCC_UCLIBC)
static const char elf_interp[] = "/lib/ld-uClibc.so.0";
#else