hiding of (global) C++ symbols in shared object

Jakub Jelinek jakub@redhat.com
Mon May 15 03:57:00 GMT 2000


On Mon, May 15, 2000 at 12:34:11PM +0200, Michael Matz wrote:
> Hi,
> 
> sorry for crossposting to two lists. But I don't know to which it applies
> most. I searched the archives but found nothing that really explained the
> problem.

What about using symbol version map?
Say:

MYPLUGIN {
  global:
    init_plugin; what__C9exception; what__C11logic_error; what__C13runtime_error;
  local:
    *;
};


g++ -shared ... -Wl,--version-script=myplugin.map

	Jakub


More information about the Binutils mailing list