From owner-cvs-all@FreeBSD.ORG Mon Aug 2 18:54:01 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6267316A4CE; Mon, 2 Aug 2004 18:54:01 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5935643D55; Mon, 2 Aug 2004 18:54:01 +0000 (GMT) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i72Is1wg032069; Mon, 2 Aug 2004 18:54:01 GMT (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i72Is1SS032068; Mon, 2 Aug 2004 18:54:01 GMT (envelope-from wpaul) Message-Id: <200408021854.i72Is1SS032068@repoman.freebsd.org> From: Bill Paul Date: Mon, 2 Aug 2004 18:54:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/ndiscvt ndiscvt.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2004 18:54:01 -0000 wpaul 2004-08-02 18:54:01 UTC FreeBSD src repository Modified files: usr.sbin/ndiscvt ndiscvt.c Log: Today, RealTek sent me a driver to test which had been compiled with some debug support turned on. It turns out the sections in this driver binary had relative virtual addresses (RVAs) that were different from the raw addresses, and it had a .data section where the virtual size was much larger than the raw size. (Most production binaries produced with the Microsoft DDK have RVA == PA.) There's code in the ndiscvt(8) utility that's supposed to handle the vsize != rsize case, but it turns out it was slightly broken, and it failed to handle the RVA != RA case at all. Hopefully, this commit will fix all that. Revision Changes Path 1.9 +43 -45 src/usr.sbin/ndiscvt/ndiscvt.c