Skip to content

Commit f6dcb90

Browse files
author
Alexander Yermolovich
committed
added comment for static relocs
1 parent eb882e5 commit f6dcb90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bolt/lib/Passes/IdenticalCodeFolding.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ void IdenticalCodeFolding::initVTableReferences(const BinaryContext &BC) {
367367
}
368368
void IdenticalCodeFolding::analyzeDataRelocations(BinaryContext &BC) {
369369
initVTableReferences(BC);
370+
// For static relocations there should be a symbol for function references.
370371
for (const BinarySection &Sec : BC.sections()) {
371372
if (!Sec.hasSectionRef() || !Sec.isData())
372373
continue;

0 commit comments

Comments
 (0)