[PATCH] D25822: [DWARF parsers] - Add a way to get section indices when call DWARFUnit::collectAddressRanges()

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 16:23:53 PDT 2016

clayborg added a comment.

After speaking with some local ELF experts over here, my proposed solution won't work. Would it be possible to encode the section index into the upper bits of any addresses that need to retain know their section? If not it seems weird to just be changing a few places that use high and low PC in a few areas of the DWARF parser. It would seem that we would need to change all places that can use addresses over to use some structure like:

  struct FileAddress {
      uint64_t vmAddr;
      uint32_t sectIdx;

instead of just a "uint64_t" as a file address.


More information about the llvm-commits mailing list