On 07.02.2024 11:42, Jürgen Groß wrote: > On 07.02.24 11:38, Samuel Thibault wrote: >> Juergen Gross, le mer. 07 févr. 2024 11:31:38 +0100, a ecrit: >>> The .bss segment should be zeroed at very early boot. >> >> Is that not done by the elf loader of Xen? > > It might be done by Xen tools today, but I'm quite sure it is not part > of the ABI. The hypervisor doesn't clear .bss when loading a domain (e.g. > dom0).
libelf's elf_memcpy() looks to say otherwise. > I stumbled over it while implementing kexec in Mini-OS. For that I need > it for sure. Hmm, yes, if the protocol there doesn't guarantee zeroing. But then you probably want to give this as the reason for the change? Jan
