Re: [CMake] How to use a generated linker map with a shared library?

2017-01-17 Thread Paul Smith
On Tue, 2017-01-17 at 13:20 -0500, Paul Smith wrote: > I wonder whether _fini and _init need to be exported in order to > properly handle global ctor/dtor when the library is loaded/unloaded? >  Hm.  I may need to do some experimentation here. FWIW I tried some experimentation with both dynamic li

Re: [CMake] How to use a generated linker map with a shared library?

2017-01-17 Thread Paul Smith
On Mon, 2017-01-16 at 09:07 -0700, clin...@elemtech.com wrote: > > Yes, thanks for that info.  My situation is that I need to force ALL  > > symbols to be private, even those from external static shared libraries  > > that I'm linking in (whose symbols have global visibility by default). > > Have

Re: [CMake] How to use a generated linker map with a shared library?

2017-01-16 Thread clinton
On Jan 14, 2017 7:16 PM, Paul Smith wrote:On Sun, 2017-01-15 at 12:08 +1100, Craig Scott wrote: > While not directly answering your question, it seems you may be trying > to deal with symbol visibility. Are you aware of CMake's symbol > visibility features? A good place to start would be the >

Re: [CMake] How to use a generated linker map with a shared library?

2017-01-14 Thread Paul Smith
On Sun, 2017-01-15 at 12:08 +1100, Craig Scott wrote: > While not directly answering your question, it seems you may be trying > to deal with symbol visibility. Are you aware of CMake's symbol > visibility features? A good place to start would be the > GenerateExportHeader module, the documentation

Re: [CMake] How to use a generated linker map with a shared library?

2017-01-14 Thread Craig Scott
While not directly answering your question, it seems you may be trying to deal with symbol visibility. Are you aware of CMake's symbol visibility features? A good place to start would be the GenerateExportHeader module, the documentation for which

[CMake] How to use a generated linker map with a shared library?

2017-01-14 Thread Paul Smith
I'm really stuck: maybe someone can provide a hint. I'm trying to create a shared library from a bunch of object files, and use a linker script to mark almost all the symbols as local.  The tricky thing is I'm auto-generating the linker script via a shell script that examines the object files for