diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-04-03 21:49:37 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-04-06 21:26:57 +0200 |
commit | a8480f0f6e2585a66fb0a9e25135fde8fb11d997 (patch) | |
tree | b9c8eb51815292ed54ef9ef9be8c079a2b37af73 /libdm/datastruct | |
parent | 12949ea886259ead84597a1d4de37c8715d8edb7 (diff) | |
download | lvm2-a8480f0f6e2585a66fb0a9e25135fde8fb11d997.tar.gz |
libdm: symbol versioning with -flto
Gcc10 introduced different strategy how to build
shared libraries with their new LTO optimizer.
Insired by:
https://akkadia.org/drepper/symbol-versioning
https://sourceware.org/pipermail/elfutils-devel/attachments/20200414/1c0c2903/attachment.bin
https://github.com/InBetweenNames/gentooLTO/issues/459
https://github.com/linux-rdma/rdma-core/blob/master/util/symver.h
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200
Diffstat (limited to 'libdm/datastruct')
-rw-r--r-- | libdm/datastruct/bitset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/datastruct/bitset.c b/libdm/datastruct/bitset.c index 8f36ec715..220ea2f26 100644 --- a/libdm/datastruct/bitset.c +++ b/libdm/datastruct/bitset.c @@ -247,11 +247,11 @@ bad: * Maintain backward compatibility with older versions that did not * accept a 'min_num_bits' argument to dm_bitset_parse_list(). */ +DM_EXPORT_SYMBOL(dm_bitset_parse_list, 1_02_129) dm_bitset_t dm_bitset_parse_list_v1_02_129(const char *str, struct dm_pool *mem); dm_bitset_t dm_bitset_parse_list_v1_02_129(const char *str, struct dm_pool *mem) { return dm_bitset_parse_list(str, mem, 0); } -DM_EXPORT_SYMBOL(dm_bitset_parse_list, 1_02_129); #endif |