[ELF] - Linkerscript: implemented filename specification.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 28 Jul 2016 21:51:30 +0000 (21:51 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 28 Jul 2016 21:51:30 +0000 (21:51 +0000)
commit0659800ef07c653d5549ab3bb44c7de816f51051
tree09865f518c05ad93f05dd5843c9c480865b61c0f
parentfd5a7f189152eb1709b08092f256efa286375b94
[ELF] - Linkerscript: implemented filename specification.

Scripts can contain something like:
KEEP (*crtbegin.o(.ctors))

What means that "*crtbegin.o" is a wildcard of file to take the sections from.
This is some kind of opposite to EXCLUDE_FILE and used in FreeBSD script:
https://svnweb.freebsd.org/base/head/sys/conf/ldscript.amd64?revision=284870&view=markup#l122

Patch implements this.

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

llvm-svn: 277042
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/test/ELF/linkerscript/Inputs/linkerscript-filename-spec.s [new file with mode: 0644]
lld/test/ELF/linkerscript/linkerscript-filename-spec.s [new file with mode: 0644]