mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-22 05:37:08 +00:00
Fix linker script align 16 in floating address context (#2115)
Turns out we were just using the wrong var lmao
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ void layout_AlignTo(uint32_t alignment, uint32_t alignOfs) {
|
||||
|
||||
if (isPcFloating) {
|
||||
if (alignment >= 16) {
|
||||
layout_SetAddr(floatingAlignOffset);
|
||||
layout_SetAddr(alignOfs);
|
||||
} else {
|
||||
uint32_t alignSize = 1u << alignment;
|
||||
uint32_t alignMask = alignSize - 1;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
SECTION "test", ROM0
|
||||
assert @ == $80 ; Set by the linker script.
|
||||
Label:: db 42 ; Make the section non-empty.
|
||||
@@ -0,0 +1,4 @@
|
||||
ROM0
|
||||
FLOATING
|
||||
ALIGN 16, $80
|
||||
"test"
|
||||
Reference in New Issue
Block a user