[ELF] Change findOrphanPos to only consider live sections
authorAndrew Ng <anng.sw@gmail.com>
Tue, 23 Apr 2019 12:17:15 +0000 (12:17 +0000)
committerAndrew Ng <anng.sw@gmail.com>
Tue, 23 Apr 2019 12:17:15 +0000 (12:17 +0000)
commit98c858a23be102964b6e61d58749c56bbe2dec5f
treeb17515292341228e58f5a70ffbab5b52bf08e5b1
parent61ef9193aa7a7f998ab55d0d07f552464c7c8f1b
[ELF] Change findOrphanPos to only consider live sections

This patch changes the behaviour of findOrphanPos to only consider live
sections when placing orphan sections. This used to be how it behaved in
the past.

Differential Revision: https://reviews.llvm.org/D60273

llvm-svn: 358979
lld/ELF/Writer.cpp