From owner-p4-projects@FreeBSD.ORG Mon Sep 12 22:18:04 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 903B816A422; Mon, 12 Sep 2005 22:18:03 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EF2216A420 for ; Mon, 12 Sep 2005 22:18:03 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E67A43D45 for ; Mon, 12 Sep 2005 22:18:03 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8CMI38e089189 for ; Mon, 12 Sep 2005 22:18:03 GMT (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8CMI2lU089186 for perforce@freebsd.org; Mon, 12 Sep 2005 22:18:02 GMT (envelope-from peter@freebsd.org) Date: Mon, 12 Sep 2005 22:18:02 GMT Message-Id: <200509122218.j8CMI2lU089186@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 83516 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 22:18:04 -0000 http://perforce.freebsd.org/chv.cgi?CH=83516 Change 83516 by peter@peter_melody on 2005/09/12 22:17:09 Relocate the PLT jump slot entries in a woefully inadequate and incorrect way. I'm ignoring the value and addend records because the two kernel modules that I care about have them all zeros. In the real world this needs to be done correctly because its inevitible that something will put an offset here sooner or later. Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/elf_machdep.c#31 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/elf_machdep.c#31 (text+ko) ==== @@ -195,6 +195,7 @@ break; case R_X86_64_GLOB_DAT: /* S */ + case R_X86_64_JMP_SLOT: /* S */ addr = lookup(lf, symidx, 1); if (addr == 0) return -1;