bbb8187c33
From David H. Gutteridge in PR port-amd64/55555 There's a second part to the patch, but "make our code behave the way the upstream code does" is very welcome. Also PR kern/54515 and possibly others.