[PATCH] D111137: [ELF] Propagate phdrs to orphan section with a smaller rank

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 15 08:38:30 PDT 2021


ikudrin added a comment.

If a user fully specified their intentions in the linker script, there is no room for orphan sections; if there are orphan sections, then it is your second case. As the documentation says nothing about placing orphan sections and assigning them to segments, the linkers can cook up their own rules that seem sensible, and the rule to put an orphan section into the same segment as the most similar one seems reasonable to me.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111137/new/

https://reviews.llvm.org/D111137



More information about the llvm-commits mailing list