diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-18 19:29:44 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-18 19:29:44 -0400 |
commit | f389c4984a0fee80c5322e4d1ec3aa207e9b5c01 (patch) | |
tree | 4d46e10d0503cb6c07caf1fa679eae4dc30a4ab5 /arch/i386 | |
parent | 23815f88df6c45247f3755dc7857f4013264c04f (diff) | |
download | musl-f389c4984a0fee80c5322e4d1ec3aa207e9b5c01.tar.gz |
make the dynamic linker find its path file relative to its own location
prior to this change, using a non-default syslibdir was impractical on
systems where the ordinary library paths contain musl-incompatible
library files. the file containing search paths was always taken from
/etc, which would either correspond to a system-wide musl
installation, or fail to exist at all, resulting in searching of the
default library path.
the new search strategy is safe even for suid programs because the
pathname used comes from the PT_INTERP header of the program being
run, rather than any external input.
as part of this change, I have also begun differentiating the names of
arch variants that differ by endianness or floating point calling
convention. the corresponding changes in the build system and and gcc
wrapper script (to use an alternate dynamic linker name) for these
configurations have not yet been made.
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/reloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/reloc.h b/arch/i386/reloc.h index da0bc05d..3923b54b 100644 --- a/arch/i386/reloc.h +++ b/arch/i386/reloc.h @@ -1,7 +1,7 @@ #include <string.h> #include <elf.h> -#define ETC_LDSO_PATH "/etc/ld-musl-i386.path" +#define LDSO_ARCH "i386" #define IS_COPY(x) ((x)==R_386_COPY) #define IS_PLT(x) ((x)==R_386_JMP_SLOT) |