[go-nuts] Re: How to control the symbol visibility of shared lib built from Go

2017-03-30 Thread Song Liu
Yes. 1. "default" visibility will contribute the loading time. 2. also it's possible to relocate the symbol provided by another linked library. but if it's protected or hidden these symbols won't be relocated anymore during loading. On Tuesday, March 21, 2017 at 8:49:26 PM UTC+8, David

[go-nuts] Re: How to control the symbol visibility of shared lib built from Go

2017-03-21 Thread David Collier-Brown
Hidden isn't used by Go at this time, but if it's part of the elf tradition, then the term probably refers to the same thing that Sunw_PRIVATE did on Solaris: this symbol can only be used within the library, not by anyone outside it. It's a tiny bit of a kludge: we didn't realize we needed a