Skip to content

Update #[link_ordinal] behavior - #2406

Open
bjorn3 wants to merge 1 commit into
rust-lang:masterfrom
bjorn3:raw_dylib_ordinal_change
Open

bjorn3 wants to merge 1 commit into
rust-lang:masterfrom
bjorn3:raw_dylib_ordinal_change

Conversation

@bjorn3

@bjorn3 bjorn3 commented Nov 4, 2026

Copy link
Copy Markdown
Member

With rust-lang/rust#159374 #[link_ordinal] will no longer result in an unmangled symbol being generated in the import library. I changed the respective rule in the reference from specifying the contents of the import library to the actual opsem behavior that as I read it had already been implied (that it will call a symbol from the specified dylib with the specified ordinal irrespective of what unmangled symbol definitions or other import libraries exist at link time), but before rust-lang/rust#159374 was not actually true.

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Nov 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants