[PATCH] D77187: [lld][WebAssembly] Add initial support for -Map/--print-map

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 13:03:39 PDT 2020


dschuff added a comment.
Herald added a subscriber: dang.

Can we pick this up again?

It looks like the only unresolved issues are the question of whether we should print section offsets or file offsets, and whether to put "-" or "0" for function addresses. I don't really have any opinion on the latter.
For the former question in general it's unfortunately slightly annoying, because for sections like data and debug info, section offsets are more relevant. But for code, VMs tend to print code addresses as file offsets.
But for the view mentioned above,  (printing the offsets of each output section especially the official known sections such as CODE, DATA, etc where there can be only one), file offset probably makes the most sense to me.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77187/new/

https://reviews.llvm.org/D77187



More information about the llvm-commits mailing list