[ELF] Move SHF_LINK_ORDER processing earlier in Writer.cpp [NFC]
authorPeter Smith <peter.smith@linaro.org>
Tue, 12 Dec 2017 13:30:44 +0000 (13:30 +0000)
committerPeter Smith <peter.smith@linaro.org>
Tue, 12 Dec 2017 13:30:44 +0000 (13:30 +0000)
commit03cbf468cdecc11ef2432a64722f761ea68239fb
tree9d26443b2d01915b1c4b4289998203e9afd8965f
parent9b5ffc22f60cde7005784e31dfc4a7f39595a5d0
[ELF] Move SHF_LINK_ORDER processing earlier in Writer.cpp [NFC]

By moving this step before thunk creation and other processing that depends
on the size of sections, we permit removal of duplicates in the .ARM.exidx
section.

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

llvm-svn: 320477
lld/ELF/OutputSections.cpp
lld/ELF/Writer.cpp