This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add support for referencing specific symbol versions
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Mon, 11 Jul 2016 13:00:12 +0100
- Subject: Re: [PATCH] Add support for referencing specific symbol versions
- Authentication-results: sourceware.org; auth=none
- References: <20160622151839.7B42F41C3910C@oldenburg.str.redhat.com> <e82554c1-7d7f-b1ba-4aee-fc078b0a918e@redhat.com>
On 11/07/2016 04:23, Carlos O'Donell wrote:
> On 06/22/2016 11:18 AM, Florian Weimer wrote:
>> This is needed for writing tests of compat symbols.
>>
>> 2016-06-22 Florian Weimer <fweimer@redhat.com>
>>
>> Support linking against compatibility symbols, for use in tests.
>> * include/libc-symbols.h (symbol_version_reference): New macro.
>> (symbol_version): Use it.
>> * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
>> (compat_symbol): Use compat_symbol_reference.
>> (compat_symbol_1, compat_symbol_2): Remove.
>> (compat_symbol_reference, compat_symbol_reference_1)
>> (compat_symbol_reference_2): New macro. Use
>> symbol_version_reference.
>
> This is awesome. Please check this in. I'm happy to see this kind
> of compat symbol testing framework go in!
It could be also useful if you add a small snippet oh how to use such
as the one in include/libc-symbols.h:317.