Skip to content

Commit 056d873

Browse files
committed
Discard DefaultHandler weak symbol with LTO
Fixes #247
1 parent 95cfb90 commit 056d873

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

riscv-rt/src/asm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ riscv_rt_macros::llvm_arch_patch!();
3636
// and the global pointer. Then it calls _start_rust.
3737
cfg_global_asm!(
3838
".section .init, \"ax\"
39+
.lto_discard DefaultHandler
3940
.global _start
4041
4142
_start:",

0 commit comments

Comments
 (0)