If this threatens a userspace (meaning glibc in particular) change ...
If this threatens a userspace (meaning glibc in particular) change ...
Posted Aug 22, 2025 0:17 UTC (Fri) by quotemstr (subscriber, #45331)In reply to: If this threatens a userspace (meaning glibc in particular) change ... by davecb
Parent article: Bringing restartable sequences out of the niche
I wish people wouldn't use ELF symbol versioning. It causes problems the moment you step off of the narrow path of running old binaries AOT-compiled native-code on new systems.
What happens if you call dlsym? What happens if you try to build a program on a new system targeting an old one and pick up the new symbol without realizing it? (glibc refuses to provide a preprocessor macro for targeting older systems.)
Much better to give new functions new names. Don't add a symbol version my_api@2. Just define a my_api2(). It looks uglier in the short term, sure, but saves everyone trouble in the end.
