Skip to content

Use -fvisibility=hidden on entire beam executable #9864

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

sverker
Copy link
Contributor

@sverker sverker commented May 22, 2025

Keep the exported name space clean and only expose symbols of documented interfaces like NIF and driver APIs. This will avoid accidental name clashes with our statically linked variants of for example PCRE2 and ZSTD.

sverker added 3 commits May 21, 2025 16:50
Even if tests has been built with links to java files.
as it's only called via NIF API since long ago.
To not pollute the exported name space of the beam
and avoid name clashes with linked in NIFs and drivers.

mtx_SUITE had to be fixed. It now accesses the internal ethread API
via a new peephole in erl_internal_test.h (even on Windows).
@sverker sverker self-assigned this May 22, 2025
@sverker sverker added team:VM Assigned to OTP team VM enhancement testing currently being tested, tag is used by OTP internal CI labels May 22, 2025
Copy link
Contributor

github-actions bot commented May 22, 2025

CT Test Results

    4 files    144 suites   50m 31s ⏱️
1 704 tests 1 644 ✅ 59 💤 1 ❌
2 429 runs  2 349 ✅ 79 💤 1 ❌

For more details on these failures, see this check.

Results for commit 74112b7.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

Copy link
Contributor

@garazdawi garazdawi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed some fixes to make it work on MacOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants