Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many exported symbols in gost.so #371

Open
vt-alt opened this issue Nov 30, 2021 · 1 comment
Open

Too many exported symbols in gost.so #371

vt-alt opened this issue Nov 30, 2021 · 1 comment

Comments

@vt-alt
Copy link
Member

vt-alt commented Nov 30, 2021

$ nm -D bin/gost.so | grep -w T -c
154

99% из этих символов не нужны (скорее всего нужен только bind_engine)
Есть такие методы решения этой проблемы: https://labjack.com/news/simple-cpp-symbol-visibility-demo
Из них стандартным является ld version scripts.

@vt-alt
Copy link
Member Author

vt-alt commented Nov 30, 2021

Проще всего, наверное, будет сделать глобально -fvisibility=hidden, а для нужных функций __attribute__((__visibility__("default"))).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant