]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix handling of unaligned offset between 256 and 504
authorCherry Zhang <cherryyz@google.com>
Sat, 23 Sep 2017 20:03:43 +0000 (16:03 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 5 Oct 2017 22:28:17 +0000 (22:28 +0000)
commita92a77c56f598b28b5eb640d29fabc6843b365c2
tree0ba3bef200e0610bc00c34b14d8e4a53642e56d6
parent6b8a3c88894cdd2f501a6497c1fc5cfd89861a7f
cmd/internal/obj/arm64: fix handling of unaligned offset between 256 and 504

C_PPAUTO was matching offsets that is a multiple 8. But this
condition is dropped in CL 55610, causing unaligned offset
between 256 and 504 mistakenly matched to some classes, e.g.
C_UAUTO8K. This CL restores this condition, also fixes an
error that C_PPAUTO shouldn't match C_PSAUTO, because the
latter is not guaranteed to be multiple of 8. C_PPAUTO_8 is
unnecessary, removed.

Fixes #21992.

Change-Id: I75d5a0e5f5dc3dae335721fbec1bbcd4a3b862f2
Reviewed-on: https://go-review.googlesource.com/65730
Reviewed-by: David Chase <drchase@google.com>
src/cmd/internal/obj/arm64/a.out.go
src/cmd/internal/obj/arm64/anames7.go
src/cmd/internal/obj/arm64/asm7.go
test/fixedbugs/issue19137.go