[PATCH] D40197: Merge .xdata into .rdata by default

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 15:55:48 PST 2017


rnk added a comment.

In https://reviews.llvm.org/D40197#929200, @smeenai wrote:

> What are the advantages to the section merging, apart from matching link's ouput? I personally prefer LLD keeping the separate sections, since it's easier to examine them that way.


Saves alignment padding, mostly. All of .xdata, .edata, .idata, and .didata can be dumped by llvm-readobj by starting from the PE headers, so they aren't that hard to read without section headers. The alignment padding is particularly bad when sections have different protections so we have to pad out to 4096 to get to a page boundary, as in .data vs. .didata, which are typically near each other because we sort output sections alphabetically.


https://reviews.llvm.org/D40197





More information about the llvm-commits mailing list