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
12 lines
240 B
Plaintext
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 )
|
|
*/
|