当前位置:网站首页>Limiting visibility of symbols when linking shared libraries

Limiting visibility of symbols when linking shared libraries

2022-06-11 02:33:00 javail

problem :

Some platforms mandate that you provide a list of a shared library's external symbols to the linker. Some platforms require that you provide the linker with a list of external symbols for the shared library .However, on most unixish systems that's not necessary: all non-static symbols will be available by default. however , In most unixish On the system , This is not necessary : All non static symbols are available by default .

My understanding is that the GNU toolchain can optionally restrict visibility just to symbols explicitly declared. My understanding is that GNU Tool chains can optionally restrict visibility to only explicitly declared symbols .How can that be achieved using GNU ld? How to use GNU ld To achieve this ?


Solution :

Reference resources : https://stackoom.com/en/question/1pFo
原网站

版权声明
本文为[javail]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020610559520.html