GNU LD has an option named -T/--script which allows a user to specify a linker script to be used [1]. LLD already accepts linker scripts without this option, but the option is widely used. Therefore it is best to support it in LLD as well. [1] https://sourceware.org/binutils/docs/ld/Options.html#Options llvm-svn: 232183
7 lines
217 B
Plaintext
7 lines
217 B
Plaintext
# Check that linker script are *not* picked up with -lscript.ls.
|
|
|
|
RUN: not lld -flavor gnu -target x86_64 -L%p/Inputs/ -lvalid.ls 2> %t.err
|
|
RUN: FileCheck %s < %t.err
|
|
|
|
CHECK: {{.*}}: Unable to find library -lvalid.ls
|