[ELF] - Fix "--symbol-ordering-file doesn't work with linker scripts"
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 4 Aug 2017 10:25:29 +0000 (10:25 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 4 Aug 2017 10:25:29 +0000 (10:25 +0000)
commitd6bcde389ac3f9dd7fee40a0303e97a8aeb85778
tree01c0f9f38f9b0e39268dbf7dd1de8b233725d054
parent1c17001235a17c1565f92a5b602f44feebe54232
[ELF] - Fix "--symbol-ordering-file doesn't work with linker scripts"

This is PR33889,

Patch adds support of combination of linkerscript and
-symbol-ordering-file option.

If no sorting commands are present in script inside section declaration
and no --sort-section option specified, code uses sorting from ordering
file if any exist.

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

llvm-svn: 310045
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/LinkerScript.cpp
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/symbol-ordering-file.s [new file with mode: 0644]