Skip to content

Commit 6810e14

Browse files
committed
nrf: discard arm exception sections
Since these exceptions are unused, don't include them in the output binary. Signed-off-by: Sean Cross <[email protected]>
1 parent a5f7d4f commit 6810e14

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

ports/nrf/boards/common.template.ld

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,6 @@ SECTIONS
7070
_etext = .; /* define a global symbol at end of code */
7171
} >FLASH_FIRMWARE
7272

73-
.ARM.extab :
74-
{
75-
*(.ARM.extab* .gnu.linkonce.armextab.*)
76-
} >FLASH_FIRMWARE
77-
78-
.ARM :
79-
{
80-
__exidx_start = .;
81-
*(.ARM.exidx*)
82-
__exidx_end = .;
83-
} >FLASH_FIRMWARE
84-
8573
/* used by the startup to initialize data */
8674
_sidata = .;
8775

@@ -145,6 +133,14 @@ SECTIONS
145133
. = ALIGN(4);
146134
} >RAM
147135

136+
/* Remove exception unwinding information, since Circuit Python
137+
does not support this GCC feature. */
138+
/DISCARD/ :
139+
{
140+
*(.ARM.extab* .gnu.linkonce.armextab.*)
141+
*(.ARM.exidx*)
142+
}
143+
148144
/* Remove information from the standard libraries */
149145
/*
150146
/DISCARD/ :

0 commit comments

Comments
 (0)