[PATCH] D76085: [DWARFLinker][dsymutil][NFC] add section index into address range.
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 17 10:44:25 PDT 2020
dblaikie added a comment.
In D76085#1926829 <https://reviews.llvm.org/D76085#1926829>, @avl wrote:
> > If by "debug map" you mean a literal file, or file in memory - I think that could reasonably be avoided & changes to DWARFLinker to support an API-level description of the semantic contents of the debug map ("this address/section ended up at this final addresS" sort of info) would be quite reasonable.
>
> But even if that map would be done as API-level description - this map would require time to be build and memory to be kept. Wouldn`t it be good if we are able to not do it?
I'm not sure I understand the alternative - are you picturing doing the DWARF reduction and updating relocations and then feeding the reduced but unrelocated DWARF into lld's linking step?
The debug map seems like it should be the same data structure that would be used for applying relocations anyway - is it not? I'd be surprised if it was significantly different/new cost to have that data available for the DWARF linking as it would be for the relocation application.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76085/new/
https://reviews.llvm.org/D76085
More information about the llvm-commits
mailing list