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>
This commit is contained in:
Sean Cross 2020-05-21 18:39:13 +08:00
parent 87737fb50a
commit 0169ea5155
1 changed files with 8 additions and 12 deletions

View File

@ -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/ :