[PATCH] D146645: [BOLT] Create section symbols for inserted sections
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 11 16:09:40 PDT 2023
Amir added a comment.
Why do we need to create symbols for these sections?
================
Comment at: bolt/lib/Rewrite/RewriteInstance.cpp:5184-5187
+ if (Section.hasSectionRef())
+ continue;
+
+ addSectionSymbol(Section.getOutputAddress(), Section.getIndex());
----------------
================
Comment at: bolt/test/create_section_symbol.c:1
+// This test check that newely created text section would have STT_SECTION type
+// symbol in symtab.
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146645/new/
https://reviews.llvm.org/D146645
More information about the llvm-commits
mailing list