[PATCH] D103212: [WIP] Changing CG Profile to relocations based.

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 15:46:35 PDT 2021


ayermolo created this revision.
Herald added subscribers: hoy, wenlei, rupprecht, hiraditya, arichardson, emaste.
Herald added a reviewer: jhenderson.
Herald added a reviewer: MaskRay.
ayermolo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch combines three patches

1. LLD
2. objdump
3. LLVM.

This is for illustrative purposes, if it is agreed this is the direction we want to go will break it up in to three different patches.

Changed CG profile symbol index information to be encoded in relocations. This allows post processing tools like strip to be used on object files while preserving correct symbol indices.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103212

Files:
  lld/ELF/Driver.cpp
  lld/ELF/InputFiles.cpp
  lld/ELF/InputFiles.h
  llvm/lib/MC/ELFObjectWriter.cpp
  llvm/lib/MC/MCELFStreamer.cpp
  llvm/test/MC/ELF/cgprofile.s
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103212.348117.patch
Type: text/x-patch
Size: 10838 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210526/341b093c/attachment.bin>


More information about the llvm-commits mailing list