From 568b8075a4406ca8cb1f718e74fd0829cb7f0b90 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 25 Jun 2011 01:56:34 -0400 Subject: proper path searching for dynamic linker first, use $LD_LIBRARY_PATH unless suid. if that fails, read path from /etc/ld-musl-$ARCH.path and fallback to a builtin default. --- arch/x86_64/reloc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/x86_64') diff --git a/arch/x86_64/reloc.h b/arch/x86_64/reloc.h index 2db6115d..6642fdd4 100644 --- a/arch/x86_64/reloc.h +++ b/arch/x86_64/reloc.h @@ -2,6 +2,8 @@ #include #include +#define ETC_LDSO_PATH "/etc/ld-musl-x86_64.path" + #define IS_COPY(x) ((x)==R_X86_64_COPY) static inline void do_single_reloc(size_t *reloc_addr, int type, size_t sym_val, size_t sym_size, unsigned char *base_addr, size_t addend) -- cgit v1.2.1