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

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 10:48:42 PDT 2016


On Thu, Apr 28, 2016 at 7:09 AM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> 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?
>

"llvm-readobj -version-info" does not show all the information I am
checking here. For example it does not show DSO names or hashes. I can add
a FIXME to teach "-version-info" to show that information, perhaps?

Thanks,
-- 
-- 
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160428/fe8d6d2e/attachment.html>


More information about the llvm-commits mailing list