[ELF] - Linkerscript: reimplement readSectionExcludes()
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 21 Sep 2016 08:53:21 +0000 (08:53 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 21 Sep 2016 08:53:21 +0000 (08:53 +0000)
commit601e9898797f2b5969c5dd2814f9c4fb2e298535
tree1708610f75da95c355d0fed7151d807ef0f04973
parentfda467b252413898b40d4db55ea7bbdbb3e535e3
[ELF] - Linkerscript: reimplement readSectionExcludes()

It is not only a bit more straightforward now, but also next 2 issues are solved:

* It just crashed on ".foo : { *(EXCLUDE_FILE (*file1.o)) }" before.
* It accepted multiple EXCLUDE_FILEs in a row.

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

llvm-svn: 282060
lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript/exclude-multiple.s