-
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
error: undefined symbol: __chkstk in compiling UEFI application on ARM64 #57983
Comments
I understand Maybe a call to |
Thank you for your reply! I'll check if ARM64 support it. |
any update? |
It's still not working now when I run it in Windows. |
Hi,
I'm creating a UEFI application on ARM64. My target .json file is as follows and it works well for a simple hello_world application.
However, when I create a static Once object
pub static MY_OBJECT: Once<MutexIrqSafe<MyStruct>> = Once::new();
and initialize it with
MY_OBJECT.call_once(|| {MutexIrqSafe::new( myobj ) });
,an error occurs
note: rust-lld: error: undefined symbol: __chkstk
I found this link #56913 and it says this error is caused by a large local variable. According to the corresponding commitment 0b00db, I add
"stack_probes": true,
in the target.json file, but the problem is still there. The toolchain I use is nightly-2019-01-02.
Does anyone know how to solve the problem?
The text was updated successfully, but these errors were encountered: