]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Today, RealTek sent me a driver to test which had been compiled with
authorBill Paul <wpaul@FreeBSD.org>
Mon, 2 Aug 2004 18:54:01 +0000 (18:54 +0000)
committerBill Paul <wpaul@FreeBSD.org>
Mon, 2 Aug 2004 18:54:01 +0000 (18:54 +0000)
commit120ab56a71219d6579c3e320456bdf8778800370
tree134a32c649b3b493e0cfdc8d46aeffd31d4d634c
parentd8a2a2e2ebcc55ca24776a39b6623e79a1b02bd7
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