diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-05-06 02:43:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-05-06 02:43:04 +0000 |
commit | 4e506c9aefe5b89970ae6894d05ad53c81af0d83 (patch) | |
tree | 2fac98df209e72eaba773cad2d7b90c99d9d9249 /mdk-stage1/dietlibc/libdl/_dl_rel.c | |
parent | 793707b39bf2e9df40a6d2d60b83b3061088ae9e (diff) | |
download | drakx-4e506c9aefe5b89970ae6894d05ad53c81af0d83.tar drakx-4e506c9aefe5b89970ae6894d05ad53c81af0d83.tar.gz drakx-4e506c9aefe5b89970ae6894d05ad53c81af0d83.tar.bz2 drakx-4e506c9aefe5b89970ae6894d05ad53c81af0d83.tar.xz drakx-4e506c9aefe5b89970ae6894d05ad53c81af0d83.zip |
use installed dietlibc, not our forked cvs version
Diffstat (limited to 'mdk-stage1/dietlibc/libdl/_dl_rel.c')
-rw-r--r-- | mdk-stage1/dietlibc/libdl/_dl_rel.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/mdk-stage1/dietlibc/libdl/_dl_rel.c b/mdk-stage1/dietlibc/libdl/_dl_rel.c deleted file mode 100644 index bc8717dc2..000000000 --- a/mdk-stage1/dietlibc/libdl/_dl_rel.c +++ /dev/null @@ -1,42 +0,0 @@ -#include <dlfcn.h> - -#include "_dl_int.h" - -static void exit_now(void) { -#ifdef DEBUG - pf(__func__": symbol not found\n"); -#endif - _exit(213); -} - -unsigned long do_rel(struct _dl_handle * tmp_dl, unsigned long off) -{ - Elf_Rel *tmp = ((void*)tmp_dl->plt_rel)+off; - - int sym=ELF_R_SYM(tmp->r_info); - - register unsigned long sym_val; - -#ifdef DEBUG - pf(__func__": "); ph((unsigned long)tmp_dl); pf(" "); ph(off); pf(" on "); - ph((long)tmp_dl->plt_rel); pf("\n"); - pf(__func__": @ "); ph((long)tmp->r_offset); pf(" with type "); - ph(ELF_R_TYPE(tmp->r_info)); pf(" and sym "); ph(sym); - pf(" symval "); ph(tmp_dl->dyn_sym_tab[sym].st_value); pf("\n"); -#endif - - /* modify GOT for REAL symbol */ - //sym_val=((unsigned long)(tmp_dl->mem_base+tmp_dl->dyn_sym_tab[sym].st_value)); - sym_val=(unsigned long)_dl_sym(tmp_dl,sym); - *((unsigned long*)(tmp_dl->mem_base+tmp->r_offset))=sym_val; - -#ifdef DEBUG - pf(__func__": sym "); ph(sym_val); pf("\n"); -#endif - /* JUMP (arg sysdep...) */ - if (sym_val) return sym_val; - /* can't find symbol -> die now */ - return (unsigned long)exit_now; -} - - |