cmd/link: use m to store div/mod denominator on arm #6699
Bring back CL 19810043. However, also: 1. Disallow use of DIV/MOD in NOSPLIT functions. That will catch functions that are running without a valid m. 2. Rewrite the functions that are caught (usleep, various 64-bit atomics) to use magic multiplies instead of constant division.
The text was updated successfully, but these errors were encountered:
rsc added a commit that referenced this issue
Jul 30, 2015
We want to adjust the DIV calling convention to use m, and usleep can be called without an m, so switch to a multiplication by the reciprocal (and test). Step toward a fix for #6699 and #10486. Change-Id: Iccf76a18432d835e48ec64a2fa34a0e4d6d4b955 Reviewed-on: https://go-review.googlesource.com/12898 Reviewed-by: Ian Lance Taylor <email@example.com>