Skip to contentSkip to conversation

Use symvmer attribute, not asms for symbol versioning

PATCH Marcelo Ricardo Leitner 1 participant 1 message Oct 3, 2020 SCTP protocol

lore
Share & tools
lore

Marcelo Ricardo Leitner

author maintainer Applied
#0 lore raw
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]>

Applied, thanks.