[ELF] Convert DynamicSection to input section.
authorEugene Leviant <eleviant@accesssoftek.com>
Tue, 15 Nov 2016 12:26:55 +0000 (12:26 +0000)
committerEugene Leviant <eleviant@accesssoftek.com>
Tue, 15 Nov 2016 12:26:55 +0000 (12:26 +0000)
commit6380ce22127370f34b9d958209d634ddde3abe97
tree670efe9bce57a988bcc9aa213dfeb2fb14192d68
parentf043dac25d5cbe86e75c15a4078811d9961b3fd4
[ELF] Convert DynamicSection to input section.

This patch introduces the following changes:
- DynamicSection now inherits InputSection<ELFT> and was moved
  to SyntheticSections.h/.cpp.
- Link and Entsize fields of DynamicSection are propagated to
  its output section
- In<ELFT>::SyntheticSections was removed.
- Finalization of synthetic sections was removed from
  OutputSection<ELFT>::finalize. Now finalizeSyntheticSections is
  used instead.

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

llvm-svn: 286950
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h
lld/ELF/Target.cpp
lld/ELF/Writer.cpp