]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Today, RealTek sent me a driver to test which had been compiled with
authorwpaul <wpaul@FreeBSD.org>
Mon, 2 Aug 2004 18:54:01 +0000 (18:54 +0000)
committerwpaul <wpaul@FreeBSD.org>
Mon, 2 Aug 2004 18:54:01 +0000 (18:54 +0000)
commit91a993c68f638077968a3a2db08611f5d8bfec95
tree134a32c649b3b493e0cfdc8d46aeffd31d4d634c
parent52662ee16c68677e2803ecec8a8f7d1133d34926
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.
usr.sbin/ndiscvt/ndiscvt.c