From c905e45dc0e7ad2da0748371ba8921ca48134a01 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 21 Mar 2004 01:21:26 +0000 Subject: Add initial support for compiling a special 32 bit version of ld-elf.so.1 on 64 bit systems. Most of this involves using alternate paths, environment variables and diagnostic messages. The build glue is seperate. --- libexec/rtld-elf/rtld.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libexec/rtld-elf/rtld.h') diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h index 86df99dfbc23..0a8dfe16f515 100644 --- a/libexec/rtld-elf/rtld.h +++ b/libexec/rtld-elf/rtld.h @@ -39,9 +39,21 @@ #include "rtld_lock.h" #include "rtld_machdep.h" +#ifdef COMPAT_32BIT +#undef STANDARD_LIBRARY_PATH +#undef _PATH_ELF_HINTS +#define _PATH_ELF_HINTS "/var/run/ld-elf32.so.hints" +/* For running 32 bit binaries */ +#define STANDARD_LIBRARY_PATH "/lib32:/usr/lib32" +#define LD_ "LD_32_" +#endif + #ifndef STANDARD_LIBRARY_PATH #define STANDARD_LIBRARY_PATH "/lib:/usr/lib" #endif +#ifndef LD_ +#define LD_ "LD_" +#endif #define NEW(type) ((type *) xmalloc(sizeof(type))) #define CNEW(type) ((type *) xcalloc(sizeof(type))) -- cgit v1.3