[PATCH] D13542: [ELF2/LinkerScript] Support for SEARCH_DIR() directive

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 02:44:41 PDT 2015


On Thu, Oct 08, 2015 at 01:03:14AM +0000, Davide Italiano via llvm-commits wrote:
> Index: test/elf2/linkerscript.s
> ===================================================================
> --- test/elf2/linkerscript.s
> +++ test/elf2/linkerscript.s
> @@ -23,6 +23,10 @@
>  # RUN: ld.lld2 %t.script %t
>  # RUN: llvm-readobj %t.out > /dev/null
>  
> +# RUN: echo "SEARCH_DIR(\"/lib/foo/blah\")" > %t.script
> +# RUN: ld.lld2 %t.script %t
> +# RUN: llvm-readobj %t.out > /dev/null
> +
>  # RUN: echo "FOO(BAR)" > %t.script
>  # RUN: not ld.lld2 -o foo %t.script > %t.log 2>&1
>  # RUN: FileCheck -check-prefix=ERR1 %s < %t.log

Can you also make sure that = aka sysroot prefix is handled correctly
here?

Joerg


More information about the llvm-commits mailing list