[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
Mon May 2 05:30:29 PDT 2016


On 28 April 2016 at 13:48, Peter Collingbourne <peter at pcc.me.uk> wrote:
>
>
> 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?

Hashes just got implemented in r268210.

Cheers,
Rafael


More information about the llvm-commits mailing list