-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit 932d198
Rollup merge of #143260 - dpaoliello:arm64eclinkagain, r=bjorn3
Use the correct export kind for __rust_alloc_error_handler_should_panic
Fixes #143253
`__rust_alloc_error_handler_should_panic` is a static but was being exported as a function.
For most targets this doesn't matter, but Arm64EC Windows uses different decorations for exported variables vs functions, hence it fails to link when `-Z oom=abort` is enabled.
Fix is to export the symbol as data.
r? `@bjorn3`1 file changed
+11
-6
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
222 | - | ||
222 | + | ||
223 | 223 |
| |
224 | - | ||
224 | + | ||
225 | + | ||
226 | + | ||
227 | + | ||
228 | + | ||
229 | + | ||
225 | 230 |
| |
226 | - | ||
227 | - | ||
228 | - | ||
231 | + | ||
232 | + | ||
233 | + | ||
229 | 234 |
| |
230 | 235 |
| |
231 | 236 |
| |
| |||
234 | 239 |
| |
235 | 240 |
| |
236 | 241 |
| |
237 | - | ||
242 | + | ||
238 | 243 |
| |
239 | 244 |
| |
240 | 245 |
| |
|
0 commit comments