Skip to content

Commit

Permalink
OpenBSD: elfinterp location looks the same for all architectures. i38…
Browse files Browse the repository at this point in the history
…6 WIP
  • Loading branch information
Christian Jullien committed Jan 10, 2021
1 parent 0e74965 commit ef7c438
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tcc.h
Expand Up @@ -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)
Expand All @@ -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"
Expand Down

0 comments on commit ef7c438

Please sign in to comment.