[lld] r267314 - ELF: Always include undefined DSO symbols in the symbol table.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 24 15:32:20 PDT 2016


> --- lld/trunk/test/ELF/undef-version-script.s (added)
> +++ lld/trunk/test/ELF/undef-version-script.s Sat Apr 23 21:31:02 2016
> @@ -0,0 +1,37 @@
> +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
> +# RUN: echo "{ local: *; };" > %t.script
> +# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
> +# RUN: llvm-readobj -dyn-symbols %t.so | FileCheck %s

This matches the behaviour of bfd, but not gold, so it was probably
not this change that fixed the check-llvm run. With gold neither foo
nor bar are in the dynamic symbol table.

Please add a note to the test saying that. Please also open a bug. At
some point we should explicitly decide which behaviour is preferred.

Cheers,
Rafael


More information about the llvm-commits mailing list