[PATCH] D127056: [ORC][ORC_RT] Handle ELF .init_array with non-default priority
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 4 21:34:14 PDT 2022
MaskRay added inline comments.
================
Comment at: compiler-rt/lib/orc/elfnix_platform.cpp:379
+ if (pos == name.size() - 1)
+ return 65535;
+ else
----------------
65536 is better.
See lld/ELF/OutputSections.cpp::576
================
Comment at: compiler-rt/lib/orc/elfnix_platform.cpp:391
+ using SectionList = std::vector<ExecutorAddrRange>;
+ std::sort(MOJDIs.InitSections.begin(), MOJDIs.InitSections.end(),
+ [](const std::pair<std::string, SectionList> &LHS,
----------------
stable_sort
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127056/new/
https://reviews.llvm.org/D127056
More information about the llvm-commits
mailing list