_rtld_bind() is not used on MIPS. Should probably move it to MD code.
This commit is contained in:
parent
fa0cb6c277
commit
4b55da479c
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: mips_reloc.c,v 1.23 2002/09/12 22:56:30 mycroft Exp $ */
|
/* $NetBSD: mips_reloc.c,v 1.24 2002/09/13 03:09:38 mycroft Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 1997 Michael L. Hitch <mhitch@montana.edu>
|
* Copyright 1997 Michael L. Hitch <mhitch@montana.edu>
|
||||||
|
@ -297,28 +297,3 @@ _rtld_relocate_plt_lazy(obj)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
_rtld_relocate_plt_object(obj, rela, addrp)
|
|
||||||
const Obj_Entry *obj;
|
|
||||||
const Elf_Rela *rela;
|
|
||||||
caddr_t *addrp;
|
|
||||||
{
|
|
||||||
Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset);
|
|
||||||
Elf_Addr new_value;
|
|
||||||
|
|
||||||
/* Fully resolve procedure addresses now */
|
|
||||||
|
|
||||||
if (obj->isdynamic) {
|
|
||||||
/* Just relocate the GOT slots pointing into the PLT */
|
|
||||||
new_value = *where + (Elf_Addr)(obj->relocbase);
|
|
||||||
rdbg(("fixup !main in %s --> %p", obj->path, (void *)*where));
|
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (*where != new_value)
|
|
||||||
*where = new_value;
|
|
||||||
|
|
||||||
*addrp = (caddr_t)new_value;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: reloc.c,v 1.66 2002/09/12 22:56:28 mycroft Exp $ */
|
/* $NetBSD: reloc.c,v 1.67 2002/09/13 03:09:38 mycroft Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 1996 John D. Polstra.
|
* Copyright 1996 John D. Polstra.
|
||||||
|
@ -142,6 +142,7 @@ _rtld_do_copy_relocations(dstobj)
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(__mips__)
|
||||||
caddr_t
|
caddr_t
|
||||||
_rtld_bind(obj, reloff)
|
_rtld_bind(obj, reloff)
|
||||||
const Obj_Entry *obj;
|
const Obj_Entry *obj;
|
||||||
|
@ -191,6 +192,7 @@ _rtld_bind(obj, reloff)
|
||||||
|
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Relocate newly-loaded shared objects. The argument is a pointer to
|
* Relocate newly-loaded shared objects. The argument is a pointer to
|
||||||
|
|
Loading…
Reference in New Issue