[lld] r267775 - ELF: Create .gnu.version and .gnu.version_r sections when linking against versioned DSOs.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 07:09:43 PDT 2016


Gosh this is a crazy format. Thanks for implementing it!


> URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/verneed.s?rev=267775&view=auto
> ==============================================================================
> --- lld/trunk/test/ELF/verneed.s (added)
> +++ lld/trunk/test/ELF/verneed.s Wed Apr 27 15:22:31 2016
> @@ -0,0 +1,104 @@
> +# REQUIRES: x86
> +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
> +# RUN: ld.lld %t.o %S/Inputs/verneed1.so %S/Inputs/verneed2.so -o %t
> +# RUN: llvm-readobj -sections -dyn-symbols -dynamic-table %t | FileCheck %s
> +# RUN: llvm-objdump -s %t | FileCheck --check-prefix=CONTENTS %s

Can't you use "llvm-readobj -version-info" instead of checking the raw bits?

Cheers,
Rafael


More information about the llvm-commits mailing list