[ELF] - Simplify output section creation.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 31 Oct 2017 10:31:58 +0000 (10:31 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 31 Oct 2017 10:31:58 +0000 (10:31 +0000)
commitf9b04fd91f8a68f08d7d8f788c0cf8af9c750c4e
treebb0020cfde841adadfba3eb1c1784f229697fdef
parent06618bf71aa80466cc50181f16f0f5c1ba71e91a
[ELF] - Simplify output section creation.

When there is no SECTION commands given, all sections are
technically orphans, but now we handle script orphans sections
and regular "orphans" sections for non-scripted case differently,
though we can handle them at one place.

Patch do that change.

Differential revision: https://reviews.llvm.org/D39045

llvm-svn: 316984
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/ELF/Writer.cpp