From 32de61e81a64c8bb2cd23e3476f00433692f8e59 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 25 Jun 2011 22:36:21 -0400 Subject: fix some symbol resolution issues in dynamic linker 1. search was wrongly beginning with lib itself rather than dso head 2. inconsistent resolution of function pointers for functions in plt --- arch/i386/reloc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/i386') diff --git a/arch/i386/reloc.h b/arch/i386/reloc.h index 3ca9d11d..490113a0 100644 --- a/arch/i386/reloc.h +++ b/arch/i386/reloc.h @@ -4,6 +4,7 @@ #define ETC_LDSO_PATH "/etc/ld-musl-i386.path" #define IS_COPY(x) ((x)==R_386_COPY) +#define IS_PLT(x) ((x)==R_386_JMP_SLOT) 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.3-70-g09d2