HomePhabricator

[ELF] Change findOrphanPos to only consider live sections

Authored by andrewng on Apr 23 2019, 5:17 AM.

Description

[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