replace *(.init_array .init_array.*) with KEEP(*(.init_array .init_array.*)).
The KEEP statement within a linker script will instruct the linker to keep the specified section, even if no symbols inside it are referenced. This statement is used within the SECTIONS section of the linker script. This becomes relevant when garbage collection is performed at link time, enabled by passing the --gc-sections switch to the linker. The KEEP statement instructs the linker to use the specified section as a root node when creating a dependency graph, looking for unused sections. Essentially forcing the section to be marked as used.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
README
======
This README discusses issues unique to NuttX configurations for the
STMicro STM32L0538-DISO development board. The STM32L0538-DISO board
is based on the STM32L053C8 MCU (64Kbytes FLASH, 8Kbytes of SRAM and
6Kbytes of EEPROM).
The board features:
- An ST-LINK/V2-1 embedded debug tool interface,
- 2.13" E-paper display, 122×250 pixels
- USB 2.0 FS
- One linear touch sensor or four touchkeys
- IDD current measurement