[lld] [ELF] Orphan placement: remove hasInputSections condition (PR #93761)

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 23:32:39 PDT 2024


https://github.com/igorkudrin commented:

Basically, the linker now takes into account sections defined in a linker script when placing orphans, right? What if some kind of padding/filler section is defined in the script? It looks like it will attract orphan data sections when placed before actual data sections. Do you think a new `RankFlag` can be added to make real sections more preferable?

https://github.com/llvm/llvm-project/pull/93761


More information about the llvm-commits mailing list