This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add support for referencing specific symbol versions



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]