Compare commits

...

1 Commits

Author SHA1 Message Date
24c38957f4 Add *(.bss.*) to link.x; fixes #8
Const var, which is used for allocator, is .bss.alloc..., and because
there was no that pattern in link scrypt, FILE_END didn't count the var,
that's why initial zero value was overwritten by application name (see
MENUET01 header description for more info)
2024-05-26 02:19:11 +03:00

5
link.x
View File

@ -30,7 +30,10 @@ SECTIONS {
*(data) *(data)
} }
.bss ALIGN(16) : {*(.bss)} .bss ALIGN(16) : {
*(.bss)
*(.bss.*)
}
FILE_END = .; FILE_END = .;
} }