[PATCH] D12511: [LTO] Pass -no-zero-initialized-in-bss on linker command line
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 31 19:45:35 PDT 2015
ahatanak added a comment.
If it's important to be able to compile one file with -fno-zero-initialized-in-bss and another without the option, we could add a bit to GlobalVariable that indicates it shouldn't be go into the bss section. Is that what you are suggesting?
If we are going to take that approach, users will be passing -fno-zero-initialized-in-bss at compile time to set the bit for the GlobalVariables clang creates and pass the option again at link time (which will translate into -mllvm -nozero-initialized-in-bss) since some of the passes that are run at link time create GlobalVariables.
http://reviews.llvm.org/D12511
More information about the cfe-commits
mailing list