[llvm-dev] why do undefined globals end up in .data instead of .bss?
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Tue Apr 25 13:44:36 PDT 2017
On 25 April 2017 at 13:41, Tobias Edler von Koch via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> It would be entirely correct if we emitted all 1s
> instead of all 0s for undef. If you really want it to be .bss,
> zeroinitializer seems to be the better choice.
It sounded like he didn't care what the actual data was, just that it
didn't consume space in the object file.
More information about the llvm-dev