[PATCH] D95199: [ELF] Write output sections in PT_LOAD segment order
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 17 10:19:29 PDT 2021
MaskRay added inline comments.
================
Comment at: lld/ELF/Writer.cpp:1087
+ return;
+ llvm::sort(sections, [](OutputSection *l, OutputSection *r) {
+ return l->addr < r->addr;
----------------
stable_sort
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95199/new/
https://reviews.llvm.org/D95199
More information about the llvm-commits
mailing list