[PATCH] D158194: [lld/ELF] Add flag to print relocation stats

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 17 09:09:56 PDT 2023


MaskRay added a comment.

This adds overhead to most relocations. The maximum offset doesn't necessarily reflect the pressure. We need to look at the distribution.
I am therefore object to such an approach. 
As an alternative, we can relink with `--emit-relocs` and use another program to analyze the relocations.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158194



More information about the llvm-commits mailing list