[PATCH] D106198: [DWP] Refactoring llvm-dwp in to a library.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 16 23:22:57 PDT 2021


dblaikie added a comment.

No dobut we've discussed this before, but could you refresh my memory on why bolt needs access to dwp rewriting?

Is it possible we could emit bolt-compatible DWARF instead (I imagine we'll want to do this for Propeller anyway) - for instance if Bolt can change the length of a code range (so DWARF's use of offsets relative to known addresses would become inaccurate) perhaps when code generating we could know that those ranges could change and instead emit addresses rather than offsets? Thoese addresses would go in the address pool and be modifiable by Bolt without having to rewrite the dwp (this will significantly increase the .o/executable size of the DWARF due to the use of more address relocations, but may still be worthwhile/the right direction, possibly).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106198



More information about the llvm-commits mailing list