summaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2020-05-21 18:39:13 +0800
committerSean Cross <sean@xobs.io>2020-05-27 11:28:49 +0800
commit0169ea5155d553094d33613e94a6c597ee2e0860 (patch)
tree8f1a46670fd6ceafe2b40b6e93465814b9b5b58f /ports
parent87737fb50ac23760ad11f5d23d87dd9020ab5f20 (diff)
nrf: discard arm exception sections
Since these exceptions are unused, don't include them in the output binary. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'ports')
-rw-r--r--ports/nrf/boards/common.template.ld20
1 files changed, 8 insertions, 12 deletions
diff --git a/ports/nrf/boards/common.template.ld b/ports/nrf/boards/common.template.ld
index 334a3506e..5982b8ba0 100644
--- a/ports/nrf/boards/common.template.ld
+++ b/ports/nrf/boards/common.template.ld
@@ -70,18 +70,6 @@ SECTIONS
_etext = .; /* define a global symbol at end of code */
} >FLASH_FIRMWARE
- .ARM.extab :
- {
- *(.ARM.extab* .gnu.linkonce.armextab.*)
- } >FLASH_FIRMWARE
-
- .ARM :
- {
- __exidx_start = .;
- *(.ARM.exidx*)
- __exidx_end = .;
- } >FLASH_FIRMWARE
-
/* used by the startup to initialize data */
_sidata = .;
@@ -145,6 +133,14 @@ SECTIONS
. = ALIGN(4);
} >RAM
+ /* Remove exception unwinding information, since Circuit Python
+ does not support this GCC feature. */
+ /DISCARD/ :
+ {
+ *(.ARM.extab* .gnu.linkonce.armextab.*)
+ *(.ARM.exidx*)
+ }
+
/* Remove information from the standard libraries */
/*
/DISCARD/ :