aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2017-10-20 00:17:08 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2017-10-20 00:17:08 +0200
commitfbb0e5ca14b8b3702e7fa35efda47ab7c6687d09 (patch)
tree9b5dcdbed29c894213d621ba988c18b008cf89aa
parent12521c90a03bf59432de7a7c0e60ccf2a3ef97c2 (diff)
downloadcortex-m-fbb0e5ca14b8b3702e7fa35efda47ab7c6687d09.tar.gz
cortex-m-fbb0e5ca14b8b3702e7fa35efda47ab7c6687d09.tar.zst
cortex-m-fbb0e5ca14b8b3702e7fa35efda47ab7c6687d09.zip
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).
-rw-r--r--cortex-m-rt/link.x7
1 files changed, 0 insertions, 7 deletions
diff --git a/cortex-m-rt/link.x b/cortex-m-rt/link.x
index 0d043cb..5f21477 100644
--- a/cortex-m-rt/link.x
+++ b/cortex-m-rt/link.x
@@ -92,13 +92,6 @@ SECTIONS
.debug_gdb_scripts _stext (INFO) : {
KEEP(*(.debug_gdb_scripts))
}
-
- /DISCARD/ :
- {
- /* Unused unwinding stuff */
- *(.ARM.exidx.*)
- *(.ARM.extab.*)
- }
}
/* Do not exceed this mark in the error messages below | */