[PATCH] D40128: [ELF] - Reveal layout of synthetic mergeable sections when producing -Map

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 00:39:59 PST 2017


ruiu added a comment.

First of all, the current output is consistent. It doesn't print out the information about mergeable input sections that consist make up an mergeable synthetic section, but that doesn't mean that the output is inconsistent.

So, back to the original question, I don't think the format you are proposing is useful for a few reasons:

- Address and size fields contains bogus values. So you cannot use these numbers to analyze the output
- There's no good way of printing out input sections that make up a synthetic section in the current format

I think the fundamental issue of this patch is that the information you are trying to print out doesn't actually fit well in the notion of the map file. The map file is to show how input sections are mapped to some contiguous output memory address, and it's not suitable to print out the information as to how mergeable section pieces are mapped to an output section.


https://reviews.llvm.org/D40128





More information about the llvm-commits mailing list