[PATCH] D97110: [InstrProfiling] Use nobits as __llvm_prf_cnts section type in ELF
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 23 14:53:13 PST 2021
aeubanks added a comment.
In D97110#2583105 <https://reviews.llvm.org/D97110#2583105>, @davidxl wrote:
> Kazu has seen this error
>
> error: SHT_NOBITS section '__llvm_prf_cnts' cannot have non-zero
> initializers
>
> This is with lld.
>
> David
I'm also seeing this in a bootstrapped PGO build.
$ ./tools/clang/scripts/build.py --llvm-force-head-revision --without-android --without-fuchsia --pgo --bootstrap
https://source.chromium.org/chromium/chromium/src/+/master:tools/clang/scripts/build.py?q=f:tools%2Fclang%2Fscripts%2Fbuild.py&ss=chromium
It appears using LLD after profile generation in the final optimized Clang build. e.g.
[72/3520] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ELFAttributeParser.cpp.o
<unknown>:0: error: SHT_NOBITS section '__llvm_prf_cnts' cannot have non-zero initializers
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97110/new/
https://reviews.llvm.org/D97110
More information about the llvm-commits
mailing list