[ELF] - Reorder local symbols.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 11 Apr 2018 09:24:27 +0000 (09:24 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 11 Apr 2018 09:24:27 +0000 (09:24 +0000)
commitc552619fc107bd30313b776d818f7e5423200c71
treef23f5821f3d3f8898bca978c106495b19b004cb2
parent27695da998b0934467767fe1e3c53de3dee89bf0
[ELF] - Reorder local symbols.

This fixes PR36716 (https://bugs.llvm.org/show_bug.cgi?id=36716),

Patch sorts local symbols to match the
following order: file1, local1, hidden1, file2, local2, hidden2 ...

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

llvm-svn: 329787
lld/ELF/SyntheticSections.cpp
lld/ELF/Writer.cpp
lld/test/ELF/local-symbols-order.s
lld/test/ELF/relocatable-comdat-multiple.s