[PATCH] D40128: [ELF] - Reveal layout of synthetic mergeable sections when producing -Map
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 01:03:30 PST 2017
grimar added a comment.
In https://reviews.llvm.org/D40128#928354, @ruiu wrote:
> 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
I cant just agree here, because they contain exactly what I wanted to see, but I should admit I might have misunderstood the
intention of map file. So it can be true. Let me think about it. Thank you for explanation.
> - 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