[PATCH] D143841: [Propeller] Make decoding BBAddrMaps trace through relocations

Han Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 18:24:24 PST 2023


shenhan added a comment.

Thanks for working on this. You mentioned

> This patch changes the behavior of decodeBBAddrMap to trace through relocations to get correct function addresses if it is going through a relocatable object file."

How is this achieved? Each BBAddrMap section has a corresponding .rela section, but that .rela section does not contain real address information (the addresses are only known at linker time). (Most of the time) It has entries of <offset_into_bbaddrmap_section, ".text", addend>. Are you computing function addresses as  ".text address as exhibited in the object file + addend"?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143841



More information about the llvm-commits mailing list