[PATCH] D102296: [ELF] getRelocatedSection: remove the check for ET_REL object file

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 09:24:42 PDT 2021


Amir added a comment.

@jhenderson, @dblaikie: BOLT recreates relocations implicitly as it uses MCStreamer for code emission. We don't reapply existing relocations from the binary. I should have pointed out that BOLT performs not just function reordering (where reapplying relocations might make sense), but rather full binary rewrite: splits text into hot and cold sections, splits functions, reorders basic blocks, reorders functions, applies PLT optimizations, and so on. Hope that makes it clear.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102296



More information about the llvm-commits mailing list