From 25eb09c3bb6d8f53a96b17c5b2e6afbab5242886 Mon Sep 17 00:00:00 2001 From: cuiziwei Date: Mon, 27 Feb 2023 14:21:36 +0800 Subject: [PATCH] nuttx/boards:add KEEP to *(.init_array .init_array.*) 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 --- boards/arm/a1x/pcduino-a10/scripts/sdram.ld | 2 +- boards/arm/am335x/beaglebone-black/scripts/sdram.ld | 2 +- boards/arm/efm32/efm32-g8xx-stk/scripts/efm32-g8xx-stk.ld | 2 +- boards/arm/efm32/efm32gg-stk3700/scripts/ld.script | 2 +- boards/arm/efm32/olimex-efm32g880f128-stk/scripts/ld.script | 2 +- boards/arm/gd32f4/gd32f450zk-eval/scripts/kernel-space.ld | 2 +- boards/arm/gd32f4/gd32f450zk-eval/scripts/ld.script | 2 +- boards/arm/gd32f4/gd32f450zk-eval/scripts/user-space.ld | 2 +- boards/arm/imxrt/imxrt1020-evk/scripts/flash-ocram.ld | 2 +- boards/arm/imxrt/imxrt1050-evk/scripts/flash-ocram.ld | 2 +- boards/arm/imxrt/imxrt1060-evk/scripts/flash-ocram.ld | 2 +- boards/arm/imxrt/imxrt1060-evk/scripts/flash.ld | 2 +- boards/arm/imxrt/imxrt1064-evk/scripts/flash-ocram.ld | 2 +- boards/arm/imxrt/imxrt1064-evk/scripts/flash.ld | 2 +- boards/arm/imxrt/teensy-4.x/scripts/flash-ocram.ld | 2 +- boards/arm/imxrt/teensy-4.x/scripts/flash.ld | 2 +- boards/arm/imxrt/teensy-4.x/scripts/kernel-space.ld | 2 +- boards/arm/imxrt/teensy-4.x/scripts/user-space.ld | 2 +- boards/arm/kinetis/freedom-k28f/scripts/flash.ld | 2 +- boards/arm/kinetis/freedom-k64f/scripts/flash.ld | 2 +- boards/arm/kinetis/freedom-k66f/scripts/flash.ld | 2 +- boards/arm/kinetis/kwikstik-k40/scripts/kwikstik-k40.ld | 2 +- boards/arm/kinetis/teensy-3.x/scripts/mk20dx128vlh5.ld | 2 +- boards/arm/kinetis/teensy-3.x/scripts/mk20dx256vlh7.ld | 2 +- boards/arm/kinetis/twr-k60n512/scripts/twr-k60n512.ld | 2 +- boards/arm/kinetis/twr-k64f120m/scripts/ld.script | 2 +- boards/arm/kl/freedom-kl25z/scripts/freedom-kl25z.ld | 2 +- boards/arm/kl/freedom-kl26z/scripts/freedom-kl26z.ld | 2 +- boards/arm/kl/teensy-lc/scripts/teensy-lc.ld | 2 +- boards/arm/lc823450/lc823450-xgevk/scripts/user-space.ld | 2 +- boards/arm/lpc17xx_40xx/lincoln60/scripts/ld.script | 2 +- boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/kernel-space.ld | 2 +- boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/ld.script | 2 +- boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/user-space.ld | 2 +- .../lpc17xx_40xx/lpc4088-quickstart/scripts/kernel-space.ld | 2 +- boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/ld.script | 2 +- .../arm/lpc17xx_40xx/lpc4088-quickstart/scripts/user-space.ld | 2 +- boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/scripts/ld.script | 2 +- boards/arm/lpc17xx_40xx/lx_cpu/scripts/kernel-space.ld | 2 +- boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld | 2 +- boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld | 2 +- boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld | 2 +- boards/arm/lpc17xx_40xx/lx_cpu/scripts/user-space.ld | 2 +- boards/arm/lpc17xx_40xx/mbed/scripts/ld.script | 2 +- boards/arm/lpc17xx_40xx/mcb1700/scripts/ld.script | 2 +- boards/arm/lpc17xx_40xx/olimex-lpc1766stk/scripts/ld.script | 2 +- boards/arm/lpc17xx_40xx/open1788/scripts/kernel-space.ld | 2 +- boards/arm/lpc17xx_40xx/open1788/scripts/ld.script | 2 +- boards/arm/lpc17xx_40xx/open1788/scripts/user-space.ld | 2 +- boards/arm/lpc17xx_40xx/pnev5180b/scripts/kernel-space.ld | 2 +- boards/arm/lpc17xx_40xx/pnev5180b/scripts/user-space.ld | 2 +- boards/arm/lpc17xx_40xx/u-blox-c027/scripts/u-blox-c027.ld | 2 +- boards/arm/lpc214x/mcu123-lpc214x/scripts/ld.script | 2 +- boards/arm/lpc214x/zp214xpa/scripts/ld.script | 2 +- boards/arm/lpc2378/olimex-lpc2378/scripts/ld.script | 2 +- boards/arm/lpc31xx/ea3131/scripts/ld.script | 2 +- boards/arm/lpc31xx/ea3131/scripts/pg-ld.script | 2 +- boards/arm/lpc31xx/ea3152/scripts/ea3152.ld | 2 +- boards/arm/lpc31xx/olimex-lpc-h3131/scripts/ld.script | 2 +- boards/arm/lpc43xx/bambino-200e/scripts/ramconfig.ld | 2 +- boards/arm/lpc43xx/bambino-200e/scripts/spificonfig.ld | 2 +- boards/arm/lpc43xx/bambino-200e/scripts/user-space.ld | 2 +- boards/arm/lpc43xx/lpc4330-xplorer/scripts/ramconfig.ld | 2 +- boards/arm/lpc43xx/lpc4330-xplorer/scripts/spificonfig.ld | 2 +- boards/arm/lpc43xx/lpc4337-ws/scripts/flashaconfig.ld | 2 +- boards/arm/lpc43xx/lpc4337-ws/scripts/ramconfig.ld | 2 +- boards/arm/lpc43xx/lpc4357-evb/scripts/flashaconfig.ld | 2 +- boards/arm/lpc43xx/lpc4357-evb/scripts/ramconfig.ld | 2 +- boards/arm/lpc43xx/lpc4357-evb/scripts/spificonfig.ld | 2 +- boards/arm/lpc43xx/lpc4370-link2/scripts/ramconfig.ld | 2 +- boards/arm/lpc43xx/lpc4370-link2/scripts/spificonfig.ld | 2 +- boards/arm/lpc54xx/lpcxpresso-lpc54628/scripts/flash.ld | 2 +- boards/arm/max326xx/max32660-evsys/scripts/flash.ld | 2 +- boards/arm/max326xx/max32660-evsys/scripts/sram.ld | 2 +- boards/arm/moxart/moxa/scripts/moxa.ld | 2 +- boards/arm/nrf52/nrf52-feather/scripts/flash_config.ld | 2 +- boards/arm/nrf52/nrf52832-dk/scripts/flash_config.ld | 2 +- boards/arm/nrf52/nrf52832-mdk/scripts/flash_config.ld | 2 +- boards/arm/nrf52/nrf52832-sparkfun/scripts/flash_config.ld | 2 +- boards/arm/nrf52/nrf52840-dk/scripts/flash_config.ld | 2 +- boards/arm/nrf52/nrf52840-dongle/scripts/flash_config.ld | 2 +- boards/arm/nrf52/thingy52/scripts/flash_config.ld | 2 +- boards/arm/nrf53/thingy53/scripts/flash_net.ld | 2 +- boards/arm/nuc1xx/nutiny-nuc120/scripts/nutiny-nuc120.ld | 2 +- boards/arm/phy62xx/phy6222/scripts/flash.ld | 2 +- .../scripts/adafruit-feather-rp2040-flash.ld | 2 +- .../scripts/adafruit-feather-rp2040-sram.ld | 2 +- .../rp2040/adafruit-kb2040/scripts/adafruit-kb2040-flash.ld | 2 +- .../arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-sram.ld | 2 +- .../scripts/adafruit-qt-py-rp2040-flash.ld | 2 +- .../scripts/adafruit-qt-py-rp2040-sram.ld | 2 +- .../pimoroni-tiny2040/scripts/pimoroni-tiny2040-flash.ld | 2 +- .../rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-sram.ld | 2 +- .../raspberrypi-pico-w/scripts/raspberrypi-pico-flash.ld | 2 +- .../rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-sram.ld | 2 +- .../rp2040/raspberrypi-pico/scripts/raspberrypi-pico-flash.ld | 2 +- .../rp2040/raspberrypi-pico/scripts/raspberrypi-pico-sram.ld | 2 +- .../scripts/waveshare-rp2040-lcd-1-28-flash.ld | 2 +- .../scripts/waveshare-rp2040-lcd-1-28-sram.ld | 2 +- boards/arm/sam34/arduino-due/scripts/arduino-due.ld | 2 +- boards/arm/sam34/flipnclick-sam3x/scripts/flash.ld | 2 +- boards/arm/sam34/sam3u-ek/scripts/kernel-space.ld | 2 +- boards/arm/sam34/sam3u-ek/scripts/ld.script | 2 +- boards/arm/sam34/sam3u-ek/scripts/user-space.ld | 2 +- boards/arm/sam34/sam4cmp-db/scripts/sam4cmp-db.ld | 2 +- boards/arm/sam34/sam4e-ek/scripts/flash.ld | 2 +- boards/arm/sam34/sam4l-xplained/scripts/sam4l-xplained.ld | 2 +- .../arm/sam34/sam4s-xplained-pro/scripts/sam4s-xplained-pro.ld | 2 +- boards/arm/sam34/sam4s-xplained/scripts/sam4s-xplained.ld | 2 +- boards/arm/sama5/giant-board/scripts/dramboot.ld | 2 +- boards/arm/sama5/giant-board/scripts/isram.ld | 2 +- boards/arm/sama5/giant-board/scripts/uboot.ld | 2 +- boards/arm/sama5/jupiter-nano/scripts/dramboot.ld | 2 +- boards/arm/sama5/jupiter-nano/scripts/isram.ld | 2 +- boards/arm/sama5/jupiter-nano/scripts/uboot.ld | 2 +- boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld | 2 +- boards/arm/sama5/sama5d2-xult/scripts/isram.ld | 2 +- boards/arm/sama5/sama5d2-xult/scripts/uboot.ld | 2 +- boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld | 2 +- boards/arm/sama5/sama5d3-xplained/scripts/isram.ld | 2 +- boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld | 2 +- boards/arm/sama5/sama5d3x-ek/scripts/isram.ld | 2 +- boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld | 2 +- boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld | 2 +- boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld | 2 +- boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld | 2 +- boards/arm/sama5/sama5d4-ek/scripts/isram.ld | 2 +- boards/arm/sama5/sama5d4-ek/scripts/uboot.ld | 2 +- boards/arm/samd2l2/arduino-m0/scripts/flash.ld | 2 +- boards/arm/samd2l2/circuit-express/scripts/flash.ld | 2 +- boards/arm/samd2l2/samd20-xplained/scripts/flash.ld | 2 +- boards/arm/samd2l2/samd21-xplained/scripts/flash.ld | 2 +- boards/arm/samd2l2/saml21-xplained/scripts/flash.ld | 2 +- boards/arm/samd5e5/metro-m4/scripts/flash.ld | 2 +- boards/arm/samd5e5/metro-m4/scripts/sram.ld | 2 +- boards/arm/samd5e5/same54-xplained-pro/scripts/flash.ld | 2 +- boards/arm/samd5e5/same54-xplained-pro/scripts/sram.ld | 2 +- boards/arm/samv7/common/scripts/flash.ld.template | 3 +-- boards/arm/samv7/common/scripts/kernel-space.ld | 2 +- boards/arm/samv7/common/scripts/user-space.ld | 2 +- boards/arm/stm32/axoloti/scripts/kernel-space.ld | 2 +- boards/arm/stm32/axoloti/scripts/ld.script | 2 +- boards/arm/stm32/axoloti/scripts/user-space.ld | 2 +- boards/arm/stm32/b-g431b-esc1/scripts/ld.script | 2 +- boards/arm/stm32/b-g474e-dpow1/scripts/ld.script | 2 +- boards/arm/stm32/b-g474e-dpow1/scripts/ld.script.dfu | 2 +- boards/arm/stm32/clicker2-stm32/scripts/flash.ld | 2 +- boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld | 2 +- boards/arm/stm32/clicker2-stm32/scripts/user-space.ld | 2 +- boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld | 2 +- boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld | 2 +- boards/arm/stm32/emw3162/scripts/ld.script | 2 +- boards/arm/stm32/et-stm32-stamp/scripts/ld.script | 2 +- boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld | 2 +- boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld | 2 +- boards/arm/stm32/hymini-stm32v/scripts/ld.script | 2 +- boards/arm/stm32/maple/scripts/ld.script | 2 +- boards/arm/stm32/maple/scripts/ld.script.dfu | 2 +- boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld | 2 +- boards/arm/stm32/mikroe-stm32f4/scripts/ld.script | 2 +- boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld | 2 +- boards/arm/stm32/nucleo-f103rb/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f207zg/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f302r8/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f303re/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f303ze/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f334r8/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld | 2 +- boards/arm/stm32/nucleo-f412zg/scripts/f412zg.ld | 2 +- boards/arm/stm32/nucleo-f429zi/scripts/kernel-space.ld | 2 +- boards/arm/stm32/nucleo-f429zi/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f429zi/scripts/user-space.ld | 2 +- boards/arm/stm32/nucleo-f446re/scripts/f446re.ld | 2 +- boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld | 2 +- boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld | 2 +- boards/arm/stm32/nucleo-g431kb/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-g431rb/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-g474re/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-g474re/scripts/ld.script.dfu | 2 +- boards/arm/stm32/nucleo-l152re/scripts/ld.script | 2 +- boards/arm/stm32/olimex-stm32-e407/scripts/f407ze.ld | 2 +- boards/arm/stm32/olimex-stm32-e407/scripts/f407zg.ld | 2 +- boards/arm/stm32/olimex-stm32-h405/scripts/ld.script | 2 +- boards/arm/stm32/olimex-stm32-h407/scripts/ld.script | 2 +- boards/arm/stm32/olimex-stm32-p107/scripts/ld.script | 2 +- boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu | 2 +- boards/arm/stm32/olimex-stm32-p207/scripts/ld.script | 2 +- boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld | 2 +- boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld | 2 +- boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld | 2 +- boards/arm/stm32/olimexino-stm32/scripts/ld.script | 2 +- boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu | 2 +- boards/arm/stm32/omnibusf4/scripts/kernel-space.ld | 2 +- boards/arm/stm32/omnibusf4/scripts/ld.script | 2 +- boards/arm/stm32/omnibusf4/scripts/user-space.ld | 2 +- boards/arm/stm32/photon/scripts/photon_dfu.ld | 2 +- boards/arm/stm32/photon/scripts/photon_jtag.ld | 2 +- boards/arm/stm32/shenzhou/scripts/ld.script | 2 +- boards/arm/stm32/shenzhou/scripts/ld.script.dfu | 2 +- boards/arm/stm32/stm3210e-eval/scripts/ld.script | 2 +- boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu | 2 +- boards/arm/stm32/stm3220g-eval/scripts/ld.script | 2 +- boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld | 2 +- boards/arm/stm32/stm3240g-eval/scripts/ld.script | 2 +- boards/arm/stm32/stm3240g-eval/scripts/user-space.ld | 2 +- boards/arm/stm32/stm32_tiny/scripts/ld.script | 2 +- boards/arm/stm32/stm32butterfly2/scripts/dfu.ld | 2 +- boards/arm/stm32/stm32butterfly2/scripts/flash.ld | 2 +- boards/arm/stm32/stm32f103-minimum/scripts/ld.script | 2 +- boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu | 2 +- boards/arm/stm32/stm32f334-disco/scripts/ld.script | 2 +- boards/arm/stm32/stm32f3discovery/scripts/ld.script | 2 +- boards/arm/stm32/stm32f411-minimum/scripts/stm32f411ce.ld | 2 +- boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld | 2 +- boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld | 2 +- boards/arm/stm32/stm32f429i-disco/scripts/ld.script | 2 +- boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld | 2 +- boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld | 2 +- boards/arm/stm32/stm32f4discovery/scripts/user-space.ld | 2 +- boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld | 2 +- boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld | 2 +- boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld | 2 +- boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld | 2 +- boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld | 2 +- boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script | 2 +- boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld | 2 +- boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld | 2 +- boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script | 2 +- boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script | 2 +- boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script | 2 +- boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld | 2 +- boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld | 2 +- boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/ld.script | 2 +- boards/arm/stm32f0l0g0/stm32l0538-disco/scripts/ld.script | 2 +- boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld | 2 +- boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld | 2 +- boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld | 2 +- boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld | 2 +- boards/arm/stm32f7/nucleo-144/scripts/user-space.ld | 2 +- boards/arm/stm32f7/steval-eth001v1/scripts/flash.ld | 2 +- boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld | 2 +- boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld | 2 +- boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld | 2 +- boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld | 2 +- boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld | 2 +- boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld | 2 +- boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld | 2 +- boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld | 2 +- boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld | 2 +- boards/arm/stm32f7/stm32f777zit6-meadow/scripts/flash.ld | 2 +- .../arm/stm32f7/stm32f777zit6-meadow/scripts/kernel-space.ld | 2 +- boards/arm/stm32f7/stm32f777zit6-meadow/scripts/user-space.ld | 2 +- boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-app.ld | 2 +- .../arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-loader.ld | 2 +- boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld | 2 +- boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld | 2 +- boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld | 2 +- boards/arm/stm32h7/nucleo-h743zi2/scripts/flash.ld | 2 +- boards/arm/stm32h7/nucleo-h743zi2/scripts/user-space.ld | 2 +- boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld | 2 +- boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld | 2 +- boards/arm/stm32h7/stm32h747i-disco/scripts/user-space.ld | 2 +- boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld | 2 +- boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld | 2 +- boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld | 2 +- boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld | 2 +- boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld | 2 +- boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld | 2 +- boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld | 2 +- boards/arm/stm32l4/steval-stlcs01v1/scripts/ld.script | 2 +- boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld | 2 +- boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld | 2 +- .../arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld | 2 +- boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld | 2 +- boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld | 2 +- .../arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld | 2 +- boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld | 2 +- boards/arm/stm32l5/nucleo-l552ze/scripts/flash.ld | 2 +- boards/arm/stm32l5/stm32l562e-dk/scripts/tfm-ns.ld | 2 +- boards/arm/stm32u5/b-u585i-iot02a/scripts/flash.ld | 2 +- boards/arm/stm32u5/b-u585i-iot02a/scripts/tfm-ns.ld | 2 +- boards/arm/stm32wb/flipperzero/scripts/flipperzero.ld | 2 +- boards/arm/stm32wb/nucleo-wb55rg/scripts/wb55rg.ld | 2 +- boards/arm/stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld | 2 +- boards/arm/str71x/olimex-strp711/scripts/ld.script | 2 +- boards/arm/tiva/dk-tm4c129x/scripts/ld.script | 2 +- boards/arm/tiva/eagle100/scripts/ld.script | 2 +- boards/arm/tiva/ekk-lm3s9b96/scripts/ekk-lm3s9b96.ld | 2 +- boards/arm/tiva/launchxl-cc1310/scripts/flash.ld | 2 +- boards/arm/tiva/launchxl-cc1312r1/scripts/flash.ld | 2 +- boards/arm/tiva/launchxl-cc1312r1/scripts/sram.ld | 2 +- boards/arm/tiva/lm3s6432-s2e/scripts/lm3s6432-s2e.ld | 2 +- boards/arm/tiva/lm3s6965-ek/scripts/kernel-space.ld | 2 +- boards/arm/tiva/lm3s6965-ek/scripts/ld.script | 2 +- boards/arm/tiva/lm3s6965-ek/scripts/user-space.ld | 2 +- boards/arm/tiva/lm3s8962-ek/scripts/ld.script | 2 +- boards/arm/tiva/lm4f120-launchpad/scripts/lm4f120-launchpad.ld | 2 +- .../arm/tiva/tm4c123g-launchpad/scripts/tm4c123g-launchpad.ld | 2 +- boards/arm/tiva/tm4c1294-launchpad/scripts/ld.script | 2 +- boards/arm/tiva/tm4c129e-launchpad/scripts/ld.script | 2 +- boards/arm/tms570/launchxl-tms57004/scripts/flash-sram.ld | 2 +- boards/arm/tms570/tms570ls31x-usb-kit/scripts/flash-sram.ld | 2 +- boards/arm/xmc4/xmc4500-relax/scripts/flash.ld | 2 +- boards/arm/xmc4/xmc4700-relax/scripts/flash.ld | 2 +- boards/arm64/a64/pinephone/scripts/dramboot.ld | 2 +- boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld | 2 +- 306 files changed, 306 insertions(+), 307 deletions(-) diff --git a/boards/arm/a1x/pcduino-a10/scripts/sdram.ld b/boards/arm/a1x/pcduino-a10/scripts/sdram.ld index 1b960cb0ed..00b4c7bf9d 100644 --- a/boards/arm/a1x/pcduino-a10/scripts/sdram.ld +++ b/boards/arm/a1x/pcduino-a10/scripts/sdram.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/am335x/beaglebone-black/scripts/sdram.ld b/boards/arm/am335x/beaglebone-black/scripts/sdram.ld index bf809d8a95..5caae5b09f 100644 --- a/boards/arm/am335x/beaglebone-black/scripts/sdram.ld +++ b/boards/arm/am335x/beaglebone-black/scripts/sdram.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > ddr diff --git a/boards/arm/efm32/efm32-g8xx-stk/scripts/efm32-g8xx-stk.ld b/boards/arm/efm32/efm32-g8xx-stk/scripts/efm32-g8xx-stk.ld index ea647b85e1..c29491e5b8 100644 --- a/boards/arm/efm32/efm32-g8xx-stk/scripts/efm32-g8xx-stk.ld +++ b/boards/arm/efm32/efm32-g8xx-stk/scripts/efm32-g8xx-stk.ld @@ -48,7 +48,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/efm32/efm32gg-stk3700/scripts/ld.script b/boards/arm/efm32/efm32gg-stk3700/scripts/ld.script index 1e3a9c4bbd..cb72954bde 100644 --- a/boards/arm/efm32/efm32gg-stk3700/scripts/ld.script +++ b/boards/arm/efm32/efm32gg-stk3700/scripts/ld.script @@ -48,7 +48,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/efm32/olimex-efm32g880f128-stk/scripts/ld.script b/boards/arm/efm32/olimex-efm32g880f128-stk/scripts/ld.script index 241706c22c..2cd2182aa7 100644 --- a/boards/arm/efm32/olimex-efm32g880f128-stk/scripts/ld.script +++ b/boards/arm/efm32/olimex-efm32g880f128-stk/scripts/ld.script @@ -48,7 +48,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/gd32f4/gd32f450zk-eval/scripts/kernel-space.ld b/boards/arm/gd32f4/gd32f450zk-eval/scripts/kernel-space.ld index 2ad4fa660e..b72d44101e 100644 --- a/boards/arm/gd32f4/gd32f450zk-eval/scripts/kernel-space.ld +++ b/boards/arm/gd32f4/gd32f450zk-eval/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/gd32f4/gd32f450zk-eval/scripts/ld.script b/boards/arm/gd32f4/gd32f450zk-eval/scripts/ld.script index d14ef1ec80..174ffdb121 100644 --- a/boards/arm/gd32f4/gd32f450zk-eval/scripts/ld.script +++ b/boards/arm/gd32f4/gd32f450zk-eval/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/gd32f4/gd32f450zk-eval/scripts/user-space.ld b/boards/arm/gd32f4/gd32f450zk-eval/scripts/user-space.ld index 06d62960e2..7258e052ef 100644 --- a/boards/arm/gd32f4/gd32f450zk-eval/scripts/user-space.ld +++ b/boards/arm/gd32f4/gd32f450zk-eval/scripts/user-space.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/imxrt/imxrt1020-evk/scripts/flash-ocram.ld b/boards/arm/imxrt/imxrt1020-evk/scripts/flash-ocram.ld index 2abb0763f5..facca7e0e8 100644 --- a/boards/arm/imxrt/imxrt1020-evk/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/imxrt1020-evk/scripts/flash-ocram.ld @@ -77,7 +77,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1050-evk/scripts/flash-ocram.ld b/boards/arm/imxrt/imxrt1050-evk/scripts/flash-ocram.ld index 399fd0a210..bfc6a33cf4 100644 --- a/boards/arm/imxrt/imxrt1050-evk/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/imxrt1050-evk/scripts/flash-ocram.ld @@ -76,7 +76,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1060-evk/scripts/flash-ocram.ld b/boards/arm/imxrt/imxrt1060-evk/scripts/flash-ocram.ld index f94066f110..3e42779e0d 100644 --- a/boards/arm/imxrt/imxrt1060-evk/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/imxrt1060-evk/scripts/flash-ocram.ld @@ -122,7 +122,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1060-evk/scripts/flash.ld b/boards/arm/imxrt/imxrt1060-evk/scripts/flash.ld index 554ec4f81a..f8c45ec771 100644 --- a/boards/arm/imxrt/imxrt1060-evk/scripts/flash.ld +++ b/boards/arm/imxrt/imxrt1060-evk/scripts/flash.ld @@ -75,7 +75,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1064-evk/scripts/flash-ocram.ld b/boards/arm/imxrt/imxrt1064-evk/scripts/flash-ocram.ld index 88434807fd..7ed246245b 100644 --- a/boards/arm/imxrt/imxrt1064-evk/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/imxrt1064-evk/scripts/flash-ocram.ld @@ -122,7 +122,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1064-evk/scripts/flash.ld b/boards/arm/imxrt/imxrt1064-evk/scripts/flash.ld index d233d15393..963fcda171 100644 --- a/boards/arm/imxrt/imxrt1064-evk/scripts/flash.ld +++ b/boards/arm/imxrt/imxrt1064-evk/scripts/flash.ld @@ -75,7 +75,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/teensy-4.x/scripts/flash-ocram.ld b/boards/arm/imxrt/teensy-4.x/scripts/flash-ocram.ld index 7fcc212499..3d380faea7 100644 --- a/boards/arm/imxrt/teensy-4.x/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/teensy-4.x/scripts/flash-ocram.ld @@ -122,7 +122,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/teensy-4.x/scripts/flash.ld b/boards/arm/imxrt/teensy-4.x/scripts/flash.ld index 572afe84ff..679283f584 100644 --- a/boards/arm/imxrt/teensy-4.x/scripts/flash.ld +++ b/boards/arm/imxrt/teensy-4.x/scripts/flash.ld @@ -75,7 +75,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/teensy-4.x/scripts/kernel-space.ld b/boards/arm/imxrt/teensy-4.x/scripts/kernel-space.ld index 1f9cffc924..48d8bddfcb 100644 --- a/boards/arm/imxrt/teensy-4.x/scripts/kernel-space.ld +++ b/boards/arm/imxrt/teensy-4.x/scripts/kernel-space.ld @@ -48,7 +48,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/imxrt/teensy-4.x/scripts/user-space.ld b/boards/arm/imxrt/teensy-4.x/scripts/user-space.ld index a7d36d9adf..ee2645d929 100644 --- a/boards/arm/imxrt/teensy-4.x/scripts/user-space.ld +++ b/boards/arm/imxrt/teensy-4.x/scripts/user-space.ld @@ -62,7 +62,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/kinetis/freedom-k28f/scripts/flash.ld b/boards/arm/kinetis/freedom-k28f/scripts/flash.ld index f8e46ebdab..48ff5da17c 100644 --- a/boards/arm/kinetis/freedom-k28f/scripts/flash.ld +++ b/boards/arm/kinetis/freedom-k28f/scripts/flash.ld @@ -84,7 +84,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/freedom-k64f/scripts/flash.ld b/boards/arm/kinetis/freedom-k64f/scripts/flash.ld index 6113913a56..a6ce88ccf5 100644 --- a/boards/arm/kinetis/freedom-k64f/scripts/flash.ld +++ b/boards/arm/kinetis/freedom-k64f/scripts/flash.ld @@ -72,7 +72,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/freedom-k66f/scripts/flash.ld b/boards/arm/kinetis/freedom-k66f/scripts/flash.ld index 1a51a775bb..7c20bd124f 100644 --- a/boards/arm/kinetis/freedom-k66f/scripts/flash.ld +++ b/boards/arm/kinetis/freedom-k66f/scripts/flash.ld @@ -68,7 +68,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/kwikstik-k40/scripts/kwikstik-k40.ld b/boards/arm/kinetis/kwikstik-k40/scripts/kwikstik-k40.ld index cfbd563bfa..025c76cf1d 100644 --- a/boards/arm/kinetis/kwikstik-k40/scripts/kwikstik-k40.ld +++ b/boards/arm/kinetis/kwikstik-k40/scripts/kwikstik-k40.ld @@ -72,7 +72,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/teensy-3.x/scripts/mk20dx128vlh5.ld b/boards/arm/kinetis/teensy-3.x/scripts/mk20dx128vlh5.ld index bc1fe6269e..604ea2e8eb 100644 --- a/boards/arm/kinetis/teensy-3.x/scripts/mk20dx128vlh5.ld +++ b/boards/arm/kinetis/teensy-3.x/scripts/mk20dx128vlh5.ld @@ -72,7 +72,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/teensy-3.x/scripts/mk20dx256vlh7.ld b/boards/arm/kinetis/teensy-3.x/scripts/mk20dx256vlh7.ld index 4b64f2e136..f628d1b836 100644 --- a/boards/arm/kinetis/teensy-3.x/scripts/mk20dx256vlh7.ld +++ b/boards/arm/kinetis/teensy-3.x/scripts/mk20dx256vlh7.ld @@ -72,7 +72,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/twr-k60n512/scripts/twr-k60n512.ld b/boards/arm/kinetis/twr-k60n512/scripts/twr-k60n512.ld index 47f8a32f9d..33eb5b213e 100644 --- a/boards/arm/kinetis/twr-k60n512/scripts/twr-k60n512.ld +++ b/boards/arm/kinetis/twr-k60n512/scripts/twr-k60n512.ld @@ -72,7 +72,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/twr-k64f120m/scripts/ld.script b/boards/arm/kinetis/twr-k64f120m/scripts/ld.script index c69d596347..df64a98a3b 100644 --- a/boards/arm/kinetis/twr-k64f120m/scripts/ld.script +++ b/boards/arm/kinetis/twr-k64f120m/scripts/ld.script @@ -72,7 +72,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kl/freedom-kl25z/scripts/freedom-kl25z.ld b/boards/arm/kl/freedom-kl25z/scripts/freedom-kl25z.ld index 5f59ac0c1b..baef9b0bf4 100644 --- a/boards/arm/kl/freedom-kl25z/scripts/freedom-kl25z.ld +++ b/boards/arm/kl/freedom-kl25z/scripts/freedom-kl25z.ld @@ -63,7 +63,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kl/freedom-kl26z/scripts/freedom-kl26z.ld b/boards/arm/kl/freedom-kl26z/scripts/freedom-kl26z.ld index 9d89206883..5338d9c1d1 100644 --- a/boards/arm/kl/freedom-kl26z/scripts/freedom-kl26z.ld +++ b/boards/arm/kl/freedom-kl26z/scripts/freedom-kl26z.ld @@ -63,7 +63,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kl/teensy-lc/scripts/teensy-lc.ld b/boards/arm/kl/teensy-lc/scripts/teensy-lc.ld index 074acc2cd4..16b06ea606 100644 --- a/boards/arm/kl/teensy-lc/scripts/teensy-lc.ld +++ b/boards/arm/kl/teensy-lc/scripts/teensy-lc.ld @@ -63,7 +63,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/lc823450/lc823450-xgevk/scripts/user-space.ld b/boards/arm/lc823450/lc823450-xgevk/scripts/user-space.ld index 1541fc155f..dd627c21d0 100644 --- a/boards/arm/lc823450/lc823450-xgevk/scripts/user-space.ld +++ b/boards/arm/lc823450/lc823450-xgevk/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc17xx_40xx/lincoln60/scripts/ld.script b/boards/arm/lpc17xx_40xx/lincoln60/scripts/ld.script index cc31f9fb87..cf8a923f21 100644 --- a/boards/arm/lpc17xx_40xx/lincoln60/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/lincoln60/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/kernel-space.ld b/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/kernel-space.ld index a44736b1d3..4be12f0b07 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/ld.script b/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/ld.script index 78d56e9366..71ce85a616 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > FLASH diff --git a/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/user-space.ld b/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/user-space.ld index 5c4eebaffa..4a599d00e7 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/kernel-space.ld b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/kernel-space.ld index 4959807ead..7d45e96533 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/ld.script b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/ld.script index 7d11062d2b..0437b29061 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > FLASH diff --git a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/user-space.ld b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/user-space.ld index 4ce1b956e2..88527e81dd 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/scripts/ld.script b/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/scripts/ld.script index 6f743cd9de..7d78fde37e 100644 --- a/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/kernel-space.ld b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/kernel-space.ld index c0418f50ba..aee89e2c60 100644 --- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld index 621a9e120a..2b3e1ef36c 100644 --- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld +++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-app.ld @@ -64,7 +64,7 @@ SECTIONS .init_section : ALIGN(16) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > FLASH diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld index be0d5527b9..adfb45dd14 100644 --- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld +++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-flash-boot.ld @@ -62,7 +62,7 @@ SECTIONS .init_section : ALIGN(16) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > FLASH diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld index b7531692c4..e13f9a000e 100644 --- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld +++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld @@ -65,7 +65,7 @@ SECTIONS .init_section : ALIGN(16) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > SDRAM diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/user-space.ld b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/user-space.ld index 01d9fed5f4..7434c58926 100644 --- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc17xx_40xx/mbed/scripts/ld.script b/boards/arm/lpc17xx_40xx/mbed/scripts/ld.script index 2f10367896..36ad1a9547 100644 --- a/boards/arm/lpc17xx_40xx/mbed/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/mbed/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc17xx_40xx/mcb1700/scripts/ld.script b/boards/arm/lpc17xx_40xx/mcb1700/scripts/ld.script index 42609757a4..fd80485411 100644 --- a/boards/arm/lpc17xx_40xx/mcb1700/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/mcb1700/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/scripts/ld.script b/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/scripts/ld.script index daf28bdf9b..c81388ac67 100644 --- a/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc17xx_40xx/open1788/scripts/kernel-space.ld b/boards/arm/lpc17xx_40xx/open1788/scripts/kernel-space.ld index f07f457b1c..d8ecc7a51d 100644 --- a/boards/arm/lpc17xx_40xx/open1788/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/open1788/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/lpc17xx_40xx/open1788/scripts/ld.script b/boards/arm/lpc17xx_40xx/open1788/scripts/ld.script index 1ac9398cab..f4e72ff5ad 100644 --- a/boards/arm/lpc17xx_40xx/open1788/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/open1788/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > FLASH diff --git a/boards/arm/lpc17xx_40xx/open1788/scripts/user-space.ld b/boards/arm/lpc17xx_40xx/open1788/scripts/user-space.ld index cdd43af1e9..2af86d0e6e 100644 --- a/boards/arm/lpc17xx_40xx/open1788/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/open1788/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc17xx_40xx/pnev5180b/scripts/kernel-space.ld b/boards/arm/lpc17xx_40xx/pnev5180b/scripts/kernel-space.ld index 82b0fb7c42..2d50ce38e9 100644 --- a/boards/arm/lpc17xx_40xx/pnev5180b/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/pnev5180b/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/lpc17xx_40xx/pnev5180b/scripts/user-space.ld b/boards/arm/lpc17xx_40xx/pnev5180b/scripts/user-space.ld index 1453c3bb14..311671f3ee 100644 --- a/boards/arm/lpc17xx_40xx/pnev5180b/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/pnev5180b/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc17xx_40xx/u-blox-c027/scripts/u-blox-c027.ld b/boards/arm/lpc17xx_40xx/u-blox-c027/scripts/u-blox-c027.ld index aba594fed1..975d6ed0a0 100644 --- a/boards/arm/lpc17xx_40xx/u-blox-c027/scripts/u-blox-c027.ld +++ b/boards/arm/lpc17xx_40xx/u-blox-c027/scripts/u-blox-c027.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc214x/mcu123-lpc214x/scripts/ld.script b/boards/arm/lpc214x/mcu123-lpc214x/scripts/ld.script index 201f1b59ed..7adcad23be 100644 --- a/boards/arm/lpc214x/mcu123-lpc214x/scripts/ld.script +++ b/boards/arm/lpc214x/mcu123-lpc214x/scripts/ld.script @@ -57,7 +57,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc214x/zp214xpa/scripts/ld.script b/boards/arm/lpc214x/zp214xpa/scripts/ld.script index 679ca08e62..7098507581 100644 --- a/boards/arm/lpc214x/zp214xpa/scripts/ld.script +++ b/boards/arm/lpc214x/zp214xpa/scripts/ld.script @@ -57,7 +57,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc2378/olimex-lpc2378/scripts/ld.script b/boards/arm/lpc2378/olimex-lpc2378/scripts/ld.script index b0a074ffc6..f781e6ae02 100644 --- a/boards/arm/lpc2378/olimex-lpc2378/scripts/ld.script +++ b/boards/arm/lpc2378/olimex-lpc2378/scripts/ld.script @@ -68,7 +68,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > ROM diff --git a/boards/arm/lpc31xx/ea3131/scripts/ld.script b/boards/arm/lpc31xx/ea3131/scripts/ld.script index 38de596298..baf6a90777 100644 --- a/boards/arm/lpc31xx/ea3131/scripts/ld.script +++ b/boards/arm/lpc31xx/ea3131/scripts/ld.script @@ -51,7 +51,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/lpc31xx/ea3131/scripts/pg-ld.script b/boards/arm/lpc31xx/ea3131/scripts/pg-ld.script index f652adff5d..bef0517168 100644 --- a/boards/arm/lpc31xx/ea3131/scripts/pg-ld.script +++ b/boards/arm/lpc31xx/ea3131/scripts/pg-ld.script @@ -80,7 +80,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > locked diff --git a/boards/arm/lpc31xx/ea3152/scripts/ea3152.ld b/boards/arm/lpc31xx/ea3152/scripts/ea3152.ld index d49af693e8..5b98e99bc7 100644 --- a/boards/arm/lpc31xx/ea3152/scripts/ea3152.ld +++ b/boards/arm/lpc31xx/ea3152/scripts/ea3152.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/lpc31xx/olimex-lpc-h3131/scripts/ld.script b/boards/arm/lpc31xx/olimex-lpc-h3131/scripts/ld.script index 648daa508d..c89aa2f193 100644 --- a/boards/arm/lpc31xx/olimex-lpc-h3131/scripts/ld.script +++ b/boards/arm/lpc31xx/olimex-lpc-h3131/scripts/ld.script @@ -51,7 +51,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/lpc43xx/bambino-200e/scripts/ramconfig.ld b/boards/arm/lpc43xx/bambino-200e/scripts/ramconfig.ld index 1338764993..b8e6274d9f 100644 --- a/boards/arm/lpc43xx/bambino-200e/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/bambino-200e/scripts/ramconfig.ld @@ -89,7 +89,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/bambino-200e/scripts/spificonfig.ld b/boards/arm/lpc43xx/bambino-200e/scripts/spificonfig.ld index f8d96ee5a4..4c5c146126 100644 --- a/boards/arm/lpc43xx/bambino-200e/scripts/spificonfig.ld +++ b/boards/arm/lpc43xx/bambino-200e/scripts/spificonfig.ld @@ -85,7 +85,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/bambino-200e/scripts/user-space.ld b/boards/arm/lpc43xx/bambino-200e/scripts/user-space.ld index a9f5954d99..76232caff2 100644 --- a/boards/arm/lpc43xx/bambino-200e/scripts/user-space.ld +++ b/boards/arm/lpc43xx/bambino-200e/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc43xx/lpc4330-xplorer/scripts/ramconfig.ld b/boards/arm/lpc43xx/lpc4330-xplorer/scripts/ramconfig.ld index 59478eac86..1968ca388e 100644 --- a/boards/arm/lpc43xx/lpc4330-xplorer/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/lpc4330-xplorer/scripts/ramconfig.ld @@ -89,7 +89,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4330-xplorer/scripts/spificonfig.ld b/boards/arm/lpc43xx/lpc4330-xplorer/scripts/spificonfig.ld index a0ef2c42dd..5620f67073 100644 --- a/boards/arm/lpc43xx/lpc4330-xplorer/scripts/spificonfig.ld +++ b/boards/arm/lpc43xx/lpc4330-xplorer/scripts/spificonfig.ld @@ -85,7 +85,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4337-ws/scripts/flashaconfig.ld b/boards/arm/lpc43xx/lpc4337-ws/scripts/flashaconfig.ld index a03733de93..8690b7c189 100644 --- a/boards/arm/lpc43xx/lpc4337-ws/scripts/flashaconfig.ld +++ b/boards/arm/lpc43xx/lpc4337-ws/scripts/flashaconfig.ld @@ -90,7 +90,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4337-ws/scripts/ramconfig.ld b/boards/arm/lpc43xx/lpc4337-ws/scripts/ramconfig.ld index 1932bc698b..a982050680 100644 --- a/boards/arm/lpc43xx/lpc4337-ws/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/lpc4337-ws/scripts/ramconfig.ld @@ -89,7 +89,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4357-evb/scripts/flashaconfig.ld b/boards/arm/lpc43xx/lpc4357-evb/scripts/flashaconfig.ld index 1059de75c6..cb8eb16b4c 100644 --- a/boards/arm/lpc43xx/lpc4357-evb/scripts/flashaconfig.ld +++ b/boards/arm/lpc43xx/lpc4357-evb/scripts/flashaconfig.ld @@ -90,7 +90,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4357-evb/scripts/ramconfig.ld b/boards/arm/lpc43xx/lpc4357-evb/scripts/ramconfig.ld index d38f7be4f7..64d2a1f109 100644 --- a/boards/arm/lpc43xx/lpc4357-evb/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/lpc4357-evb/scripts/ramconfig.ld @@ -79,7 +79,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4357-evb/scripts/spificonfig.ld b/boards/arm/lpc43xx/lpc4357-evb/scripts/spificonfig.ld index 203e54ae80..105059e0be 100644 --- a/boards/arm/lpc43xx/lpc4357-evb/scripts/spificonfig.ld +++ b/boards/arm/lpc43xx/lpc4357-evb/scripts/spificonfig.ld @@ -69,7 +69,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4370-link2/scripts/ramconfig.ld b/boards/arm/lpc43xx/lpc4370-link2/scripts/ramconfig.ld index c8340e7846..c0e36b0221 100644 --- a/boards/arm/lpc43xx/lpc4370-link2/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/lpc4370-link2/scripts/ramconfig.ld @@ -89,7 +89,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4370-link2/scripts/spificonfig.ld b/boards/arm/lpc43xx/lpc4370-link2/scripts/spificonfig.ld index 1917ba4992..ba98a638f9 100644 --- a/boards/arm/lpc43xx/lpc4370-link2/scripts/spificonfig.ld +++ b/boards/arm/lpc43xx/lpc4370-link2/scripts/spificonfig.ld @@ -85,7 +85,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc54xx/lpcxpresso-lpc54628/scripts/flash.ld b/boards/arm/lpc54xx/lpcxpresso-lpc54628/scripts/flash.ld index 4fbe32239a..73f8f81a7a 100644 --- a/boards/arm/lpc54xx/lpcxpresso-lpc54628/scripts/flash.ld +++ b/boards/arm/lpc54xx/lpcxpresso-lpc54628/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/max326xx/max32660-evsys/scripts/flash.ld b/boards/arm/max326xx/max32660-evsys/scripts/flash.ld index 2ca9427c92..191790fee6 100644 --- a/boards/arm/max326xx/max32660-evsys/scripts/flash.ld +++ b/boards/arm/max326xx/max32660-evsys/scripts/flash.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/max326xx/max32660-evsys/scripts/sram.ld b/boards/arm/max326xx/max32660-evsys/scripts/sram.ld index 9eec2ab712..d7aeb1fc3d 100644 --- a/boards/arm/max326xx/max32660-evsys/scripts/sram.ld +++ b/boards/arm/max326xx/max32660-evsys/scripts/sram.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/moxart/moxa/scripts/moxa.ld b/boards/arm/moxart/moxa/scripts/moxa.ld index 9ee54d5dba..596793bc19 100644 --- a/boards/arm/moxart/moxa/scripts/moxa.ld +++ b/boards/arm/moxart/moxa/scripts/moxa.ld @@ -50,7 +50,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram0 diff --git a/boards/arm/nrf52/nrf52-feather/scripts/flash_config.ld b/boards/arm/nrf52/nrf52-feather/scripts/flash_config.ld index 43a074f917..4ed66eb60c 100644 --- a/boards/arm/nrf52/nrf52-feather/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52-feather/scripts/flash_config.ld @@ -49,7 +49,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/nrf52832-dk/scripts/flash_config.ld b/boards/arm/nrf52/nrf52832-dk/scripts/flash_config.ld index cf2dcfee71..a102c54ad7 100644 --- a/boards/arm/nrf52/nrf52832-dk/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52832-dk/scripts/flash_config.ld @@ -49,7 +49,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/nrf52832-mdk/scripts/flash_config.ld b/boards/arm/nrf52/nrf52832-mdk/scripts/flash_config.ld index f87a2b908d..8c76b17eb1 100644 --- a/boards/arm/nrf52/nrf52832-mdk/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52832-mdk/scripts/flash_config.ld @@ -48,7 +48,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/nrf52832-sparkfun/scripts/flash_config.ld b/boards/arm/nrf52/nrf52832-sparkfun/scripts/flash_config.ld index f0b3c5c49b..92afb0f996 100644 --- a/boards/arm/nrf52/nrf52832-sparkfun/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52832-sparkfun/scripts/flash_config.ld @@ -49,7 +49,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/nrf52840-dk/scripts/flash_config.ld b/boards/arm/nrf52/nrf52840-dk/scripts/flash_config.ld index 2140cf8734..eba00fc850 100644 --- a/boards/arm/nrf52/nrf52840-dk/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52840-dk/scripts/flash_config.ld @@ -49,7 +49,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/nrf52840-dongle/scripts/flash_config.ld b/boards/arm/nrf52/nrf52840-dongle/scripts/flash_config.ld index 72c9e41462..17e67d643a 100644 --- a/boards/arm/nrf52/nrf52840-dongle/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52840-dongle/scripts/flash_config.ld @@ -49,7 +49,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/thingy52/scripts/flash_config.ld b/boards/arm/nrf52/thingy52/scripts/flash_config.ld index 89ad8fceab..3a68d23b89 100644 --- a/boards/arm/nrf52/thingy52/scripts/flash_config.ld +++ b/boards/arm/nrf52/thingy52/scripts/flash_config.ld @@ -49,7 +49,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf53/thingy53/scripts/flash_net.ld b/boards/arm/nrf53/thingy53/scripts/flash_net.ld index 2ff40509a2..5c1ccb0ded 100644 --- a/boards/arm/nrf53/thingy53/scripts/flash_net.ld +++ b/boards/arm/nrf53/thingy53/scripts/flash_net.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nuc1xx/nutiny-nuc120/scripts/nutiny-nuc120.ld b/boards/arm/nuc1xx/nutiny-nuc120/scripts/nutiny-nuc120.ld index aa3243779a..80ec8c4011 100644 --- a/boards/arm/nuc1xx/nutiny-nuc120/scripts/nutiny-nuc120.ld +++ b/boards/arm/nuc1xx/nutiny-nuc120/scripts/nutiny-nuc120.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/phy62xx/phy6222/scripts/flash.ld b/boards/arm/phy62xx/phy6222/scripts/flash.ld index 44cfa14721..c58dfa7bfb 100644 --- a/boards/arm/phy62xx/phy6222/scripts/flash.ld +++ b/boards/arm/phy62xx/phy6222/scripts/flash.ld @@ -23,7 +23,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/rp2040/adafruit-feather-rp2040/scripts/adafruit-feather-rp2040-flash.ld b/boards/arm/rp2040/adafruit-feather-rp2040/scripts/adafruit-feather-rp2040-flash.ld index e7adceaf6b..94202cff59 100644 --- a/boards/arm/rp2040/adafruit-feather-rp2040/scripts/adafruit-feather-rp2040-flash.ld +++ b/boards/arm/rp2040/adafruit-feather-rp2040/scripts/adafruit-feather-rp2040-flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/rp2040/adafruit-feather-rp2040/scripts/adafruit-feather-rp2040-sram.ld b/boards/arm/rp2040/adafruit-feather-rp2040/scripts/adafruit-feather-rp2040-sram.ld index f607b392cc..ae4e325c4a 100644 --- a/boards/arm/rp2040/adafruit-feather-rp2040/scripts/adafruit-feather-rp2040-sram.ld +++ b/boards/arm/rp2040/adafruit-feather-rp2040/scripts/adafruit-feather-rp2040-sram.ld @@ -50,7 +50,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-flash.ld b/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-flash.ld index 1a8103198b..d760de5a9e 100644 --- a/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-flash.ld +++ b/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-sram.ld b/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-sram.ld index a1d8631350..0a07af5ff3 100644 --- a/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-sram.ld +++ b/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-sram.ld @@ -50,7 +50,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/rp2040/adafruit-qt-py-rp2040/scripts/adafruit-qt-py-rp2040-flash.ld b/boards/arm/rp2040/adafruit-qt-py-rp2040/scripts/adafruit-qt-py-rp2040-flash.ld index 5c65d96751..cf826b55ae 100644 --- a/boards/arm/rp2040/adafruit-qt-py-rp2040/scripts/adafruit-qt-py-rp2040-flash.ld +++ b/boards/arm/rp2040/adafruit-qt-py-rp2040/scripts/adafruit-qt-py-rp2040-flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/rp2040/adafruit-qt-py-rp2040/scripts/adafruit-qt-py-rp2040-sram.ld b/boards/arm/rp2040/adafruit-qt-py-rp2040/scripts/adafruit-qt-py-rp2040-sram.ld index b7ffd7b3c9..f8cf82dad6 100644 --- a/boards/arm/rp2040/adafruit-qt-py-rp2040/scripts/adafruit-qt-py-rp2040-sram.ld +++ b/boards/arm/rp2040/adafruit-qt-py-rp2040/scripts/adafruit-qt-py-rp2040-sram.ld @@ -50,7 +50,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-flash.ld b/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-flash.ld index 51b985467c..c7ae9f1e17 100644 --- a/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-flash.ld +++ b/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-sram.ld b/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-sram.ld index 6864dee749..014e6cc3c5 100644 --- a/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-sram.ld +++ b/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-sram.ld @@ -50,7 +50,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-flash.ld b/boards/arm/rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-flash.ld index 82de4b749a..e693a0b548 100644 --- a/boards/arm/rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-flash.ld +++ b/boards/arm/rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-sram.ld b/boards/arm/rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-sram.ld index 1227117022..504cecac6c 100644 --- a/boards/arm/rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-sram.ld +++ b/boards/arm/rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-sram.ld @@ -50,7 +50,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-flash.ld b/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-flash.ld index 82de4b749a..e693a0b548 100644 --- a/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-flash.ld +++ b/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-sram.ld b/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-sram.ld index 1227117022..504cecac6c 100644 --- a/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-sram.ld +++ b/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-sram.ld @@ -50,7 +50,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/rp2040/waveshare-rp2040-lcd-1.28/scripts/waveshare-rp2040-lcd-1-28-flash.ld b/boards/arm/rp2040/waveshare-rp2040-lcd-1.28/scripts/waveshare-rp2040-lcd-1-28-flash.ld index 82de4b749a..e693a0b548 100644 --- a/boards/arm/rp2040/waveshare-rp2040-lcd-1.28/scripts/waveshare-rp2040-lcd-1-28-flash.ld +++ b/boards/arm/rp2040/waveshare-rp2040-lcd-1.28/scripts/waveshare-rp2040-lcd-1-28-flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/rp2040/waveshare-rp2040-lcd-1.28/scripts/waveshare-rp2040-lcd-1-28-sram.ld b/boards/arm/rp2040/waveshare-rp2040-lcd-1.28/scripts/waveshare-rp2040-lcd-1-28-sram.ld index 1227117022..504cecac6c 100644 --- a/boards/arm/rp2040/waveshare-rp2040-lcd-1.28/scripts/waveshare-rp2040-lcd-1-28-sram.ld +++ b/boards/arm/rp2040/waveshare-rp2040-lcd-1.28/scripts/waveshare-rp2040-lcd-1-28-sram.ld @@ -50,7 +50,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/sam34/arduino-due/scripts/arduino-due.ld b/boards/arm/sam34/arduino-due/scripts/arduino-due.ld index 845e39a3a4..7e4a492075 100644 --- a/boards/arm/sam34/arduino-due/scripts/arduino-due.ld +++ b/boards/arm/sam34/arduino-due/scripts/arduino-due.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sam34/flipnclick-sam3x/scripts/flash.ld b/boards/arm/sam34/flipnclick-sam3x/scripts/flash.ld index 28bffa0da6..49147ad06f 100644 --- a/boards/arm/sam34/flipnclick-sam3x/scripts/flash.ld +++ b/boards/arm/sam34/flipnclick-sam3x/scripts/flash.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sam34/sam3u-ek/scripts/kernel-space.ld b/boards/arm/sam34/sam3u-ek/scripts/kernel-space.ld index 5d5603a8dc..4dbcf2bfa7 100644 --- a/boards/arm/sam34/sam3u-ek/scripts/kernel-space.ld +++ b/boards/arm/sam34/sam3u-ek/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/sam34/sam3u-ek/scripts/ld.script b/boards/arm/sam34/sam3u-ek/scripts/ld.script index 26c352f91d..0d56fe0fc3 100644 --- a/boards/arm/sam34/sam3u-ek/scripts/ld.script +++ b/boards/arm/sam34/sam3u-ek/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sam34/sam3u-ek/scripts/user-space.ld b/boards/arm/sam34/sam3u-ek/scripts/user-space.ld index 747e68cea2..9fbfee9086 100644 --- a/boards/arm/sam34/sam3u-ek/scripts/user-space.ld +++ b/boards/arm/sam34/sam3u-ek/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/sam34/sam4cmp-db/scripts/sam4cmp-db.ld b/boards/arm/sam34/sam4cmp-db/scripts/sam4cmp-db.ld index c40e122fec..211c776be7 100644 --- a/boards/arm/sam34/sam4cmp-db/scripts/sam4cmp-db.ld +++ b/boards/arm/sam34/sam4cmp-db/scripts/sam4cmp-db.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sam34/sam4e-ek/scripts/flash.ld b/boards/arm/sam34/sam4e-ek/scripts/flash.ld index be5c355023..dd0358739f 100644 --- a/boards/arm/sam34/sam4e-ek/scripts/flash.ld +++ b/boards/arm/sam34/sam4e-ek/scripts/flash.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sam34/sam4l-xplained/scripts/sam4l-xplained.ld b/boards/arm/sam34/sam4l-xplained/scripts/sam4l-xplained.ld index ace90dd450..a7c626ca58 100644 --- a/boards/arm/sam34/sam4l-xplained/scripts/sam4l-xplained.ld +++ b/boards/arm/sam34/sam4l-xplained/scripts/sam4l-xplained.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sam34/sam4s-xplained-pro/scripts/sam4s-xplained-pro.ld b/boards/arm/sam34/sam4s-xplained-pro/scripts/sam4s-xplained-pro.ld index 35a4fd350c..2a636cd343 100644 --- a/boards/arm/sam34/sam4s-xplained-pro/scripts/sam4s-xplained-pro.ld +++ b/boards/arm/sam34/sam4s-xplained-pro/scripts/sam4s-xplained-pro.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash0 diff --git a/boards/arm/sam34/sam4s-xplained/scripts/sam4s-xplained.ld b/boards/arm/sam34/sam4s-xplained/scripts/sam4s-xplained.ld index 96e80a9755..fa7e3e6be3 100644 --- a/boards/arm/sam34/sam4s-xplained/scripts/sam4s-xplained.ld +++ b/boards/arm/sam34/sam4s-xplained/scripts/sam4s-xplained.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sama5/giant-board/scripts/dramboot.ld b/boards/arm/sama5/giant-board/scripts/dramboot.ld index c37f48e34e..31b4581891 100644 --- a/boards/arm/sama5/giant-board/scripts/dramboot.ld +++ b/boards/arm/sama5/giant-board/scripts/dramboot.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/giant-board/scripts/isram.ld b/boards/arm/sama5/giant-board/scripts/isram.ld index bb3e2dde2a..efecf81de2 100644 --- a/boards/arm/sama5/giant-board/scripts/isram.ld +++ b/boards/arm/sama5/giant-board/scripts/isram.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/giant-board/scripts/uboot.ld b/boards/arm/sama5/giant-board/scripts/uboot.ld index e661748fbb..e6a771b9d7 100644 --- a/boards/arm/sama5/giant-board/scripts/uboot.ld +++ b/boards/arm/sama5/giant-board/scripts/uboot.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld b/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld index 5b7ac30670..2249a48138 100644 --- a/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld +++ b/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/jupiter-nano/scripts/isram.ld b/boards/arm/sama5/jupiter-nano/scripts/isram.ld index 8220bcd2a7..c922f698d5 100644 --- a/boards/arm/sama5/jupiter-nano/scripts/isram.ld +++ b/boards/arm/sama5/jupiter-nano/scripts/isram.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/jupiter-nano/scripts/uboot.ld b/boards/arm/sama5/jupiter-nano/scripts/uboot.ld index b273c49f8a..fe65968c05 100644 --- a/boards/arm/sama5/jupiter-nano/scripts/uboot.ld +++ b/boards/arm/sama5/jupiter-nano/scripts/uboot.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld b/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld index 5b7ac30670..2249a48138 100644 --- a/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld +++ b/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d2-xult/scripts/isram.ld b/boards/arm/sama5/sama5d2-xult/scripts/isram.ld index 8220bcd2a7..c922f698d5 100644 --- a/boards/arm/sama5/sama5d2-xult/scripts/isram.ld +++ b/boards/arm/sama5/sama5d2-xult/scripts/isram.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld b/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld index b273c49f8a..fe65968c05 100644 --- a/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld +++ b/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld b/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld index cd63924821..5a6f454cf3 100644 --- a/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld +++ b/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld b/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld index 45758c621f..40c1fdb605 100644 --- a/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld +++ b/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld index 80efc7e66c..99b05c1432 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld index 0f4d733d2a..24cbafea61 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld index ed30768051..2d323b62cd 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld @@ -65,7 +65,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > norflash diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld index b51d19c04d..eeaf780f25 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld @@ -61,7 +61,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > norflash diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld index 598f092cb7..104d7939ee 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld @@ -82,7 +82,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > locked diff --git a/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld b/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld index 0ffa97fe7a..18d2f1434b 100644 --- a/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld +++ b/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d4-ek/scripts/isram.ld b/boards/arm/sama5/sama5d4-ek/scripts/isram.ld index 96eb56d896..45f0145809 100644 --- a/boards/arm/sama5/sama5d4-ek/scripts/isram.ld +++ b/boards/arm/sama5/sama5d4-ek/scripts/isram.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld b/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld index 278b89c7a8..c7ffaeeaf6 100644 --- a/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld +++ b/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/samd2l2/arduino-m0/scripts/flash.ld b/boards/arm/samd2l2/arduino-m0/scripts/flash.ld index 880a99fcc3..8bcf4997fc 100644 --- a/boards/arm/samd2l2/arduino-m0/scripts/flash.ld +++ b/boards/arm/samd2l2/arduino-m0/scripts/flash.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd2l2/circuit-express/scripts/flash.ld b/boards/arm/samd2l2/circuit-express/scripts/flash.ld index 04c873df59..50840da312 100644 --- a/boards/arm/samd2l2/circuit-express/scripts/flash.ld +++ b/boards/arm/samd2l2/circuit-express/scripts/flash.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd2l2/samd20-xplained/scripts/flash.ld b/boards/arm/samd2l2/samd20-xplained/scripts/flash.ld index 6e3a1c04ae..636e63a23d 100644 --- a/boards/arm/samd2l2/samd20-xplained/scripts/flash.ld +++ b/boards/arm/samd2l2/samd20-xplained/scripts/flash.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd2l2/samd21-xplained/scripts/flash.ld b/boards/arm/samd2l2/samd21-xplained/scripts/flash.ld index ab7b1a8694..0480459e97 100644 --- a/boards/arm/samd2l2/samd21-xplained/scripts/flash.ld +++ b/boards/arm/samd2l2/samd21-xplained/scripts/flash.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd2l2/saml21-xplained/scripts/flash.ld b/boards/arm/samd2l2/saml21-xplained/scripts/flash.ld index 9b003c4b5a..0ebfbdc68e 100644 --- a/boards/arm/samd2l2/saml21-xplained/scripts/flash.ld +++ b/boards/arm/samd2l2/saml21-xplained/scripts/flash.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd5e5/metro-m4/scripts/flash.ld b/boards/arm/samd5e5/metro-m4/scripts/flash.ld index ba6ff4d8b4..96917c3bf5 100644 --- a/boards/arm/samd5e5/metro-m4/scripts/flash.ld +++ b/boards/arm/samd5e5/metro-m4/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd5e5/metro-m4/scripts/sram.ld b/boards/arm/samd5e5/metro-m4/scripts/sram.ld index c0eda95639..0acc008ad7 100644 --- a/boards/arm/samd5e5/metro-m4/scripts/sram.ld +++ b/boards/arm/samd5e5/metro-m4/scripts/sram.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/samd5e5/same54-xplained-pro/scripts/flash.ld b/boards/arm/samd5e5/same54-xplained-pro/scripts/flash.ld index 97ac02fa4d..fe2d723147 100644 --- a/boards/arm/samd5e5/same54-xplained-pro/scripts/flash.ld +++ b/boards/arm/samd5e5/same54-xplained-pro/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd5e5/same54-xplained-pro/scripts/sram.ld b/boards/arm/samd5e5/same54-xplained-pro/scripts/sram.ld index a115e6c004..925e9431d5 100644 --- a/boards/arm/samd5e5/same54-xplained-pro/scripts/sram.ld +++ b/boards/arm/samd5e5/same54-xplained-pro/scripts/sram.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/samv7/common/scripts/flash.ld.template b/boards/arm/samv7/common/scripts/flash.ld.template index f78d044d1f..bb2a77cd5f 100644 --- a/boards/arm/samv7/common/scripts/flash.ld.template +++ b/boards/arm/samv7/common/scripts/flash.ld.template @@ -72,8 +72,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) - _einit = ABSOLUTE(.); +KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash .ARM.extab : { diff --git a/boards/arm/samv7/common/scripts/kernel-space.ld b/boards/arm/samv7/common/scripts/kernel-space.ld index f5fa217a27..c814f20dc5 100644 --- a/boards/arm/samv7/common/scripts/kernel-space.ld +++ b/boards/arm/samv7/common/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/samv7/common/scripts/user-space.ld b/boards/arm/samv7/common/scripts/user-space.ld index f172c34b03..4c2a213dac 100644 --- a/boards/arm/samv7/common/scripts/user-space.ld +++ b/boards/arm/samv7/common/scripts/user-space.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/axoloti/scripts/kernel-space.ld b/boards/arm/stm32/axoloti/scripts/kernel-space.ld index 089f767765..8127a483b1 100644 --- a/boards/arm/stm32/axoloti/scripts/kernel-space.ld +++ b/boards/arm/stm32/axoloti/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/axoloti/scripts/ld.script b/boards/arm/stm32/axoloti/scripts/ld.script index ffd242eb60..1d45b365ac 100644 --- a/boards/arm/stm32/axoloti/scripts/ld.script +++ b/boards/arm/stm32/axoloti/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/axoloti/scripts/user-space.ld b/boards/arm/stm32/axoloti/scripts/user-space.ld index 6b716d8533..aff5a0490f 100644 --- a/boards/arm/stm32/axoloti/scripts/user-space.ld +++ b/boards/arm/stm32/axoloti/scripts/user-space.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/b-g431b-esc1/scripts/ld.script b/boards/arm/stm32/b-g431b-esc1/scripts/ld.script index e989b04cd5..c522c98354 100644 --- a/boards/arm/stm32/b-g431b-esc1/scripts/ld.script +++ b/boards/arm/stm32/b-g431b-esc1/scripts/ld.script @@ -73,7 +73,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script b/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script index 75fe3107df..6dd4ebfc02 100644 --- a/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script +++ b/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script @@ -73,7 +73,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script.dfu b/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script.dfu index 1925fdd93b..a7369afac1 100644 --- a/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script.dfu +++ b/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script.dfu @@ -76,7 +76,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/clicker2-stm32/scripts/flash.ld b/boards/arm/stm32/clicker2-stm32/scripts/flash.ld index cf07ccb096..aa4465b10a 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/flash.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/flash.ld @@ -61,7 +61,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld b/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld index 130aa33fbf..42ebbf8959 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld b/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld index 21c8c32674..ac312da571 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld @@ -49,7 +49,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld b/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld index 012a6b33b8..e99bd01bc8 100644 --- a/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld +++ b/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld b/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld index 09e6b31beb..bbb2792468 100644 --- a/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld +++ b/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/emw3162/scripts/ld.script b/boards/arm/stm32/emw3162/scripts/ld.script index f8595b99da..1c7a00f417 100644 --- a/boards/arm/stm32/emw3162/scripts/ld.script +++ b/boards/arm/stm32/emw3162/scripts/ld.script @@ -65,7 +65,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/et-stm32-stamp/scripts/ld.script b/boards/arm/stm32/et-stm32-stamp/scripts/ld.script index 1846d58cbe..f48b175b55 100644 --- a/boards/arm/stm32/et-stm32-stamp/scripts/ld.script +++ b/boards/arm/stm32/et-stm32-stamp/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld index a477b00903..5c703d53f1 100644 --- a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld +++ b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld index e964e62ca8..7f235122c7 100644 --- a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld +++ b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/hymini-stm32v/scripts/ld.script b/boards/arm/stm32/hymini-stm32v/scripts/ld.script index 99eea4447c..a1de005a4f 100644 --- a/boards/arm/stm32/hymini-stm32v/scripts/ld.script +++ b/boards/arm/stm32/hymini-stm32v/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/maple/scripts/ld.script b/boards/arm/stm32/maple/scripts/ld.script index c134643b4f..cd8fd1764b 100644 --- a/boards/arm/stm32/maple/scripts/ld.script +++ b/boards/arm/stm32/maple/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/maple/scripts/ld.script.dfu b/boards/arm/stm32/maple/scripts/ld.script.dfu index 288077d500..f2e515aad8 100644 --- a/boards/arm/stm32/maple/scripts/ld.script.dfu +++ b/boards/arm/stm32/maple/scripts/ld.script.dfu @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld b/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld index cb74133bbd..05932f34fa 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script b/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script index f5ac21cd51..f97cf5f03c 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld b/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld index 98cff6f6af..102461a067 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/nucleo-f103rb/scripts/ld.script b/boards/arm/stm32/nucleo-f103rb/scripts/ld.script index e0d905fc33..0b4203273e 100644 --- a/boards/arm/stm32/nucleo-f103rb/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f103rb/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f207zg/scripts/ld.script b/boards/arm/stm32/nucleo-f207zg/scripts/ld.script index 5d5740d6a0..2f25c9970e 100644 --- a/boards/arm/stm32/nucleo-f207zg/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f207zg/scripts/ld.script @@ -58,7 +58,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f302r8/scripts/ld.script b/boards/arm/stm32/nucleo-f302r8/scripts/ld.script index de8a7f1bb2..b2565071a2 100644 --- a/boards/arm/stm32/nucleo-f302r8/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f302r8/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f303re/scripts/ld.script b/boards/arm/stm32/nucleo-f303re/scripts/ld.script index 5138140cd9..15ba0d53e8 100644 --- a/boards/arm/stm32/nucleo-f303re/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f303re/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f303ze/scripts/ld.script b/boards/arm/stm32/nucleo-f303ze/scripts/ld.script index 896699b141..7cfc11cf12 100644 --- a/boards/arm/stm32/nucleo-f303ze/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f303ze/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f334r8/scripts/ld.script b/boards/arm/stm32/nucleo-f334r8/scripts/ld.script index 584d8a90e3..915eaf70ed 100644 --- a/boards/arm/stm32/nucleo-f334r8/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f334r8/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld b/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld index a5f3b8a7e3..fc5d0d4603 100644 --- a/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld +++ b/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f412zg/scripts/f412zg.ld b/boards/arm/stm32/nucleo-f412zg/scripts/f412zg.ld index c582ce322d..9d210be953 100644 --- a/boards/arm/stm32/nucleo-f412zg/scripts/f412zg.ld +++ b/boards/arm/stm32/nucleo-f412zg/scripts/f412zg.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f429zi/scripts/kernel-space.ld b/boards/arm/stm32/nucleo-f429zi/scripts/kernel-space.ld index c9df196218..5e3cd0beb2 100644 --- a/boards/arm/stm32/nucleo-f429zi/scripts/kernel-space.ld +++ b/boards/arm/stm32/nucleo-f429zi/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/nucleo-f429zi/scripts/ld.script b/boards/arm/stm32/nucleo-f429zi/scripts/ld.script index e9b5785065..6f673cc3d4 100644 --- a/boards/arm/stm32/nucleo-f429zi/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f429zi/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f429zi/scripts/user-space.ld b/boards/arm/stm32/nucleo-f429zi/scripts/user-space.ld index 7bbc3accc7..044e9ea859 100644 --- a/boards/arm/stm32/nucleo-f429zi/scripts/user-space.ld +++ b/boards/arm/stm32/nucleo-f429zi/scripts/user-space.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld b/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld index 25bbd4f712..6e400594ef 100644 --- a/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld +++ b/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld b/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld index 20161f6378..61f4bc3f75 100644 --- a/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld +++ b/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld b/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld index 00a22171bc..4c3d7927cb 100644 --- a/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld +++ b/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-g431kb/scripts/ld.script b/boards/arm/stm32/nucleo-g431kb/scripts/ld.script index df22aaa2ca..abdaf8ad1a 100644 --- a/boards/arm/stm32/nucleo-g431kb/scripts/ld.script +++ b/boards/arm/stm32/nucleo-g431kb/scripts/ld.script @@ -73,7 +73,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-g431rb/scripts/ld.script b/boards/arm/stm32/nucleo-g431rb/scripts/ld.script index cc15b7db29..6f03b188a3 100644 --- a/boards/arm/stm32/nucleo-g431rb/scripts/ld.script +++ b/boards/arm/stm32/nucleo-g431rb/scripts/ld.script @@ -73,7 +73,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-g474re/scripts/ld.script b/boards/arm/stm32/nucleo-g474re/scripts/ld.script index 24c660c70d..35062f6c10 100644 --- a/boards/arm/stm32/nucleo-g474re/scripts/ld.script +++ b/boards/arm/stm32/nucleo-g474re/scripts/ld.script @@ -73,7 +73,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-g474re/scripts/ld.script.dfu b/boards/arm/stm32/nucleo-g474re/scripts/ld.script.dfu index dc29878c6d..9418785fe0 100644 --- a/boards/arm/stm32/nucleo-g474re/scripts/ld.script.dfu +++ b/boards/arm/stm32/nucleo-g474re/scripts/ld.script.dfu @@ -76,7 +76,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-l152re/scripts/ld.script b/boards/arm/stm32/nucleo-l152re/scripts/ld.script index 9bd4a3fa8f..745cae915d 100644 --- a/boards/arm/stm32/nucleo-l152re/scripts/ld.script +++ b/boards/arm/stm32/nucleo-l152re/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimex-stm32-e407/scripts/f407ze.ld b/boards/arm/stm32/olimex-stm32-e407/scripts/f407ze.ld index 3d20926397..02519fdf03 100644 --- a/boards/arm/stm32/olimex-stm32-e407/scripts/f407ze.ld +++ b/boards/arm/stm32/olimex-stm32-e407/scripts/f407ze.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimex-stm32-e407/scripts/f407zg.ld b/boards/arm/stm32/olimex-stm32-e407/scripts/f407zg.ld index 08ace877ac..077b81d8bc 100644 --- a/boards/arm/stm32/olimex-stm32-e407/scripts/f407zg.ld +++ b/boards/arm/stm32/olimex-stm32-e407/scripts/f407zg.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script b/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script index 28f8a8e43a..7c737fcae4 100644 --- a/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script b/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script index 4485a65a48..e7663a16fd 100644 --- a/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script @@ -59,7 +59,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script index e68c944531..265ef92d27 100644 --- a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script @@ -47,7 +47,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu index 3aa784543b..82d41c538d 100644 --- a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu +++ b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu @@ -48,7 +48,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script b/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script index f359f2a936..cd822a3263 100644 --- a/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script @@ -59,7 +59,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld b/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld index d6f8917dae..a52ab84761 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld b/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld index 2e8a256acb..b61ac34f85 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld b/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld index 72381a1c68..36c78ea521 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/olimexino-stm32/scripts/ld.script b/boards/arm/stm32/olimexino-stm32/scripts/ld.script index ac5d159cc3..0034b0b3ae 100644 --- a/boards/arm/stm32/olimexino-stm32/scripts/ld.script +++ b/boards/arm/stm32/olimexino-stm32/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu b/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu index 82f18ee19e..b83c075748 100644 --- a/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu +++ b/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu @@ -48,7 +48,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld b/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld index ba17fc448a..fe7e72b640 100644 --- a/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld +++ b/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/omnibusf4/scripts/ld.script b/boards/arm/stm32/omnibusf4/scripts/ld.script index 33458845b9..82aedd7fb7 100644 --- a/boards/arm/stm32/omnibusf4/scripts/ld.script +++ b/boards/arm/stm32/omnibusf4/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/omnibusf4/scripts/user-space.ld b/boards/arm/stm32/omnibusf4/scripts/user-space.ld index 95c5fce1d2..6897a8f169 100644 --- a/boards/arm/stm32/omnibusf4/scripts/user-space.ld +++ b/boards/arm/stm32/omnibusf4/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/photon/scripts/photon_dfu.ld b/boards/arm/stm32/photon/scripts/photon_dfu.ld index 70b2132cb7..e32a1012a5 100644 --- a/boards/arm/stm32/photon/scripts/photon_dfu.ld +++ b/boards/arm/stm32/photon/scripts/photon_dfu.ld @@ -68,7 +68,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/photon/scripts/photon_jtag.ld b/boards/arm/stm32/photon/scripts/photon_jtag.ld index cf427c8047..9152695170 100644 --- a/boards/arm/stm32/photon/scripts/photon_jtag.ld +++ b/boards/arm/stm32/photon/scripts/photon_jtag.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/shenzhou/scripts/ld.script b/boards/arm/stm32/shenzhou/scripts/ld.script index ba03dc75de..0aebf1a486 100644 --- a/boards/arm/stm32/shenzhou/scripts/ld.script +++ b/boards/arm/stm32/shenzhou/scripts/ld.script @@ -51,7 +51,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/shenzhou/scripts/ld.script.dfu b/boards/arm/stm32/shenzhou/scripts/ld.script.dfu index fca7e5d10f..1115d637d7 100644 --- a/boards/arm/stm32/shenzhou/scripts/ld.script.dfu +++ b/boards/arm/stm32/shenzhou/scripts/ld.script.dfu @@ -53,7 +53,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm3210e-eval/scripts/ld.script b/boards/arm/stm32/stm3210e-eval/scripts/ld.script index 8efe9ca368..e795ab8389 100644 --- a/boards/arm/stm32/stm3210e-eval/scripts/ld.script +++ b/boards/arm/stm32/stm3210e-eval/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu b/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu index d3e8075233..fc2381a6b2 100644 --- a/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu +++ b/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu @@ -53,7 +53,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm3220g-eval/scripts/ld.script b/boards/arm/stm32/stm3220g-eval/scripts/ld.script index d701dd505d..ecb61d483e 100644 --- a/boards/arm/stm32/stm3220g-eval/scripts/ld.script +++ b/boards/arm/stm32/stm3220g-eval/scripts/ld.script @@ -59,7 +59,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld b/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld index fcfa3dc1a7..3c99272004 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld +++ b/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/stm3240g-eval/scripts/ld.script b/boards/arm/stm32/stm3240g-eval/scripts/ld.script index aa11c9a15a..1e27d3c6b9 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/ld.script +++ b/boards/arm/stm32/stm3240g-eval/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld b/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld index b0c4b2198e..7cff5ea653 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld +++ b/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/stm32_tiny/scripts/ld.script b/boards/arm/stm32/stm32_tiny/scripts/ld.script index 5146656860..9f917a33a5 100644 --- a/boards/arm/stm32/stm32_tiny/scripts/ld.script +++ b/boards/arm/stm32/stm32_tiny/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld b/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld index 91eaafdedd..14351428da 100644 --- a/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld +++ b/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32butterfly2/scripts/flash.ld b/boards/arm/stm32/stm32butterfly2/scripts/flash.ld index b08a10d2ba..d22e096b39 100644 --- a/boards/arm/stm32/stm32butterfly2/scripts/flash.ld +++ b/boards/arm/stm32/stm32butterfly2/scripts/flash.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script index 5aea492687..8d7a9bb21a 100644 --- a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script +++ b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script @@ -59,7 +59,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu index c8b9529484..92e0d454b0 100644 --- a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu +++ b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu @@ -53,7 +53,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f334-disco/scripts/ld.script b/boards/arm/stm32/stm32f334-disco/scripts/ld.script index 3bfbffea4f..2358bfde7a 100644 --- a/boards/arm/stm32/stm32f334-disco/scripts/ld.script +++ b/boards/arm/stm32/stm32f334-disco/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f3discovery/scripts/ld.script b/boards/arm/stm32/stm32f3discovery/scripts/ld.script index cab35da836..6773786954 100644 --- a/boards/arm/stm32/stm32f3discovery/scripts/ld.script +++ b/boards/arm/stm32/stm32f3discovery/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f411-minimum/scripts/stm32f411ce.ld b/boards/arm/stm32/stm32f411-minimum/scripts/stm32f411ce.ld index b401858bd6..5d0f136bf7 100644 --- a/boards/arm/stm32/stm32f411-minimum/scripts/stm32f411ce.ld +++ b/boards/arm/stm32/stm32f411-minimum/scripts/stm32f411ce.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld b/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld index a4f525d133..ec326a17c2 100644 --- a/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld +++ b/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld b/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld index d9e74c9085..85e25d17af 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/ld.script b/boards/arm/stm32/stm32f429i-disco/scripts/ld.script index f25c76542c..1cc3b9df60 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/ld.script +++ b/boards/arm/stm32/stm32f429i-disco/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld b/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld index 1752130e1c..79fdd2b716 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld +++ b/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld b/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld index 7a6a61b111..038880a5ff 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld +++ b/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld b/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld index e647964b6f..68feeace6f 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld +++ b/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld index 31a9a78bd2..dbf7c020d1 100644 --- a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld +++ b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld @@ -57,7 +57,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld index f44a5cd1ca..4ce14c8b89 100644 --- a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld +++ b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld @@ -57,7 +57,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld b/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld index f47006de2b..032e435bff 100644 --- a/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld +++ b/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld b/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld index 617c8f9128..f8de529d2e 100644 --- a/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld +++ b/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld b/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld index ae0cb90337..af038413dd 100644 --- a/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld +++ b/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script index 5ad270bb12..82a0d3f381 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld b/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld index 509c4fe1f4..e83b13484a 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld b/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld index e7318bab88..1edfed3a15 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script b/boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script index 68a974ea9f..73eddd1e66 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script b/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script index 21d2776aad..94da78601b 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script b/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script index edebce3a09..087ac07f24 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld index 895cc2e7a4..56bce7f05d 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld index 9f578a7d39..07fd70c309 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/ld.script b/boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/ld.script index beb5b1237c..9b87a39e10 100644 --- a/boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/stm32l0538-disco/scripts/ld.script b/boards/arm/stm32f0l0g0/stm32l0538-disco/scripts/ld.script index b0ec49a950..2c47e67b98 100644 --- a/boards/arm/stm32f0l0g0/stm32l0538-disco/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/stm32l0538-disco/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld b/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld index b6710026ca..4004f23b3c 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld @@ -82,7 +82,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld b/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld index 7d80dd7df0..803b59337f 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld @@ -82,7 +82,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld b/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld index 28dc89d830..ec065cd08c 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld @@ -82,7 +82,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld b/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld index 06ca4e55fa..4bb5a3e828 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld b/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld index a9da361620..e0b98130f2 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32f7/steval-eth001v1/scripts/flash.ld b/boards/arm/stm32f7/steval-eth001v1/scripts/flash.ld index 6c69f380de..a93633ba1c 100644 --- a/boards/arm/stm32f7/steval-eth001v1/scripts/flash.ld +++ b/boards/arm/stm32f7/steval-eth001v1/scripts/flash.ld @@ -82,7 +82,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld b/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld index 499722c003..c7992329f6 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld @@ -82,7 +82,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld b/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld index 1aa927bedd..1f4996693e 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld b/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld index 55a21ebd83..79532d3b60 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld b/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld index e037a7471d..9d47136616 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld @@ -82,7 +82,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld b/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld index b6fafb88f1..ca4bdc7134 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld b/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld index dcc5d88708..9d5e29c066 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld b/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld index 52e4a2e76a..19f56d8d8c 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld @@ -82,7 +82,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld b/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld index e7fd8eefee..d56c64be59 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld b/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld index e634b8ec02..bb3748740a 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/flash.ld b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/flash.ld index a55ad43698..2e17c8138f 100644 --- a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/flash.ld @@ -82,7 +82,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/kernel-space.ld b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/kernel-space.ld index 7e1a3aff34..4fcdb91715 100644 --- a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/user-space.ld b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/user-space.ld index 24f17e446a..d1a5ccf5de 100644 --- a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-app.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-app.ld index 1a2b6290c2..090efb81b8 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-app.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-app.ld @@ -132,7 +132,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-loader.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-loader.ld index f76161ff15..50d7e5ac17 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-loader.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-loader.ld @@ -132,7 +132,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld index 7bf424656d..5b5cbcb7ba 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld @@ -132,7 +132,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld index 5b39d11396..c4edc92208 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld index bdbca7691e..bbbeec12c0 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32h7/nucleo-h743zi2/scripts/flash.ld b/boards/arm/stm32h7/nucleo-h743zi2/scripts/flash.ld index 276482189b..a4a796e3f6 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/scripts/flash.ld +++ b/boards/arm/stm32h7/nucleo-h743zi2/scripts/flash.ld @@ -132,7 +132,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32h7/nucleo-h743zi2/scripts/user-space.ld b/boards/arm/stm32h7/nucleo-h743zi2/scripts/user-space.ld index db70411e11..737c4f0e14 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/scripts/user-space.ld +++ b/boards/arm/stm32h7/nucleo-h743zi2/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld b/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld index 1bf9a2ce8c..4ebaede3ae 100644 --- a/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld +++ b/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld @@ -130,7 +130,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld b/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld index ea955440ab..565b17858d 100644 --- a/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld +++ b/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32h7/stm32h747i-disco/scripts/user-space.ld b/boards/arm/stm32h7/stm32h747i-disco/scripts/user-space.ld index d8890f3c94..22eeb27c37 100644 --- a/boards/arm/stm32h7/stm32h747i-disco/scripts/user-space.ld +++ b/boards/arm/stm32h7/stm32h747i-disco/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld b/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld index 8ddfa31493..f5adf55cbe 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld +++ b/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld b/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld index 332af10e7f..ca1ac83f7a 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld +++ b/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld b/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld index 163abf72ad..66431a2af7 100644 --- a/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld +++ b/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld b/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld index c355be37e1..67a80e3f4c 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld +++ b/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld b/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld index 5c0904049f..4d373a257b 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld b/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld index 67f0343bfb..284c0f2725 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld b/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld index b47e1b5146..820ae27093 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32l4/steval-stlcs01v1/scripts/ld.script b/boards/arm/stm32l4/steval-stlcs01v1/scripts/ld.script index 6635e0f857..c8a3e56cc7 100644 --- a/boards/arm/stm32l4/steval-stlcs01v1/scripts/ld.script +++ b/boards/arm/stm32l4/steval-stlcs01v1/scripts/ld.script @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld b/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld index 12150c95e2..93586697c7 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld +++ b/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld b/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld index b920e597cd..5b6f7b770b 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld b/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld index 22184543d1..e621dcbb45 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld b/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld index 29e5e2d228..c9a79e0143 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld index 907fdac7cf..689dac8652 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld index 3b47716d21..f6c61e8ea9 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld @@ -61,7 +61,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld index d73101bc23..3f362f4ce8 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32l5/nucleo-l552ze/scripts/flash.ld b/boards/arm/stm32l5/nucleo-l552ze/scripts/flash.ld index e256cbb86a..b5765e8118 100644 --- a/boards/arm/stm32l5/nucleo-l552ze/scripts/flash.ld +++ b/boards/arm/stm32l5/nucleo-l552ze/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l5/stm32l562e-dk/scripts/tfm-ns.ld b/boards/arm/stm32l5/stm32l562e-dk/scripts/tfm-ns.ld index 00a6047561..447c2ee2d7 100644 --- a/boards/arm/stm32l5/stm32l562e-dk/scripts/tfm-ns.ld +++ b/boards/arm/stm32l5/stm32l562e-dk/scripts/tfm-ns.ld @@ -64,7 +64,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32u5/b-u585i-iot02a/scripts/flash.ld b/boards/arm/stm32u5/b-u585i-iot02a/scripts/flash.ld index a211bc4f4b..7792d46099 100644 --- a/boards/arm/stm32u5/b-u585i-iot02a/scripts/flash.ld +++ b/boards/arm/stm32u5/b-u585i-iot02a/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32u5/b-u585i-iot02a/scripts/tfm-ns.ld b/boards/arm/stm32u5/b-u585i-iot02a/scripts/tfm-ns.ld index 347ffc38f9..ce3aa0e424 100644 --- a/boards/arm/stm32u5/b-u585i-iot02a/scripts/tfm-ns.ld +++ b/boards/arm/stm32u5/b-u585i-iot02a/scripts/tfm-ns.ld @@ -64,7 +64,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32wb/flipperzero/scripts/flipperzero.ld b/boards/arm/stm32wb/flipperzero/scripts/flipperzero.ld index 7f969fbdeb..b3c6559e15 100644 --- a/boards/arm/stm32wb/flipperzero/scripts/flipperzero.ld +++ b/boards/arm/stm32wb/flipperzero/scripts/flipperzero.ld @@ -62,7 +62,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32wb/nucleo-wb55rg/scripts/wb55rg.ld b/boards/arm/stm32wb/nucleo-wb55rg/scripts/wb55rg.ld index 598ac04744..8e91a26a62 100644 --- a/boards/arm/stm32wb/nucleo-wb55rg/scripts/wb55rg.ld +++ b/boards/arm/stm32wb/nucleo-wb55rg/scripts/wb55rg.ld @@ -62,7 +62,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld b/boards/arm/stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld index 8b5c88c4f5..f1b4f681a6 100644 --- a/boards/arm/stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld +++ b/boards/arm/stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/str71x/olimex-strp711/scripts/ld.script b/boards/arm/str71x/olimex-strp711/scripts/ld.script index 434cb38b0d..af404b02e8 100644 --- a/boards/arm/str71x/olimex-strp711/scripts/ld.script +++ b/boards/arm/str71x/olimex-strp711/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/dk-tm4c129x/scripts/ld.script b/boards/arm/tiva/dk-tm4c129x/scripts/ld.script index ff1c9ee2e9..6175a88535 100644 --- a/boards/arm/tiva/dk-tm4c129x/scripts/ld.script +++ b/boards/arm/tiva/dk-tm4c129x/scripts/ld.script @@ -52,7 +52,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/eagle100/scripts/ld.script b/boards/arm/tiva/eagle100/scripts/ld.script index 37555c8229..891f39413f 100644 --- a/boards/arm/tiva/eagle100/scripts/ld.script +++ b/boards/arm/tiva/eagle100/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/ekk-lm3s9b96/scripts/ekk-lm3s9b96.ld b/boards/arm/tiva/ekk-lm3s9b96/scripts/ekk-lm3s9b96.ld index 353aab94f2..d81d766b9b 100644 --- a/boards/arm/tiva/ekk-lm3s9b96/scripts/ekk-lm3s9b96.ld +++ b/boards/arm/tiva/ekk-lm3s9b96/scripts/ekk-lm3s9b96.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/launchxl-cc1310/scripts/flash.ld b/boards/arm/tiva/launchxl-cc1310/scripts/flash.ld index d2a560db44..ef67dab13f 100644 --- a/boards/arm/tiva/launchxl-cc1310/scripts/flash.ld +++ b/boards/arm/tiva/launchxl-cc1310/scripts/flash.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/launchxl-cc1312r1/scripts/flash.ld b/boards/arm/tiva/launchxl-cc1312r1/scripts/flash.ld index 53bc771132..15b120c03f 100644 --- a/boards/arm/tiva/launchxl-cc1312r1/scripts/flash.ld +++ b/boards/arm/tiva/launchxl-cc1312r1/scripts/flash.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/launchxl-cc1312r1/scripts/sram.ld b/boards/arm/tiva/launchxl-cc1312r1/scripts/sram.ld index c19655de96..80807a6aab 100644 --- a/boards/arm/tiva/launchxl-cc1312r1/scripts/sram.ld +++ b/boards/arm/tiva/launchxl-cc1312r1/scripts/sram.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/tiva/lm3s6432-s2e/scripts/lm3s6432-s2e.ld b/boards/arm/tiva/lm3s6432-s2e/scripts/lm3s6432-s2e.ld index ba1c4d5fb1..378e37f0df 100644 --- a/boards/arm/tiva/lm3s6432-s2e/scripts/lm3s6432-s2e.ld +++ b/boards/arm/tiva/lm3s6432-s2e/scripts/lm3s6432-s2e.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/lm3s6965-ek/scripts/kernel-space.ld b/boards/arm/tiva/lm3s6965-ek/scripts/kernel-space.ld index 043deee14c..c62c0376df 100644 --- a/boards/arm/tiva/lm3s6965-ek/scripts/kernel-space.ld +++ b/boards/arm/tiva/lm3s6965-ek/scripts/kernel-space.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/tiva/lm3s6965-ek/scripts/ld.script b/boards/arm/tiva/lm3s6965-ek/scripts/ld.script index 15cc25511f..b20a9d7ec9 100644 --- a/boards/arm/tiva/lm3s6965-ek/scripts/ld.script +++ b/boards/arm/tiva/lm3s6965-ek/scripts/ld.script @@ -51,7 +51,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/lm3s6965-ek/scripts/user-space.ld b/boards/arm/tiva/lm3s6965-ek/scripts/user-space.ld index 6f5fc187e5..bb4ef2ea9d 100644 --- a/boards/arm/tiva/lm3s6965-ek/scripts/user-space.ld +++ b/boards/arm/tiva/lm3s6965-ek/scripts/user-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/tiva/lm3s8962-ek/scripts/ld.script b/boards/arm/tiva/lm3s8962-ek/scripts/ld.script index 9f377b0146..d0a5b852c4 100644 --- a/boards/arm/tiva/lm3s8962-ek/scripts/ld.script +++ b/boards/arm/tiva/lm3s8962-ek/scripts/ld.script @@ -51,7 +51,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/lm4f120-launchpad/scripts/lm4f120-launchpad.ld b/boards/arm/tiva/lm4f120-launchpad/scripts/lm4f120-launchpad.ld index 9e5dc7063a..18007be8cb 100644 --- a/boards/arm/tiva/lm4f120-launchpad/scripts/lm4f120-launchpad.ld +++ b/boards/arm/tiva/lm4f120-launchpad/scripts/lm4f120-launchpad.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/tm4c123g-launchpad/scripts/tm4c123g-launchpad.ld b/boards/arm/tiva/tm4c123g-launchpad/scripts/tm4c123g-launchpad.ld index a6070d61b5..64d8cea811 100644 --- a/boards/arm/tiva/tm4c123g-launchpad/scripts/tm4c123g-launchpad.ld +++ b/boards/arm/tiva/tm4c123g-launchpad/scripts/tm4c123g-launchpad.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/tm4c1294-launchpad/scripts/ld.script b/boards/arm/tiva/tm4c1294-launchpad/scripts/ld.script index a89b15a203..613c41eed0 100644 --- a/boards/arm/tiva/tm4c1294-launchpad/scripts/ld.script +++ b/boards/arm/tiva/tm4c1294-launchpad/scripts/ld.script @@ -52,7 +52,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/tm4c129e-launchpad/scripts/ld.script b/boards/arm/tiva/tm4c129e-launchpad/scripts/ld.script index 83b98ef597..94fcb6f4d5 100644 --- a/boards/arm/tiva/tm4c129e-launchpad/scripts/ld.script +++ b/boards/arm/tiva/tm4c129e-launchpad/scripts/ld.script @@ -52,7 +52,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tms570/launchxl-tms57004/scripts/flash-sram.ld b/boards/arm/tms570/launchxl-tms57004/scripts/flash-sram.ld index 099c8a029d..1580d98af3 100644 --- a/boards/arm/tms570/launchxl-tms57004/scripts/flash-sram.ld +++ b/boards/arm/tms570/launchxl-tms57004/scripts/flash-sram.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tms570/tms570ls31x-usb-kit/scripts/flash-sram.ld b/boards/arm/tms570/tms570ls31x-usb-kit/scripts/flash-sram.ld index 9d2b85b6d4..1fb591b217 100644 --- a/boards/arm/tms570/tms570ls31x-usb-kit/scripts/flash-sram.ld +++ b/boards/arm/tms570/tms570ls31x-usb-kit/scripts/flash-sram.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld b/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld index 5e5db11559..e263308dd4 100644 --- a/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld +++ b/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld @@ -57,7 +57,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld b/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld index 580b85ebe9..94f9c2ba04 100644 --- a/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld +++ b/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld @@ -62,7 +62,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm64/a64/pinephone/scripts/dramboot.ld b/boards/arm64/a64/pinephone/scripts/dramboot.ld index 360721397a..fb6a52fe21 100644 --- a/boards/arm64/a64/pinephone/scripts/dramboot.ld +++ b/boards/arm64/a64/pinephone/scripts/dramboot.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); } diff --git a/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld b/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld index 7d7a558e11..5f9a662bcf 100644 --- a/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld +++ b/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld @@ -44,7 +44,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); }