Add handling of the .symver asm directives - #994
Conversation
davidlattimore
left a comment
There was a problem hiding this comment.
Awesome! I had assumed that this might have a slight performance impact, but it seems fine.
|
I'm back from hiking and upon @marxin request I've run his Gentoo test build. As the first step I have removed The symbols inside the shared object: Notice According to https://maskray.me/blog/2020-11-26-all-about-symbol-versioning we should create symbol with only one |
|
@marxin it doesn't fix lvm2 build. |
|
@mati865 I've just re-run locally the build of While running on the |
|
Hmm, I'm sure I've copied the binary after building it. Perhaps I've built the debug one by mistake, I'll try later. |
|
🤦🏻♂️ I had run Sorry for the confusion. |
|
No worries, that happens. Anyways, thanks for the testing effort. |
After reworking of changes, the PR includes rudimentary
.symversupport that leads to successful linking of thealsa-libshared library. When we encounter a symbol defined by.symver, we correctly mark it in the.gnu.versionsection.There might still be missing gaps when it comes to symbol resolution if any other symbol points to a one defined via
.symver, but let's see where can we get with this change.