[InstrProfiling] Use nobits as __llvm_prf_cnts section type in ELF
authorPetr Hosek <phosek@google.com>
Sat, 20 Feb 2021 05:41:45 +0000 (21:41 -0800)
committerPetr Hosek <phosek@google.com>
Sat, 20 Feb 2021 22:20:33 +0000 (14:20 -0800)
commit6b286d93f7ec8518c685a302269e44b06a0a24f3
tree834d18cc534c8f8dd6db9cdef88a867d926777b3
parent77056fe58e83100b902216d7bc6274129f80abda
[InstrProfiling] Use nobits as __llvm_prf_cnts section type in ELF

This can reduce the binary size because counters will no longer occupy
space in the binary, instead they will be allocated by dynamic linker.

Differential Revision: https://reviews.llvm.org/D97110
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/Instrumentation/InstrProfiling/X86/nobits.ll [new file with mode: 0644]