From a43ce960b5ed9fd906330f9336280541a15e5bd2 Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Mon, 7 Mar 2011 20:32:46 +0000 Subject: [PATCH] Remove dead code that snuck in from the 32-bit PowerPC version of this file. The error being checked for does not exist on 64-bit systems. --- libexec/rtld-elf/powerpc64/reloc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libexec/rtld-elf/powerpc64/reloc.c b/libexec/rtld-elf/powerpc64/reloc.c index bc53a08219a0..df14af2c416a 100644 --- a/libexec/rtld-elf/powerpc64/reloc.c +++ b/libexec/rtld-elf/powerpc64/reloc.c @@ -336,10 +336,6 @@ reloc_plt_object(Obj_Entry *obj, const Elf_Rela *rela) obj->priv = malloc(obj->pltrelasize); glink = obj->priv + reloff*sizeof(Elf_Addr)*2; - if ((reloff < 0) || (reloff >= 0x8000)) { - return (-1); - } - dbg(" reloc_plt_object: where=%p,reloff=%lx,glink=%p", (void *)where, reloff, glink); memcpy(where, _rtld_bind_start, sizeof(struct funcdesc));