[lld] r362548 - [WebAssembly] make wasm-ld --verbose show data section startVA and name
Thomas Lively via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 14:13:41 PDT 2019
Author: tlively
Date: Tue Jun 4 14:13:41 2019
New Revision: 362548
URL: http://llvm.org/viewvc/llvm-project?rev=362548&view=rev
Log:
[WebAssembly] make wasm-ld --verbose show data section startVA and name
Summary:
Make `wasm-ld --verbose` show data section start virtual address and name
as well, instead of just showing the size. This makes it much easier to
track which global variable is in which address when used in conjunction
with `--no-merge-data-sections`.
Patch by Guanzhong Chen
Reviewers: tlively, aheejin, sbc100, ruiu
Reviewed By: sbc100, ruiu
Subscribers: ruiu, dschuff, jgravelle-google, sunfish, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62834
Modified:
lld/trunk/wasm/OutputSections.cpp
Modified: lld/trunk/wasm/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/OutputSections.cpp?rev=362548&r1=362547&r2=362548&view=diff
==============================================================================
--- lld/trunk/wasm/OutputSections.cpp (original)
+++ lld/trunk/wasm/OutputSections.cpp Tue Jun 4 14:13:41 2019
@@ -151,7 +151,8 @@ void DataSection::finalizeContents() {
Segment->SectionOffset = BodySize;
BodySize += Segment->Header.size() + Segment->Size;
- log("Data segment: size=" + Twine(Segment->Size));
+ log("Data segment: size=" + Twine(Segment->Size) + ", startVA=" +
+ Twine::utohexstr(Segment->StartVA) + ", name=" + Segment->Name);
for (InputSegment *InputSeg : Segment->InputSegments)
InputSeg->OutputOffset = Segment->SectionOffset + Segment->Header.size() +
More information about the llvm-commits
mailing list