Skip to content

Commit fbb0e5c

Browse files
committed
drop the /DISCARD/ section
TL;DR thanks to rust-lang/rust#45031 we no longer need this Now with -C panic=abort all functions are marked with the `nouwind` attribute in LLVM-IR. With this change LLVM won't generate undefined references to `__aeabi_unwind_cpp_pr0` et al. which we don't use / supply but are required by the AEABI standard in the case that a function that throw exceptions exists (semantically, we never have any of those function with panic=abort but the LLVM-IR didn't reflect this before).
1 parent 12521c9 commit fbb0e5c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cortex-m-rt/link.x

-7
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,6 @@ SECTIONS
9292
.debug_gdb_scripts _stext (INFO) : {
9393
KEEP(*(.debug_gdb_scripts))
9494
}
95-
96-
/DISCARD/ :
97-
{
98-
/* Unused unwinding stuff */
99-
*(.ARM.exidx.*)
100-
*(.ARM.extab.*)
101-
}
10295
}
10396

10497
/* Do not exceed this mark in the error messages below | */

0 commit comments

Comments
 (0)