Re: [PATCH 3/9] efi/x86: Move efi stub globals from .bss to .data

From: Arvind Sankar
Date: Thu Apr 09 2020 - 17:08:52 EST


On Thu, Apr 09, 2020 at 04:53:07PM -0400, Brian Gerst wrote:
> > Can we use the -fno-zero-initialized-in-bss compiler flag instead of
> > explicitly marking global variables?
>
> Scratch that. Apparently it only works when a variable is explicitly
> initialized to zero.
>
> --
> Brian Gerst

Right, there doesn't seem to be a compiler option to turn off the use of
.bss altogether.