[PATCH] Add support for referencing specific symbol versions

Adhemerval Zanella adhemerval.zanella@linaro.org
Mon Jul 11 12:00:00 GMT 2016



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.



More information about the Libc-alpha mailing list