RGBLINK placement of empty sections ignores alignment constraints
- Dominant language
- C++
- Stars
- 1.6k
- Forks
- 193
- Avg merge
- 22h 17m
- Merged PRs (30d)
- 26
Description
```console
$ cat good.asm
SECTION "test", WRAM0, ALIGN[8, $80]
wLabel:: ds 1
$ ./rgbasm -o - good.asm | ./rgblink -m - -n - -
; File generated by rgblink
00:c080 wLabel
SUMMARY:
WRAM0: 1 byte used / 4095 free
WRAM0 bank #0:
EMPTY: $c000-$c07f ($0080 bytes)
SECTION: $c080-$c080 ($0001 byte) ["test"]
$c080 = wLabel
EMPTY: $c081-$cfff ($0f7f bytes)
TOTAL EMPTY: $0fff bytes
$ cat bad.asm
SECTION "test", WRAM0, ALIGN[8, $80]
wLabel::
$ ./rgbasm -o - bad.asm | ./rgblink -m - -n - -
; File generated by rgblink
00:c000 wLabel
SUMMARY:
WRAM0: 0 bytes used / 4096 free
WRAM0 bank #0:
SECTION: $c000 ($0000 bytes) ["test"]
$c000 = wLabel
EMPTY
```
`bad.asm` places `"test"` at `$c000` despite having `ALIGN[8, $80]`.
Contributor guide
Assessment
This issue has not been assessed yet.