diff --git a/card10/memory.x b/card10/memory.x index b6dcf42bc0dc6d7bd8e72e141cbc3a83acd2caa4..665e9bc728ee46549f86688ac2c664c39993c951 100644 --- a/card10/memory.x +++ b/card10/memory.x @@ -4,3 +4,12 @@ MEMORY { RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 512k SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M } + +SECTIONS +{ + /DISCARD/ : + { + /* cortex-m-rt's link.x drops only `.ARM.exidx.*` */ + *(.ARM.exidx); + } +}