feat(lint): flag writes to the platform-reserved register

This commit is contained in:
2026-08-30 21:42:12 +02:00
parent 62f6fb4faf
commit 75bd83fd52
4 changed files with 126 additions and 0 deletions
+4
View File
@@ -84,6 +84,10 @@ Unreleased changes on the `development` branch.
- **Lint: `unencodable-instruction` rule.** Flags mnemonics the
architecture table knows but the encoder cannot yet emit, at edit time
instead of at assembly time.
- **Lint: `reserved-register-write` rule.** Flags writes to arm64 R18,
the platform-reserved register the ABI checks cannot observe at runtime
and the Go assembler cannot even spell. Reads and macro-using files
are exempt.
- **DWARF5 debug sections in ELF output.** All four ELF emitters now emit
`.debug_abbrev`, `.debug_info`, `.debug_line`, and `.debug_line_str`
sections, enabling `addr2line` and GDB/LLDB source-level debugging, and