Use symvmer attribute, not asms for symbol versioning
Quoted 6 lines · Petr Lautrbach
This project could not be built with LTO as it uses ASMs to implement symbol versioning. ASMs like this are fundamentally incompatible with LTO because GCC does not look inside the ASM string to find symbol references. Starting with gcc-10 there is a new symbol attribute for implementing symbol versioning.
Quoted 8 lines
A fallback to the old way of implementing symbol versioning via asms is included, so it should work with clang as well as gcc-9 and earlier.
Author: Jeff Law <[email protected]>
Signed-off-by Petr Lautrbach <[email protected]>
Applied, thanks.