[LLD][ELF] - Linker script: accept using a file name without a list of sections.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 6 Dec 2018 08:34:52 +0000 (08:34 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 6 Dec 2018 08:34:52 +0000 (08:34 +0000)
commitf49fe218c2250ad507083c7666502832784f00ae
treec476768e151c05ca1fa5ee1484118a6505dcac30
parent98cb1216a64ed3f41cfd115737837defc5d5778f
[LLD][ELF] - Linker script: accept using a file name without a list of sections.

This is a part of
https://bugs.llvm.org/show_bug.cgi?id=39885

Linker script specification says:
"You can specify a file name to include sections from a particular file. You would
do this if one or more of your files contain special data that needs to be at a
particular location in memory."

LLD did not accept this syntax. The patch implements it.

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

llvm-svn: 348463
lld/ELF/LinkerScript.h
lld/ELF/ScriptParser.cpp
lld/test/ELF/linkerscript/no-filename-spec.s [new file with mode: 0644]
lld/test/ELF/linkerscript/sort.s