From cf1907ca5ec44ba3ae126843bc1bb00aeb2dbe09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 4 Apr 2018 18:03:05 +0200 Subject: [PATCH] [ion] Discard un-needed sections in DFU linker script. Change-Id: I1c1c44675a5c1849dc4270673d305abc82d29c48 --- ion/src/device/boot/dfu.ld | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ion/src/device/boot/dfu.ld b/ion/src/device/boot/dfu.ld index 12b71c55d..f32610017 100644 --- a/ion/src/device/boot/dfu.ld +++ b/ion/src/device/boot/dfu.ld @@ -38,5 +38,13 @@ SECTIONS { *(.rodata.*) } >RAM_BUFFER - /* For now, we do not need .bss and .data sections. */ + /DISCARD/ : { + /* For now, we do not need .bss and .data sections. This allows us to simply + * skip any rt0-style initialization and jump straight into the PollAndReset + * routine. */ + *(.bss) + *(.bss.*) + *(.data) + *(.data.*) + } }