diff options
author | peter <peter@FreeBSD.org> | 2004-03-21 01:21:26 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-03-21 01:21:26 +0000 |
commit | ccd389b7a3813a60939dfe53407367fc91ef3df8 (patch) | |
tree | ded17068c1bf0dea014f27d5b6b5ccda995841f0 /libexec/rtld-elf/rtld.h | |
parent | 14202432d8f8324b424c7568b2a142567d110dfb (diff) | |
download | FreeBSD-src-ccd389b7a3813a60939dfe53407367fc91ef3df8.zip FreeBSD-src-ccd389b7a3813a60939dfe53407367fc91ef3df8.tar.gz |
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.
Diffstat (limited to 'libexec/rtld-elf/rtld.h')
-rw-r--r-- | libexec/rtld-elf/rtld.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h index 86df99d..0a8dfe1 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))) |