Page 2 of 2

Re: Strange errors when kernel goes bigger

Posted: Sun Jan 12, 2014 4:42 am
by wichtounet
XenOS wrote:
wichtounet wrote:Yes, the assembly code for writing zeros is simple... but the assembly code to find BSS_START and BSS_SIZE is not... Moreover, it implies an ELF executable, which I don't have, since I'm only using a flat binary.
Why? It is very simple to define these two symbols in your linker script and to use them in your assembly. This also works for flat binary files.
Yes, I thought about getting them from ELF, but you're right I could just pass them to the bootloader :)