Page MenuHomeFreeBSD

libusb: version symbols
Needs ReviewPublic

Authored by bapt on Fri, Mar 6, 8:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 25, 8:09 AM
Unknown Object (File)
Wed, Mar 18, 6:47 AM
Unknown Object (File)
Wed, Mar 18, 3:03 AM
Unknown Object (File)
Thu, Mar 12, 9:21 PM
Unknown Object (File)
Mon, Mar 9, 5:42 PM
Unknown Object (File)
Mon, Mar 9, 4:54 PM
Unknown Object (File)
Sat, Mar 7, 7:05 AM
Unknown Object (File)
Sat, Mar 7, 1:04 AM
Subscribers

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.