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

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 17 09:02:30 PDT 2023


aeubanks created this revision.
aeubanks added reviewers: peter.smith, MaskRay.
Herald added subscribers: arichardson, emaste.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is useful for measuring relocation pressure across builds.

For now, print the min/max 32-bit signed offset across relocations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158194

Files:
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/Options.td
  lld/ELF/Target.h
  lld/ELF/Writer.cpp
  lld/test/ELF/print-relocation-stats.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158194.551166.patch
Type: text/x-patch
Size: 5243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230817/06100a94/attachment.bin>


More information about the llvm-commits mailing list