Skip to content

Check for symbols with default visibility in symbol-check#1073

Open
zmodem wants to merge 1 commit intorust-lang:mainfrom
zmodem:visibility_check
Open

Check for symbols with default visibility in symbol-check#1073
zmodem wants to merge 1 commit intorust-lang:mainfrom
zmodem:visibility_check

Conversation

@zmodem
Copy link

@zmodem zmodem commented Feb 3, 2026

to ensure that compiler-builtins doesn't expose any symbols with default visibility. See discussion on rust-lang/rust#151998

@zmodem
Copy link
Author

zmodem commented Feb 3, 2026

Lots of red on the CI, but that means the patch is working :-)

It's flagging the outline atomics targeted by the Rust-side PR. Also __aeabi_idivmod etc. which I'm assuming are similarly defined as naked_asm functions. Also __rust_probestack.

RSQRT_TAB is a variable though, so I guess that will need another patch to hide.

@tgross35
Copy link
Contributor

tgross35 commented Feb 3, 2026

Looking through the failures, all the naked functions fail as expected. But it seems like static RSQRT_TAB is also exposed? Any idea what's happening there?

@tgross35
Copy link
Contributor

tgross35 commented Feb 3, 2026

Oh sorry, you mentioned that in a comment already and I missed it :) Is that something that could also be fixed in rust-lang/rust#151998?

@zmodem
Copy link
Author

zmodem commented Feb 4, 2026

Yes, I've updated that PR.

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

Successfully merging this pull request may close these issues.

2 participants