On Wed, Nov 29, 2006 at 11:28:25PM +0000, Brian Candler wrote: >On Wed, Nov 29, 2006 at 09:16:54AM -0800, Pawel S. Veselov wrote: >> the better way to do this is to put 'bar()' in another shared object, and >> dlopen() it before the "module" with the RT_GLOBAL flag. >> I put the modified stuff in http://manticore.2y.net/temp/callbacks >Thank you - although that would involve rather more radical surgery on >rp-l2tp than I was hoping to make.
but the point can be made to the authors. -E exports *all* non-static symbols, which will allow loadable modules to gain easy access to symbols they are not supposed to. version scripts may be another alternative, but it's a lot more cumbersome. [ skipped ]