Page MenuHomeFreeBSD

libusb: version symbols
Needs ReviewPublic

Authored by bapt on Fri, Mar 6, 8:09 AM.

Details

Reviewers
emaste
Group Reviewers
USB

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71220
Build 68103: arc lint + arc unit

Event Timeline

bapt requested review of this revision.Fri, Mar 6, 8:09 AM

Adding symbol versions to the library changes the library ABI. This requires the (final) bump of the dso version.

Our rtld has a feature that in theory makes the bump not strictly necessary, but it is recommended anyway, because it improves forward-compatibility by avoiding very confusing error message from rtld when newly linked binary is used with old library without versioning.

lib/libusb/Symbol.map
3

You are mixing the raw linker version script syntax there, with our pre-processed Symbol.map. There is no need in the scope specifiers.

251

All symbols not explicitly listed in the Symbol.map with FreeBSD syntax, are automatically localized AKA not exported.