[PATCH] D17817: [ELF] do not allow .bss to occupy the file space when producing relocatable output.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 2 09:26:10 PST 2016
ruiu added inline comments.
================
Comment at: ELF/Writer.cpp:1325
@@ -1324,1 +1324,3 @@
+ FileOff = alignTo(FileOff, Sec->getAlign());
Sec->setFileOffset(FileOff);
+ if (Sec->getType() != SHT_NOBITS)
----------------
Do you have to set file offsets to bss sections?
http://reviews.llvm.org/D17817
More information about the llvm-commits
mailing list