[DRAFT] Update linker to enable cross-language C/Rust linking #7537
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the CBMC linker takes a fairly strict interpreation of compabibility between compilation units. Rust has a more relaxed view when doing FFI linking: two types are identical if they have the same bitpattern, even if they appear different at the surface level.
For example, the Rust linker would consider the following types equivalent:
Update the linker to make this work