From ef7c4388e7105014867d35a251046f1efe43c2dd Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Sun, 10 Jan 2021 07:23:03 +0100 Subject: [PATCH] OpenBSD: elfinterp location looks the same for all architectures. i386 WIP --- tcc.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tcc.h b/tcc.h index 72c8c4969..0a85e8e5b 100644 --- a/tcc.h +++ b/tcc.h @@ -287,6 +287,8 @@ extern long double strtold (const char *__nptr, char **__endptr); # define CONFIG_TCC_ELFINTERP "/usr/libexec/ld-elf.so.2" # elif TARGETOS_NetBSD # define CONFIG_TCC_ELFINTERP "/usr/libexec/ld.elf_so" +# elif TARGETOS_OpenBSD +# define CONFIG_TCC_ELFINTERP "/usr/libexec/ld.so" # elif defined __GNU__ # define CONFIG_TCC_ELFINTERP "/lib/ld.so" # elif defined(TCC_TARGET_PE) @@ -303,11 +305,7 @@ extern long double strtold (const char *__nptr, char **__endptr); # if defined(TCC_MUSL) # define CONFIG_TCC_ELFINTERP "/lib/ld-musl-x86_64.so.1" # else -# if TARGETOS_OpenBSD -# define CONFIG_TCC_ELFINTERP "/usr/libexec/ld.so" -# else -# define CONFIG_TCC_ELFINTERP "/lib64/ld-linux-x86-64.so.2" -# endif +# define CONFIG_TCC_ELFINTERP "/lib64/ld-linux-x86-64.so.2" # endif # elif defined(TCC_TARGET_RISCV64) # define CONFIG_TCC_ELFINTERP "/lib/ld-linux-riscv64-lp64d.so.1"