[ELF] Fix .rela.llvm.call-graph-profile detection after D104080
authorFangrui Song <i@maskray.me>
Thu, 24 Jun 2021 22:21:28 +0000 (15:21 -0700)
committerFangrui Song <i@maskray.me>
Thu, 24 Jun 2021 22:21:28 +0000 (15:21 -0700)
commitc4ca39e0f54ba81eefe8d48e25f7d71bbe49d952
treed51337dc087c7986d51f2547f0973433a3c5b3bb
parent3b4aad1186e8e8e6f6c7887cb5e8d9bfd7d3ce2f
[ELF] Fix .rela.llvm.call-graph-profile detection after D104080

A SHT_SYMTAB section's sh_info is the number of local symbols.
sh_info may coincide with the section header index of SHT_LLVM_CALL_GRAPH_PROFILE.
lld/ELF/InputFiles.cpp