Files
clang-p2996/lld/test/LinkerScript/libname-err-2.test
Simon Atanasyan 64c0ac2b35 [ELF] Implement parsing -l prefixed items in the GROUP linker script command.
There are two forms of `-l` prefixed expression:

* -l<libname>
* -l:<filename>

In the first case a linker should construct a full library name
`lib + libname + .[so|a]` and search this library as usual. In the second case
a linker should use the `<filename>` as is and search this file through library
search directories.

The patch reviewed by Shankar Easwaran.

llvm-svn: 213077
2014-07-15 17:17:30 +00:00

12 lines
240 B
Plaintext

/* RUN: linker-script-test %s 2>&1 | FileCheck %s
*/
OUTPUT_ARCH(i386:x86_64)
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
GROUP( -l )
ENTRY(init)
/*
CHECK: test/LinkerScript/libname-err-2.test:6:10: error: expected )
*/