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)
This commit is contained in:
Gleb Zaharov 2024-05-26 02:13:56 +03:00
parent 21c90abd44
commit 24c38957f4

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 = .;
} }