File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -555,13 +555,12 @@ void ObjFile<ELFT>::initializeSections(bool ignoreComdats) {
555
555
continue ;
556
556
const Elf_Shdr &sec = objSections[i];
557
557
558
- if (sec.sh_type == ELF::SHT_LLVM_CALL_GRAPH_PROFILE)
559
- cgProfileSectionIndex = i;
560
-
561
558
// SHF_EXCLUDE'ed sections are discarded by the linker. However,
562
559
// if -r is given, we'll let the final link discard such sections.
563
560
// This is compatible with GNU.
564
561
if ((sec.sh_flags & SHF_EXCLUDE) && !config->relocatable ) {
562
+ if (sec.sh_type == SHT_LLVM_CALL_GRAPH_PROFILE)
563
+ cgProfileSectionIndex = i;
565
564
if (sec.sh_type == SHT_LLVM_ADDRSIG) {
566
565
// We ignore the address-significance table if we know that the object
567
566
// file was created by objcopy or ld -r. This is because these tools
You can’t perform that action at this time.
0 commit comments