-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
#![feature(default_alloc_error_handler)]
caues linker error for target x86_64-unknown-uefi
#96793
Comments
I also encountered this problem when I wrapped .a for c program |
+1 I am running into the same issue, trying to link a no_std+alloc static lib into a c program |
I tested the code above on For the two most recent comments, I would suggest retesting with the current nightly. If it is still reproing, you might want to file a new bug with full repro steps, since the original repro in this issue is fixed. |
The feature @rustbot label -needs-triage-legacy |
Using the feature
default_alloc_error_handler
in combination with the x64 UEFI target causes a liker error on the symbolrust_oom
.I tried this code:
compile with:
I expected the code to compile.
Instead, I get the following linker error:
Using
#![feature(alloc_error_handler)]
with an error handler like this compiles as expected:Meta
rustc --version --verbose
:related: #95113
cc: #66741
The text was updated successfully, but these errors were encountered: