From 24c38957f4c0a4ac719cafb5d0deb62ac8df8709 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Sun, 26 May 2024 02:13:56 +0300 Subject: [PATCH] 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) --- link.x | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/link.x b/link.x index 1a3cac8..fec6fc8 100644 --- a/link.x +++ b/link.x @@ -30,7 +30,10 @@ SECTIONS { *(data) } - .bss ALIGN(16) : {*(.bss)} + .bss ALIGN(16) : { + *(.bss) + *(.bss.*) + } FILE_END = .; }