On Thu, Jan 14, 2010 at 10:38:02AM +0100, Ed Schouten wrote: > * Kostik Belousov <kostik...@gmail.com> wrote: > > You should never remove symbol from the version map for shared library. > > Doing that removes one of the reason for having symbol versioning at all > > (namely, pre-execution check that version requirements of the objects > > are satisfied). FreeBSD allows version maps to grow, that makes the > > check weaker then it ought to be. > > Ah, I see. I discussed this with kan@ the other day and I was under the > impression that using __sym_compat() would be sufficient. So you say I > should leave the __sym_compat(), but revert the change to the > Symbol.map? Would that still allow me to use the symbol, but prevent > linkage against it?
It should. You can recheck it with readelf/objdump. Symbol shall be exported only with FBSD_1.0 version, and have no default version.
pgpGMcS71imTv.pgp
Description: PGP signature