Improve error message for align failure (#1721)

This commit is contained in:
Rangi
2025-07-06 08:36:11 -04:00
committed by GitHub
parent 185a3b29e6
commit e14f68d1d7
3 changed files with 20 additions and 10 deletions

View File

@@ -1,3 +1,3 @@
error: fragment-align.asm(25):
Section's alignment fails required alignment (offset from section start = $0004)
Section is misaligned ($0004 bytes into the section, expected ALIGN[2, 0], got ALIGN[2, 1])
error: Assembly aborted (1 error)!

View File

@@ -1,5 +1,5 @@
error: invalid-alignment.asm(9):
Section's fixed address fails required alignment (PC = $4000)
Section is misaligned (at PC = $4000, expected ALIGN[16, 0], got ALIGN[16, 16384])
error: invalid-alignment.asm(11):
Alignment must be between 0 and 16, not 20
error: invalid-alignment.asm(13):