fix(asm): resolve negative numeric PC-relative jumps

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-23 21:02:50 +02:00
parent 8eed54b3da
commit 7b11c62f53
3 changed files with 74 additions and 1 deletions
+5
View File
@@ -28,6 +28,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
to the document that started it, so renaming a symbol used in a second
file moved that file's text into the first. Each edit now applies to the
document it was collected in.
- **Negative numeric PC-relative jumps.** `JMP -3(PC)`, the shape the
runtime's exit loops write (sys_linux_amd64.s, sys_netbsd_amd64.s),
resolved to nothing: only the forward forms counted. A negative count
now walks the same instruction statements backwards, labels excluded,
byte-identical with the toolchain.
## [0.35.0] - 2026-09-22