[PATCH] D98445: [ELF] Special case --shuffle-sections=-1 to reverse input sections
Peter Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 12 01:56:08 PST 2021
peter.smith added a comment.
No fundamental objections, although I'm wondering if static constructor order is the main problem it would be better to do something specific. For example reversing the order of the constructors of the same priority while holding the remainder of the program constant. A smaller local change would help rule out other layout changes due to section order change.
Had an idle thought that it might be possible to do some kind of dependency check. For example trace the relocations from each static constructor and look for common read-write data sections. While not a guarantee of order-dependence it would be a good indicator that there may be some order dependence.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98445/new/
https://reviews.llvm.org/D98445
More information about the llvm-commits
mailing list