[PATCH] D24230: [ELF] Linkerscript: Fix handling of empty sections
Rafael Ávila de Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 09:06:39 PDT 2016
rafael added inline comments.
================
Comment at: ELF/LinkerScript.cpp:311
@@ +310,3 @@
+ OutputSectionBase<ELFT> *Empty = new OutputSectionBase<ELFT>(
+ Cmd->Name, SHT_NULL, SHF_ALLOC | SHF_EXCLUDE);
+ OutputSections->push_back(Empty);
----------------
Sorry for being late in this review.
If you create these empty sections with
* the same flags as the one before it.
* alignment of 1
you should be able to just leave these sections in the output and not worry about breaking any PT_LOAD, no?
That should make the patch simpler as you would not need to convert the symbols.
https://reviews.llvm.org/D24230
More information about the llvm-commits
mailing list