From e21885b84a3d2597c07aa6a3ccd98715e58f846b Mon Sep 17 00:00:00 2001 From: cuiziwei Date: Fri, 22 Dec 2023 11:45:30 +0800 Subject: [PATCH] nuttx/boards:Uniform initialization format for init_array. (1) Keep the `.init_array` and `.ctors` symbols and sort them according to their initialization priority. (2) Exclude symbols ending with crtend.* and crtbegin.* to support c++ application.if we not exclude crtend.* crtbegin.* frame_dummy will be added when enable any c++ application with global variables, this symbol execution is problematic, removing it does not affect the application. Signed-off-by: cuiziwei --- binfmt/libelf/gnu-elf.ld | 5 +- boards/arm/a1x/pcduino-a10/scripts/sdram.ld | 2 +- .../am335x/beaglebone-black/scripts/sdram.ld | 2 +- .../at32f437-mini/scripts/kernel-space.ld | 3 +- .../arm/at32/at32f437-mini/scripts/ld.script | 3 +- .../at32/at32f437-mini/scripts/user-space.ld | 3 +- .../spresense/scripts/ramconfig-new.ld | 2 +- .../cxd56xx/spresense/scripts/ramconfig.ld | 2 +- .../efm32-g8xx-stk/scripts/efm32-g8xx-stk.ld | 2 +- .../efm32/efm32gg-stk3700/scripts/ld.script | 2 +- .../scripts/ld.script | 2 +- .../arm/eoss3/quickfeather/scripts/ld.script | 2 +- .../fvp-armv8r-aarch32/scripts/dramboot.ld | 3 +- .../gd32f450zk-eval/scripts/kernel-space.ld | 2 +- .../gd32f4/gd32f450zk-eval/scripts/ld.script | 2 +- .../gd32f450zk-eval/scripts/user-space.ld | 2 +- .../gd32f470zk-eval/scripts/kernel-space.ld | 2 +- .../gd32f4/gd32f470zk-eval/scripts/ld.script | 2 +- .../gd32f470zk-eval/scripts/user-space.ld | 2 +- .../arm/imx6/sabre-6quad/scripts/dramboot.ld | 2 +- .../arm/imx6/sabre-6quad/scripts/dramboot.sct | 4 +- .../imxrt1020-evk/scripts/flash-ocram.ld | 2 +- .../imxrt1050-evk/scripts/flash-ocram.ld | 2 +- .../imxrt1050-evk/scripts/kernel-space.ld | 2 +- .../imxrt/imxrt1050-evk/scripts/user-space.ld | 2 +- .../imxrt1060-evk/scripts/flash-ocram.ld | 2 +- .../arm/imxrt/imxrt1060-evk/scripts/flash.ld | 2 +- .../imxrt1060-evk/scripts/kernel-space.ld | 2 +- .../imxrt/imxrt1060-evk/scripts/user-space.ld | 2 +- .../scripts/flash-mcuboot-app.ld | 3 +- .../scripts/flash-mcuboot-loader.ld | 3 +- .../imxrt1064-evk/scripts/flash-ocram.ld | 2 +- .../arm/imxrt/imxrt1064-evk/scripts/flash.ld | 2 +- .../imxrt1064-evk/scripts/kernel-space.ld | 2 +- .../imxrt/imxrt1064-evk/scripts/user-space.ld | 2 +- .../imxrt/teensy-4.x/scripts/flash-ocram.ld | 2 +- boards/arm/imxrt/teensy-4.x/scripts/flash.ld | 2 +- .../imxrt/teensy-4.x/scripts/kernel-space.ld | 2 +- .../imxrt/teensy-4.x/scripts/user-space.ld | 2 +- .../arm/kinetis/freedom-k28f/scripts/flash.ld | 2 +- .../arm/kinetis/freedom-k64f/scripts/flash.ld | 2 +- .../arm/kinetis/freedom-k66f/scripts/flash.ld | 2 +- .../kwikstik-k40/scripts/kwikstik-k40.ld | 2 +- .../teensy-3.x/scripts/mk20dx128vlh5.ld | 2 +- .../teensy-3.x/scripts/mk20dx256vlh7.ld | 2 +- .../twr-k60n512/scripts/twr-k60n512.ld | 2 +- .../kinetis/twr-k64f120m/scripts/ld.script | 2 +- .../kl/freedom-kl25z/scripts/freedom-kl25z.ld | 2 +- .../kl/freedom-kl26z/scripts/freedom-kl26z.ld | 2 +- boards/arm/kl/teensy-lc/scripts/teensy-lc.ld | 2 +- .../lc823450-xgevk/scripts/ld-ipl2.script | 2 +- .../scripts/ld-spif-boot.script | 2 +- .../lc823450/lc823450-xgevk/scripts/ld.script | 2 +- .../lc823450-xgevk/scripts/user-space.ld | 2 +- .../lpc17xx_40xx/lincoln60/scripts/ld.script | 2 +- .../lpc4088-devkit/scripts/kernel-space.ld | 2 +- .../lpc4088-devkit/scripts/ld.script | 2 +- .../lpc4088-devkit/scripts/user-space.ld | 2 +- .../scripts/kernel-space.ld | 2 +- .../lpc4088-quickstart/scripts/ld.script | 2 +- .../lpc4088-quickstart/scripts/user-space.ld | 2 +- .../lpcxpresso-lpc1768/scripts/ld.script | 2 +- .../lx_cpu/scripts/kernel-space.ld | 2 +- .../lx_cpu/scripts/link-flash-app.ld | 2 +- .../lx_cpu/scripts/link-flash-boot.ld | 2 +- .../lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld | 2 +- .../lpc17xx_40xx/lx_cpu/scripts/user-space.ld | 2 +- .../arm/lpc17xx_40xx/mbed/scripts/ld.script | 2 +- .../lpc17xx_40xx/mcb1700/scripts/ld.script | 2 +- .../olimex-lpc1766stk/scripts/ld.script | 2 +- .../open1788/scripts/kernel-space.ld | 2 +- .../lpc17xx_40xx/open1788/scripts/ld.script | 2 +- .../open1788/scripts/user-space.ld | 2 +- .../pnev5180b/scripts/kernel-space.ld | 2 +- .../pnev5180b/scripts/user-space.ld | 2 +- .../u-blox-c027/scripts/u-blox-c027.ld | 2 +- .../lpc214x/mcu123-lpc214x/scripts/ld.script | 2 +- boards/arm/lpc214x/zp214xpa/scripts/ld.script | 2 +- .../lpc2378/olimex-lpc2378/scripts/ld.script | 2 +- boards/arm/lpc31xx/ea3131/scripts/ld.script | 2 +- .../arm/lpc31xx/ea3131/scripts/pg-ld.script | 2 +- boards/arm/lpc31xx/ea3152/scripts/ea3152.ld | 2 +- .../olimex-lpc-h3131/scripts/ld.script | 2 +- .../lpc43xx/bambino-200e/scripts/ramconfig.ld | 2 +- .../bambino-200e/scripts/spificonfig.ld | 2 +- .../bambino-200e/scripts/user-space.ld | 2 +- .../lpc4330-xplorer/scripts/ramconfig.ld | 2 +- .../lpc4330-xplorer/scripts/spificonfig.ld | 2 +- .../lpc4337-ws/scripts/flashaconfig.ld | 2 +- .../lpc43xx/lpc4337-ws/scripts/ramconfig.ld | 2 +- .../lpc4357-evb/scripts/flashaconfig.ld | 2 +- .../lpc43xx/lpc4357-evb/scripts/ramconfig.ld | 2 +- .../lpc4357-evb/scripts/spificonfig.ld | 2 +- .../lpc4370-link2/scripts/ramconfig.ld | 2 +- .../lpc4370-link2/scripts/spificonfig.ld | 2 +- .../lpcxpresso-lpc54628/scripts/flash.ld | 2 +- .../max326xx/max32660-evsys/scripts/flash.ld | 2 +- .../max326xx/max32660-evsys/scripts/sram.ld | 2 +- boards/arm/moxart/moxa/scripts/moxa.ld | 2 +- boards/arm/mps/mps3-an547/scripts/flash.ld | 2 +- boards/arm/mx8mp/verdin-mx8mp/scripts/ddr.ld | 2 +- boards/arm/mx8mp/verdin-mx8mp/scripts/itcm.ld | 2 +- .../scripts/flash_config.ld | 3 +- .../scripts/flash_config.ld | 3 +- .../arm/nrf52/common/scripts/flash_config.ld | 3 +- .../nrf52-feather/scripts/flash_config.ld | 2 +- .../nrf52/nrf52832-dk/scripts/flash_config.ld | 2 +- .../nrf52832-mdk/scripts/flash_config.ld | 2 +- .../nrf52832-sparkfun/scripts/flash_config.ld | 2 +- .../nrf52/nrf52840-dk/scripts/flash_config.ld | 2 +- .../nrf52840-dongle/scripts/flash_config.ld | 2 +- .../nrf9160-dk-nrf52/scripts/flash_config.ld | 2 +- .../nrf52/thingy52/scripts/flash_config.ld | 2 +- .../thingy91-nrf52/scripts/flash_config.ld | 2 +- boards/arm/nrf53/common/scripts/flash_app.ld | 3 +- boards/arm/nrf53/common/scripts/flash_net.ld | 3 +- .../nrf5340-audio-dk/scripts/flash_app.ld | 3 +- .../nrf5340-audio-dk/scripts/flash_net.ld | 3 +- .../arm/nrf53/nrf5340-dk/scripts/flash_app.ld | 3 +- .../arm/nrf53/nrf5340-dk/scripts/flash_net.ld | 3 +- .../arm/nrf53/thingy53/scripts/flash_app.ld | 3 +- .../arm/nrf53/thingy53/scripts/flash_net.ld | 2 +- boards/arm/nrf91/common/scripts/flash_app.ld | 3 +- .../arm/nrf91/nrf9160-dk/scripts/flash_app.ld | 3 +- .../arm/nrf91/thingy91/scripts/flash_app.ld | 3 +- .../nutiny-nuc120/scripts/nutiny-nuc120.ld | 2 +- boards/arm/phy62xx/phy6222/scripts/flash.ld | 2 +- .../arm/qemu/qemu-armv7a/scripts/dramboot.ld | 2 +- .../scripts/adafruit-feather-rp2040-flash.ld | 2 +- .../scripts/adafruit-feather-rp2040-sram.ld | 2 +- .../scripts/adafruit-kb2040-flash.ld | 2 +- .../scripts/adafruit-kb2040-sram.ld | 2 +- .../scripts/adafruit-qt-py-rp2040-flash.ld | 2 +- .../scripts/adafruit-qt-py-rp2040-sram.ld | 2 +- .../scripts/pimoroni-tiny2040-flash.ld | 2 +- .../scripts/pimoroni-tiny2040-sram.ld | 2 +- .../scripts/raspberrypi-pico-flash.ld | 2 +- .../scripts/raspberrypi-pico-sram.ld | 2 +- .../scripts/raspberrypi-pico-flash.ld | 2 +- .../scripts/raspberrypi-pico-sram.ld | 2 +- .../waveshare-rp2040-lcd-1-28-flash.ld | 2 +- .../scripts/waveshare-rp2040-lcd-1-28-sram.ld | 2 +- .../s32k1xx/rddrone-bms772/scripts/flash.ld | 2 +- .../s32k1xx/rddrone-bms772/scripts/sram.ld | 2 +- .../arm/s32k1xx/s32k118evb/scripts/flash.ld | 2 +- .../arm/s32k1xx/s32k144evb/scripts/flash.ld | 2 +- boards/arm/s32k1xx/s32k144evb/scripts/sram.ld | 2 +- .../arm/s32k1xx/s32k146evb/scripts/flash.ld | 2 +- boards/arm/s32k1xx/s32k146evb/scripts/sram.ld | 2 +- .../arm/s32k1xx/s32k148evb/scripts/flash.ld | 2 +- boards/arm/s32k1xx/s32k148evb/scripts/sram.ld | 2 +- .../arm/s32k1xx/ucans32k146/scripts/flash.ld | 2 +- .../arm/s32k1xx/ucans32k146/scripts/sram.ld | 2 +- .../arm/s32k3xx/mr-canhubk3/scripts/flash.ld | 2 +- .../mr-canhubk3/scripts/kernel-space.ld | 4 +- .../s32k3xx/mr-canhubk3/scripts/user-space.ld | 2 +- .../arm/s32k3xx/s32k344evb/scripts/flash.ld | 2 +- .../sam34/arduino-due/scripts/arduino-due.ld | 2 +- .../sam34/flipnclick-sam3x/scripts/flash.ld | 2 +- .../sam34/sam3u-ek/scripts/kernel-space.ld | 2 +- boards/arm/sam34/sam3u-ek/scripts/ld.script | 2 +- .../arm/sam34/sam3u-ek/scripts/user-space.ld | 2 +- .../sam34/sam4cmp-db/scripts/sam4cmp-db.ld | 2 +- boards/arm/sam34/sam4e-ek/scripts/flash.ld | 2 +- .../sam4l-xplained/scripts/sam4l-xplained.ld | 2 +- .../scripts/sam4s-xplained-pro.ld | 2 +- .../sam4s-xplained/scripts/sam4s-xplained.ld | 2 +- .../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 +- .../sama5/jupiter-nano/scripts/dramboot.ld | 2 +- .../arm/sama5/jupiter-nano/scripts/isram.ld | 2 +- .../arm/sama5/jupiter-nano/scripts/uboot.ld | 2 +- .../sama5/sama5d2-xult/scripts/dramboot.ld | 2 +- .../arm/sama5/sama5d2-xult/scripts/isram.ld | 2 +- .../arm/sama5/sama5d2-xult/scripts/uboot.ld | 2 +- .../sama5/sama5d3-xplained/scripts/ddram.ld | 2 +- .../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 +- .../sama5/sama5d3x-ek/scripts/nor-ddram.ld | 2 +- .../sama5/sama5d3x-ek/scripts/nor-isram.ld | 2 +- .../arm/sama5/sama5d3x-ek/scripts/pg-sram.ld | 2 +- .../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 +- .../arm/samd2l2/arduino-m0/scripts/flash.ld | 2 +- .../samd2l2/circuit-express/scripts/flash.ld | 2 +- .../samd2l2/samd20-xplained/scripts/flash.ld | 2 +- .../samd2l2/samd21-xplained/scripts/flash.ld | 2 +- .../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 +- .../same54-xplained-pro/scripts/flash.ld | 2 +- .../same54-xplained-pro/scripts/sram.ld | 2 +- .../samv7/common/scripts/flash.ld.template | 5 +- .../arm/samv7/common/scripts/kernel-space.ld | 2 +- boards/arm/samv7/common/scripts/user-space.ld | 2 +- .../arm/stm32/axoloti/scripts/kernel-space.ld | 2 +- boards/arm/stm32/axoloti/scripts/ld.script | 2 +- .../arm/stm32/axoloti/scripts/user-space.ld | 2 +- .../arm/stm32/b-g431b-esc1/scripts/ld.script | 2 +- .../arm/stm32/b-g474e-dpow1/scripts/ld.script | 2 +- .../stm32/b-g474e-dpow1/scripts/ld.script.dfu | 2 +- .../arm/stm32/clicker2-stm32/scripts/flash.ld | 2 +- .../clicker2-stm32/scripts/kernel-space.ld | 2 +- .../clicker2-stm32/scripts/user-space.ld | 2 +- .../stm32/cloudctrl/scripts/cloudctrl-dfu.ld | 2 +- .../arm/stm32/cloudctrl/scripts/cloudctrl.ld | 2 +- boards/arm/stm32/emw3162/scripts/ld.script | 2 +- .../stm32/et-stm32-stamp/scripts/ld.script | 2 +- .../fire-stm32v2/scripts/fire-stm32v2-dfu.ld | 2 +- .../fire-stm32v2/scripts/fire-stm32v2.ld | 2 +- .../arm/stm32/hymini-stm32v/scripts/ld.script | 2 +- boards/arm/stm32/maple/scripts/ld.script | 2 +- boards/arm/stm32/maple/scripts/ld.script.dfu | 8 +- .../mikroe-stm32f4/scripts/kernel-space.ld | 2 +- .../stm32/mikroe-stm32f4/scripts/ld.script | 2 +- .../mikroe-stm32f4/scripts/user-space.ld | 2 +- .../arm/stm32/nucleo-f103rb/scripts/ld.script | 2 +- .../arm/stm32/nucleo-f207zg/scripts/ld.script | 2 +- .../arm/stm32/nucleo-f302r8/scripts/ld.script | 2 +- .../arm/stm32/nucleo-f303re/scripts/ld.script | 2 +- .../arm/stm32/nucleo-f303ze/scripts/ld.script | 2 +- .../arm/stm32/nucleo-f334r8/scripts/ld.script | 2 +- .../arm/stm32/nucleo-f410rb/scripts/f410rb.ld | 2 +- .../arm/stm32/nucleo-f412zg/scripts/f412zg.ld | 2 +- .../nucleo-f429zi/scripts/kernel-space.ld | 2 +- .../arm/stm32/nucleo-f429zi/scripts/ld.script | 2 +- .../stm32/nucleo-f429zi/scripts/user-space.ld | 2 +- .../arm/stm32/nucleo-f446re/scripts/f446re.ld | 2 +- .../arm/stm32/nucleo-f4x1re/scripts/f401re.ld | 2 +- .../arm/stm32/nucleo-f4x1re/scripts/f411re.ld | 2 +- .../arm/stm32/nucleo-g431kb/scripts/ld.script | 2 +- .../arm/stm32/nucleo-g431rb/scripts/ld.script | 2 +- .../arm/stm32/nucleo-g474re/scripts/ld.script | 2 +- .../stm32/nucleo-g474re/scripts/ld.script.dfu | 2 +- .../arm/stm32/nucleo-l152re/scripts/ld.script | 2 +- .../stm32/olimex-stm32-e407/scripts/f407ze.ld | 2 +- .../stm32/olimex-stm32-e407/scripts/f407zg.ld | 2 +- .../stm32/olimex-stm32-h405/scripts/ld.script | 2 +- .../stm32/olimex-stm32-h407/scripts/ld.script | 2 +- .../stm32/olimex-stm32-p107/scripts/ld.script | 2 +- .../olimex-stm32-p107/scripts/ld.script.dfu | 8 +- .../stm32/olimex-stm32-p207/scripts/ld.script | 2 +- .../stm32/olimex-stm32-p407/scripts/flash.ld | 2 +- .../olimex-stm32-p407/scripts/kernel-space.ld | 2 +- .../olimex-stm32-p407/scripts/user-space.ld | 2 +- .../stm32/olimexino-stm32/scripts/ld.script | 2 +- .../olimexino-stm32/scripts/ld.script.dfu | 8 +- .../stm32/omnibusf4/scripts/kernel-space.ld | 2 +- boards/arm/stm32/omnibusf4/scripts/ld.script | 2 +- .../arm/stm32/omnibusf4/scripts/user-space.ld | 2 +- boards/arm/stm32/photon/scripts/photon_dfu.ld | 2 +- .../arm/stm32/photon/scripts/photon_jtag.ld | 2 +- boards/arm/stm32/shenzhou/scripts/ld.script | 2 +- .../arm/stm32/shenzhou/scripts/ld.script.dfu | 8 +- .../arm/stm32/stm3210e-eval/scripts/ld.script | 2 +- .../stm32/stm3210e-eval/scripts/ld.script.dfu | 8 +- .../arm/stm32/stm3220g-eval/scripts/ld.script | 2 +- .../stm3240g-eval/scripts/kernel-space.ld | 2 +- .../arm/stm32/stm3240g-eval/scripts/ld.script | 2 +- .../stm32/stm3240g-eval/scripts/user-space.ld | 2 +- boards/arm/stm32/stm32_tiny/scripts/ld.script | 2 +- .../arm/stm32/stm32butterfly2/scripts/dfu.ld | 2 +- .../stm32/stm32butterfly2/scripts/flash.ld | 2 +- .../stm32/stm32f103-minimum/scripts/ld.script | 2 +- .../stm32f103-minimum/scripts/ld.script.dfu | 8 +- .../stm32/stm32f334-disco/scripts/ld.script | 2 +- .../stm32/stm32f3discovery/scripts/ld.script | 2 +- .../stm32f411-minimum/scripts/stm32f411ce.ld | 2 +- .../stm32/stm32f411e-disco/scripts/f411ve.ld | 2 +- .../stm32f429i-disco/scripts/kernel-space.ld | 2 +- .../stm32/stm32f429i-disco/scripts/ld.script | 2 +- .../stm32f429i-disco/scripts/ofloader.ld | 2 +- .../stm32f429i-disco/scripts/user-space.ld | 2 +- .../stm32f4discovery/scripts/kernel-space.ld | 2 +- .../stm32/stm32f4discovery/scripts/ld.script | 2 +- .../stm32f4discovery/scripts/user-space.ld | 2 +- .../stm32ldiscovery/scripts/stm32l152rb.ld | 2 +- .../stm32ldiscovery/scripts/stm32l152rc.ld | 2 +- .../scripts/stm32vldiscovery.ld | 2 +- .../stm32/viewtool-stm32f107/scripts/dfu.ld | 2 +- .../stm32/viewtool-stm32f107/scripts/flash.ld | 2 +- .../b-l072z-lrwan1/scripts/ld.script | 2 +- .../nucleo-f072rb/scripts/flash.ld | 2 +- .../nucleo-f091rc/scripts/flash.ld | 2 +- .../nucleo-g070rb/scripts/ld.script | 2 +- .../nucleo-g071rb/scripts/ld.script | 2 +- .../nucleo-l073rz/scripts/ld.script | 2 +- .../stm32f051-discovery/scripts/flash.ld | 2 +- .../stm32f072-discovery/scripts/flash.ld | 2 +- .../stm32g071b-disco/scripts/ld.script | 2 +- .../stm32l0538-disco/scripts/ld.script | 2 +- .../stm32f7/nucleo-144/scripts/f722-flash.ld | 2 +- .../stm32f7/nucleo-144/scripts/f746-flash.ld | 2 +- .../stm32f7/nucleo-144/scripts/f767-flash.ld | 2 +- .../nucleo-144/scripts/kernel-space.ld | 2 +- .../stm32f7/nucleo-144/scripts/user-space.ld | 2 +- .../stm32f7/steval-eth001v1/scripts/flash.ld | 2 +- .../arm/stm32f7/stm32f746-ws/scripts/flash.ld | 2 +- .../stm32f746-ws/scripts/kernel-space.ld | 2 +- .../stm32f746-ws/scripts/user-space.ld | 2 +- .../stm32f7/stm32f746g-disco/scripts/flash.ld | 2 +- .../stm32f746g-disco/scripts/kernel-space.ld | 2 +- .../stm32f746g-disco/scripts/user-space.ld | 2 +- .../stm32f7/stm32f769i-disco/scripts/flash.ld | 2 +- .../stm32f769i-disco/scripts/kernel-space.ld | 2 +- .../stm32f769i-disco/scripts/user-space.ld | 2 +- .../scripts/kernel-space.ld | 2 +- .../stm32f777zit6-meadow/scripts/ld.script | 2 +- .../scripts/user-space.ld | 2 +- .../scripts/flash-mcuboot-app.ld | 2 +- .../scripts/flash-mcuboot-loader.ld | 2 +- .../stm32h7/nucleo-h743zi/scripts/flash.ld | 2 +- .../nucleo-h743zi/scripts/kernel.space.ld | 2 +- .../nucleo-h743zi/scripts/user-space.ld | 2 +- .../stm32h7/nucleo-h743zi2/scripts/flash.ld | 2 +- .../nucleo-h743zi2/scripts/user-space.ld | 2 +- .../stm32h7/nucleo-h745zi/scripts/flash.ld | 3 +- .../stm32h7/nucleo-h745zi/scripts/flash_m4.ld | 3 +- .../stm32h7/stm32h745i-disco/scripts/flash.ld | 3 +- .../stm32h745i-disco/scripts/user-space.ld | 3 +- .../stm32h7/stm32h747i-disco/scripts/flash.ld | 2 +- .../stm32h747i-disco/scripts/kernel.space.ld | 2 +- .../stm32h747i-disco/scripts/user-space.ld | 2 +- .../stm32l4/b-l475e-iot01a/scripts/flash.ld | 2 +- .../stm32l4/nucleo-l432kc/scripts/l432kc.ld | 2 +- .../nucleo-l452re/scripts/l452re-flash.ld | 2 +- .../stm32l4/nucleo-l476rg/scripts/l476rg.ld | 2 +- .../nucleo-l496zg/scripts/kernel-space.ld | 2 +- .../nucleo-l496zg/scripts/l496zg-flash.ld | 2 +- .../nucleo-l496zg/scripts/user-space.ld | 2 +- .../steval-stlcs01v1/scripts/ld.script | 2 +- .../stm32l476-mdk/scripts/stm32l476-mdk.ld | 2 +- .../stm32l476vg-disco/scripts/kernel-space.ld | 2 +- .../scripts/stm32l476vg-disco.ld | 2 +- .../stm32l476vg-disco/scripts/user-space.ld | 2 +- .../stm32l4r9ai-disco/scripts/kernel-space.ld | 2 +- .../scripts/stm32l4r9ai-disco.ld | 2 +- .../stm32l4r9ai-disco/scripts/user-space.ld | 2 +- .../stm32l5/nucleo-l552ze/scripts/flash.ld | 2 +- .../stm32l5/stm32l562e-dk/scripts/tfm-ns.ld | 2 +- .../stm32u5/b-u585i-iot02a/scripts/flash.ld | 2 +- .../stm32u5/b-u585i-iot02a/scripts/tfm-ns.ld | 2 +- .../stm32u5/nucleo-u5a5zj-q/scripts/flash.ld | 3 +- .../stm32u5/nucleo-u5a5zj-q/scripts/tfm-ns.ld | 3 +- .../flipperzero/scripts/flipperzero.ld | 2 +- .../stm32wb/nucleo-wb55rg/scripts/wb55rg.ld | 2 +- .../stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld | 2 +- .../str71x/olimex-strp711/scripts/ld.script | 2 +- boards/arm/tiva/dk-tm4c129x/scripts/ld.script | 2 +- boards/arm/tiva/eagle100/scripts/ld.script | 2 +- .../tiva/ekk-lm3s9b96/scripts/ekk-lm3s9b96.ld | 2 +- .../arm/tiva/launchxl-cc1310/scripts/flash.ld | 2 +- .../tiva/launchxl-cc1312r1/scripts/flash.ld | 2 +- .../tiva/launchxl-cc1312r1/scripts/sram.ld | 2 +- .../tiva/lm3s6432-s2e/scripts/lm3s6432-s2e.ld | 2 +- .../tiva/lm3s6965-ek/scripts/kernel-space.ld | 2 +- boards/arm/tiva/lm3s6965-ek/scripts/ld.script | 2 +- .../tiva/lm3s6965-ek/scripts/user-space.ld | 2 +- boards/arm/tiva/lm3s8962-ek/scripts/ld.script | 2 +- .../scripts/lm4f120-launchpad.ld | 2 +- .../scripts/tm4c123g-launchpad.ld | 2 +- .../tiva/tm4c1294-launchpad/scripts/ld.script | 2 +- .../tiva/tm4c129e-launchpad/scripts/ld.script | 2 +- .../launchxl-tms57004/scripts/flash-sram.ld | 2 +- .../tms570ls31x-usb-kit/scripts/flash-sram.ld | 2 +- .../arm/xmc4/xmc4500-relax/scripts/flash.ld | 2 +- .../arm/xmc4/xmc4700-relax/scripts/flash.ld | 2 +- .../arm64/a64/pinephone/scripts/dramboot.ld | 2 +- .../fvp-v8r/fvp-armv8r/scripts/dramboot.ld | 2 +- .../arm64/imx8/imx8qm-mek/scripts/dramboot.ld | 2 +- .../qemu/qemu-armv8a/scripts/dramboot.ld | 2 +- .../rk3399/nanopi_m4/scripts/dramboot.ld | 2 +- .../rk3399/pinephonepro/scripts/dramboot.ld | 2 +- .../arm64/vdk/vdk-armv8r/scripts/dramboot.ld | 128 ++++++++++++++++++ boards/or1k/mor1kx/or1k/scripts/flash.ld | 2 +- .../rx65n-grrose/scripts/linker_script.ld | 2 +- .../rx65n-rsk1mb/scripts/linker_script.ld | 2 +- .../rx65n-rsk2mb/scripts/linker_script.ld | 2 +- .../rx65n/rx65n/scripts/linker_script.ld | 2 +- .../c906/smartl-c906/scripts/ld-qemu.script | 2 +- .../risc-v/c906/smartl-c906/scripts/ld.script | 2 +- .../c906/smartl-c906/scripts/user-space.ld | 2 +- .../fe310/hifive1-revb/scripts/ld-qemu.script | 2 +- .../fe310/hifive1-revb/scripts/ld.script | 2 +- .../hpm6750/hpm6750evk2/scripts/ld.script | 2 +- boards/risc-v/k210/maix-bit/scripts/ld.script | 2 +- .../k210/maix-bit/scripts/user-space.ld | 2 +- .../risc-v/litex/arty_a7/scripts/gnu-elf.ld | 4 +- .../litex/arty_a7/scripts/ld-kernel.script | 2 +- boards/risc-v/litex/arty_a7/scripts/ld.script | 2 +- .../mpfs/icicle/scripts/kernel-space.ld | 2 +- .../icicle/scripts/ld-envm-opensbi.script | 2 +- .../risc-v/mpfs/icicle/scripts/ld-envm.script | 2 +- .../mpfs/icicle/scripts/ld-ihc-ch2.script | 2 +- .../risc-v/mpfs/icicle/scripts/ld-ihc.script | 2 +- .../mpfs/icicle/scripts/ld-kernel.script | 2 +- boards/risc-v/mpfs/icicle/scripts/ld.script | 2 +- .../risc-v/mpfs/icicle/scripts/user-space.ld | 2 +- .../mpfs/m100pfsevp/scripts/ld-envm.script | 2 +- .../risc-v/mpfs/m100pfsevp/scripts/ld.script | 2 +- .../mpfs/m100pfsevp/scripts/user-space.ld | 2 +- .../rv32m1/rv32m1-vega/scripts/ld-itcm.script | 2 +- .../rv32m1/rv32m1-vega/scripts/ld.script | 2 +- 406 files changed, 582 insertions(+), 429 deletions(-) create mode 100644 boards/arm64/vdk/vdk-armv8r/scripts/dramboot.ld diff --git a/binfmt/libelf/gnu-elf.ld b/binfmt/libelf/gnu-elf.ld index 81928663ee..28e56f3403 100644 --- a/binfmt/libelf/gnu-elf.ld +++ b/binfmt/libelf/gnu-elf.ld @@ -73,9 +73,8 @@ SECTIONS .ctors : { _sctors = . ; - *(.ctors) /* Old ABI: Unallocated */ - *(.init_array) /* New ABI: Allocated */ - *(SORT(.init_array.*)) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _ectors = . ; } diff --git a/boards/arm/a1x/pcduino-a10/scripts/sdram.ld b/boards/arm/a1x/pcduino-a10/scripts/sdram.ld index ee083bcc4d..d1bf8499cf 100644 --- a/boards/arm/a1x/pcduino-a10/scripts/sdram.ld +++ b/boards/arm/a1x/pcduino-a10/scripts/sdram.ld @@ -55,7 +55,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/am335x/beaglebone-black/scripts/sdram.ld b/boards/arm/am335x/beaglebone-black/scripts/sdram.ld index 9ab6b5af5e..1c37052de1 100644 --- a/boards/arm/am335x/beaglebone-black/scripts/sdram.ld +++ b/boards/arm/am335x/beaglebone-black/scripts/sdram.ld @@ -60,7 +60,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > ddr diff --git a/boards/arm/at32/at32f437-mini/scripts/kernel-space.ld b/boards/arm/at32/at32f437-mini/scripts/kernel-space.ld index cc7c55453c..ad1852ffe4 100644 --- a/boards/arm/at32/at32f437-mini/scripts/kernel-space.ld +++ b/boards/arm/at32/at32f437-mini/scripts/kernel-space.ld @@ -44,7 +44,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/at32/at32f437-mini/scripts/ld.script b/boards/arm/at32/at32f437-mini/scripts/ld.script index e392e1663f..7ee0d7c3c6 100644 --- a/boards/arm/at32/at32f437-mini/scripts/ld.script +++ b/boards/arm/at32/at32f437-mini/scripts/ld.script @@ -61,7 +61,8 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); - KEEP(*(.init_array .init_array.*)) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/at32/at32f437-mini/scripts/user-space.ld b/boards/arm/at32/at32f437-mini/scripts/user-space.ld index 1ad01e5830..bd2abd1d05 100644 --- a/boards/arm/at32/at32f437-mini/scripts/user-space.ld +++ b/boards/arm/at32/at32f437-mini/scripts/user-space.ld @@ -46,7 +46,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/cxd56xx/spresense/scripts/ramconfig-new.ld b/boards/arm/cxd56xx/spresense/scripts/ramconfig-new.ld index ba2de421ea..673f208c45 100644 --- a/boards/arm/cxd56xx/spresense/scripts/ramconfig-new.ld +++ b/boards/arm/cxd56xx/spresense/scripts/ramconfig-new.ld @@ -94,7 +94,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > ram diff --git a/boards/arm/cxd56xx/spresense/scripts/ramconfig.ld b/boards/arm/cxd56xx/spresense/scripts/ramconfig.ld index 0a0235886b..2b65dd270a 100644 --- a/boards/arm/cxd56xx/spresense/scripts/ramconfig.ld +++ b/boards/arm/cxd56xx/spresense/scripts/ramconfig.ld @@ -94,7 +94,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > ram 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 fc08684065..58876946de 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 @@ -49,7 +49,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/efm32/efm32gg-stk3700/scripts/ld.script b/boards/arm/efm32/efm32gg-stk3700/scripts/ld.script index 7474d038d5..48caa25af8 100644 --- a/boards/arm/efm32/efm32gg-stk3700/scripts/ld.script +++ b/boards/arm/efm32/efm32gg-stk3700/scripts/ld.script @@ -49,7 +49,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 f081776111..817c352758 100644 --- a/boards/arm/efm32/olimex-efm32g880f128-stk/scripts/ld.script +++ b/boards/arm/efm32/olimex-efm32g880f128-stk/scripts/ld.script @@ -49,7 +49,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/eoss3/quickfeather/scripts/ld.script b/boards/arm/eoss3/quickfeather/scripts/ld.script index 1897ffbea1..311f27a06a 100644 --- a/boards/arm/eoss3/quickfeather/scripts/ld.script +++ b/boards/arm/eoss3/quickfeather/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/fvp-v8r-aarch32/fvp-armv8r-aarch32/scripts/dramboot.ld b/boards/arm/fvp-v8r-aarch32/fvp-armv8r-aarch32/scripts/dramboot.ld index 7ffc48c195..48603a9cff 100644 --- a/boards/arm/fvp-v8r-aarch32/fvp-armv8r-aarch32/scripts/dramboot.ld +++ b/boards/arm/fvp-v8r-aarch32/fvp-armv8r-aarch32/scripts/dramboot.ld @@ -54,7 +54,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7018a91459..ebdc7804d5 100644 --- a/boards/arm/gd32f4/gd32f450zk-eval/scripts/kernel-space.ld +++ b/boards/arm/gd32f4/gd32f450zk-eval/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/gd32f4/gd32f450zk-eval/scripts/ld.script b/boards/arm/gd32f4/gd32f450zk-eval/scripts/ld.script index bb0866acc1..580ad5fb21 100644 --- a/boards/arm/gd32f4/gd32f450zk-eval/scripts/ld.script +++ b/boards/arm/gd32f4/gd32f450zk-eval/scripts/ld.script @@ -62,7 +62,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 6a02688b69..c09dd0ee70 100644 --- a/boards/arm/gd32f4/gd32f450zk-eval/scripts/user-space.ld +++ b/boards/arm/gd32f4/gd32f450zk-eval/scripts/user-space.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/gd32f4/gd32f470zk-eval/scripts/kernel-space.ld b/boards/arm/gd32f4/gd32f470zk-eval/scripts/kernel-space.ld index 8377a8e028..3236495a36 100644 --- a/boards/arm/gd32f4/gd32f470zk-eval/scripts/kernel-space.ld +++ b/boards/arm/gd32f4/gd32f470zk-eval/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/gd32f4/gd32f470zk-eval/scripts/ld.script b/boards/arm/gd32f4/gd32f470zk-eval/scripts/ld.script index 5061f61d2b..3216057fd6 100644 --- a/boards/arm/gd32f4/gd32f470zk-eval/scripts/ld.script +++ b/boards/arm/gd32f4/gd32f470zk-eval/scripts/ld.script @@ -62,7 +62,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/gd32f4/gd32f470zk-eval/scripts/user-space.ld b/boards/arm/gd32f4/gd32f470zk-eval/scripts/user-space.ld index 5005e08f18..8ff1c67216 100644 --- a/boards/arm/gd32f4/gd32f470zk-eval/scripts/user-space.ld +++ b/boards/arm/gd32f4/gd32f470zk-eval/scripts/user-space.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/imx6/sabre-6quad/scripts/dramboot.ld b/boards/arm/imx6/sabre-6quad/scripts/dramboot.ld index ab880dba6c..8a8dd31037 100644 --- a/boards/arm/imx6/sabre-6quad/scripts/dramboot.ld +++ b/boards/arm/imx6/sabre-6quad/scripts/dramboot.ld @@ -61,7 +61,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > ddr3 diff --git a/boards/arm/imx6/sabre-6quad/scripts/dramboot.sct b/boards/arm/imx6/sabre-6quad/scripts/dramboot.sct index 2c4509fa8e..4328e00f03 100644 --- a/boards/arm/imx6/sabre-6quad/scripts/dramboot.sct +++ b/boards/arm/imx6/sabre-6quad/scripts/dramboot.sct @@ -59,8 +59,8 @@ OSCRAM_SECTIONS DDR3_START DDR3_SIZE init_section AlignExpr(ImageLimit(text), 0x4) { - *(.init_array) - *(.init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) } ARM.extab AlignExpr(ImageLimit(init_section), 0x4) diff --git a/boards/arm/imxrt/imxrt1020-evk/scripts/flash-ocram.ld b/boards/arm/imxrt/imxrt1020-evk/scripts/flash-ocram.ld index 4c5068b3b3..71f6fb7b19 100644 --- a/boards/arm/imxrt/imxrt1020-evk/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/imxrt1020-evk/scripts/flash-ocram.ld @@ -78,7 +78,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 244fc51a1d..10260de0ff 100644 --- a/boards/arm/imxrt/imxrt1050-evk/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/imxrt1050-evk/scripts/flash-ocram.ld @@ -77,7 +77,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1050-evk/scripts/kernel-space.ld b/boards/arm/imxrt/imxrt1050-evk/scripts/kernel-space.ld index b9ee7cd4cf..8398c7e1e2 100644 --- a/boards/arm/imxrt/imxrt1050-evk/scripts/kernel-space.ld +++ b/boards/arm/imxrt/imxrt1050-evk/scripts/kernel-space.ld @@ -49,7 +49,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/imxrt/imxrt1050-evk/scripts/user-space.ld b/boards/arm/imxrt/imxrt1050-evk/scripts/user-space.ld index 27004464fb..e56ee8969c 100644 --- a/boards/arm/imxrt/imxrt1050-evk/scripts/user-space.ld +++ b/boards/arm/imxrt/imxrt1050-evk/scripts/user-space.ld @@ -63,7 +63,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/imxrt/imxrt1060-evk/scripts/flash-ocram.ld b/boards/arm/imxrt/imxrt1060-evk/scripts/flash-ocram.ld index b565187440..4f59b496e6 100644 --- a/boards/arm/imxrt/imxrt1060-evk/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/imxrt1060-evk/scripts/flash-ocram.ld @@ -123,7 +123,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1060-evk/scripts/flash.ld b/boards/arm/imxrt/imxrt1060-evk/scripts/flash.ld index 3f565cb796..643689554e 100644 --- a/boards/arm/imxrt/imxrt1060-evk/scripts/flash.ld +++ b/boards/arm/imxrt/imxrt1060-evk/scripts/flash.ld @@ -76,7 +76,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1060-evk/scripts/kernel-space.ld b/boards/arm/imxrt/imxrt1060-evk/scripts/kernel-space.ld index aa888d5c45..b0827afab2 100644 --- a/boards/arm/imxrt/imxrt1060-evk/scripts/kernel-space.ld +++ b/boards/arm/imxrt/imxrt1060-evk/scripts/kernel-space.ld @@ -70,7 +70,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/imxrt/imxrt1060-evk/scripts/user-space.ld b/boards/arm/imxrt/imxrt1060-evk/scripts/user-space.ld index 61792ff3bb..a9a8e25c78 100644 --- a/boards/arm/imxrt/imxrt1060-evk/scripts/user-space.ld +++ b/boards/arm/imxrt/imxrt1060-evk/scripts/user-space.ld @@ -63,7 +63,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/imxrt/imxrt1064-evk/scripts/flash-mcuboot-app.ld b/boards/arm/imxrt/imxrt1064-evk/scripts/flash-mcuboot-app.ld index 7b70b44a59..73e698e9ba 100644 --- a/boards/arm/imxrt/imxrt1064-evk/scripts/flash-mcuboot-app.ld +++ b/boards/arm/imxrt/imxrt1064-evk/scripts/flash-mcuboot-app.ld @@ -55,7 +55,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1064-evk/scripts/flash-mcuboot-loader.ld b/boards/arm/imxrt/imxrt1064-evk/scripts/flash-mcuboot-loader.ld index 7c80d9dee7..6c69128e67 100644 --- a/boards/arm/imxrt/imxrt1064-evk/scripts/flash-mcuboot-loader.ld +++ b/boards/arm/imxrt/imxrt1064-evk/scripts/flash-mcuboot-loader.ld @@ -75,7 +75,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 0d95dd7cc5..e92c856733 100644 --- a/boards/arm/imxrt/imxrt1064-evk/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/imxrt1064-evk/scripts/flash-ocram.ld @@ -123,7 +123,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1064-evk/scripts/flash.ld b/boards/arm/imxrt/imxrt1064-evk/scripts/flash.ld index a4aec329b1..1c6ad9522e 100644 --- a/boards/arm/imxrt/imxrt1064-evk/scripts/flash.ld +++ b/boards/arm/imxrt/imxrt1064-evk/scripts/flash.ld @@ -76,7 +76,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/imxrt/imxrt1064-evk/scripts/kernel-space.ld b/boards/arm/imxrt/imxrt1064-evk/scripts/kernel-space.ld index a1ebc83d6c..186890ee1c 100644 --- a/boards/arm/imxrt/imxrt1064-evk/scripts/kernel-space.ld +++ b/boards/arm/imxrt/imxrt1064-evk/scripts/kernel-space.ld @@ -49,7 +49,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/imxrt/imxrt1064-evk/scripts/user-space.ld b/boards/arm/imxrt/imxrt1064-evk/scripts/user-space.ld index 6c5abe4837..e87143c226 100644 --- a/boards/arm/imxrt/imxrt1064-evk/scripts/user-space.ld +++ b/boards/arm/imxrt/imxrt1064-evk/scripts/user-space.ld @@ -63,7 +63,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash 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 a9bf28ddb9..bf80a21ba5 100644 --- a/boards/arm/imxrt/teensy-4.x/scripts/flash-ocram.ld +++ b/boards/arm/imxrt/teensy-4.x/scripts/flash-ocram.ld @@ -123,7 +123,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 cb4a821e65..7b3a118fd0 100644 --- a/boards/arm/imxrt/teensy-4.x/scripts/flash.ld +++ b/boards/arm/imxrt/teensy-4.x/scripts/flash.ld @@ -76,7 +76,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 3c4d9097c8..f0d448736c 100644 --- a/boards/arm/imxrt/teensy-4.x/scripts/kernel-space.ld +++ b/boards/arm/imxrt/teensy-4.x/scripts/kernel-space.ld @@ -49,7 +49,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 ddd76bdbf0..2607e224b1 100644 --- a/boards/arm/imxrt/teensy-4.x/scripts/user-space.ld +++ b/boards/arm/imxrt/teensy-4.x/scripts/user-space.ld @@ -63,7 +63,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/kinetis/freedom-k28f/scripts/flash.ld b/boards/arm/kinetis/freedom-k28f/scripts/flash.ld index 3a92048a99..969c1a0eec 100644 --- a/boards/arm/kinetis/freedom-k28f/scripts/flash.ld +++ b/boards/arm/kinetis/freedom-k28f/scripts/flash.ld @@ -85,7 +85,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/freedom-k64f/scripts/flash.ld b/boards/arm/kinetis/freedom-k64f/scripts/flash.ld index 8ea85ecdb9..c9a18d170b 100644 --- a/boards/arm/kinetis/freedom-k64f/scripts/flash.ld +++ b/boards/arm/kinetis/freedom-k64f/scripts/flash.ld @@ -73,7 +73,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/freedom-k66f/scripts/flash.ld b/boards/arm/kinetis/freedom-k66f/scripts/flash.ld index 862759cc65..5629f076d0 100644 --- a/boards/arm/kinetis/freedom-k66f/scripts/flash.ld +++ b/boards/arm/kinetis/freedom-k66f/scripts/flash.ld @@ -69,7 +69,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 8f04be691d..d5a5557d87 100644 --- a/boards/arm/kinetis/kwikstik-k40/scripts/kwikstik-k40.ld +++ b/boards/arm/kinetis/kwikstik-k40/scripts/kwikstik-k40.ld @@ -73,7 +73,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 a82ef840a8..81af4dcb15 100644 --- a/boards/arm/kinetis/teensy-3.x/scripts/mk20dx128vlh5.ld +++ b/boards/arm/kinetis/teensy-3.x/scripts/mk20dx128vlh5.ld @@ -73,7 +73,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 0d079c4c96..5542081b58 100644 --- a/boards/arm/kinetis/teensy-3.x/scripts/mk20dx256vlh7.ld +++ b/boards/arm/kinetis/teensy-3.x/scripts/mk20dx256vlh7.ld @@ -73,7 +73,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 074d3aaf5e..9dfca0099d 100644 --- a/boards/arm/kinetis/twr-k60n512/scripts/twr-k60n512.ld +++ b/boards/arm/kinetis/twr-k60n512/scripts/twr-k60n512.ld @@ -73,7 +73,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/kinetis/twr-k64f120m/scripts/ld.script b/boards/arm/kinetis/twr-k64f120m/scripts/ld.script index 583c7e34e9..f73910f3ca 100644 --- a/boards/arm/kinetis/twr-k64f120m/scripts/ld.script +++ b/boards/arm/kinetis/twr-k64f120m/scripts/ld.script @@ -73,7 +73,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 b47a0bdb41..8893ee9b67 100644 --- a/boards/arm/kl/freedom-kl25z/scripts/freedom-kl25z.ld +++ b/boards/arm/kl/freedom-kl25z/scripts/freedom-kl25z.ld @@ -64,7 +64,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 f7cf3faa45..1663eb320d 100644 --- a/boards/arm/kl/freedom-kl26z/scripts/freedom-kl26z.ld +++ b/boards/arm/kl/freedom-kl26z/scripts/freedom-kl26z.ld @@ -64,7 +64,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 4fff2178eb..1b6468dddc 100644 --- a/boards/arm/kl/teensy-lc/scripts/teensy-lc.ld +++ b/boards/arm/kl/teensy-lc/scripts/teensy-lc.ld @@ -64,7 +64,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progflash diff --git a/boards/arm/lc823450/lc823450-xgevk/scripts/ld-ipl2.script b/boards/arm/lc823450/lc823450-xgevk/scripts/ld-ipl2.script index 8c18461e93..c5884c6272 100644 --- a/boards/arm/lc823450/lc823450-xgevk/scripts/ld-ipl2.script +++ b/boards/arm/lc823450/lc823450-xgevk/scripts/ld-ipl2.script @@ -50,7 +50,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lc823450/lc823450-xgevk/scripts/ld-spif-boot.script b/boards/arm/lc823450/lc823450-xgevk/scripts/ld-spif-boot.script index 093b264ebd..603832ef0c 100644 --- a/boards/arm/lc823450/lc823450-xgevk/scripts/ld-spif-boot.script +++ b/boards/arm/lc823450/lc823450-xgevk/scripts/ld-spif-boot.script @@ -51,7 +51,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lc823450/lc823450-xgevk/scripts/ld.script b/boards/arm/lc823450/lc823450-xgevk/scripts/ld.script index 3a4e1c31e9..f9a3410855 100644 --- a/boards/arm/lc823450/lc823450-xgevk/scripts/ld.script +++ b/boards/arm/lc823450/lc823450-xgevk/scripts/ld.script @@ -58,7 +58,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lc823450/lc823450-xgevk/scripts/user-space.ld b/boards/arm/lc823450/lc823450-xgevk/scripts/user-space.ld index 6cc651dd89..44de33e889 100644 --- a/boards/arm/lc823450/lc823450-xgevk/scripts/user-space.ld +++ b/boards/arm/lc823450/lc823450-xgevk/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc17xx_40xx/lincoln60/scripts/ld.script b/boards/arm/lpc17xx_40xx/lincoln60/scripts/ld.script index b5ed5fd8f5..a96dd0ae6c 100644 --- a/boards/arm/lpc17xx_40xx/lincoln60/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/lincoln60/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 2e1ad6291a..269c9bf410 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 6cef896a01..41ed844ff0 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 b998e3ea27..01ba814fce 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 01dc9b481a..b3bf4659e9 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 454a698489..0d1911642b 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 f3d8e3800c..f6fb0902ad 100644 --- a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 0945cf042e..df73aabca0 100644 --- a/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 02894f073a..6236858e5f 100644 --- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7087dd6827..c52ecb61e8 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 @@ -65,7 +65,7 @@ SECTIONS .init_section : ALIGN(16) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 d23fd84981..86936a5290 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 @@ -63,7 +63,7 @@ SECTIONS .init_section : ALIGN(16) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 0dddda92d2..6d86eb05b5 100644 --- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld +++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/link-sdram.ld @@ -66,7 +66,7 @@ SECTIONS .init_section : ALIGN(16) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 132c09c811..4f75ed7fd8 100644 --- a/boards/arm/lpc17xx_40xx/lx_cpu/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/lx_cpu/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc17xx_40xx/mbed/scripts/ld.script b/boards/arm/lpc17xx_40xx/mbed/scripts/ld.script index 086318dff9..90c35952fd 100644 --- a/boards/arm/lpc17xx_40xx/mbed/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/mbed/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc17xx_40xx/mcb1700/scripts/ld.script b/boards/arm/lpc17xx_40xx/mcb1700/scripts/ld.script index 60794d5895..536bfd48d2 100644 --- a/boards/arm/lpc17xx_40xx/mcb1700/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/mcb1700/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 fdb4a0ebca..0ce9ef29f7 100644 --- a/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7a2acc2820..fc3d3a1dc1 100644 --- a/boards/arm/lpc17xx_40xx/open1788/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/open1788/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/lpc17xx_40xx/open1788/scripts/ld.script b/boards/arm/lpc17xx_40xx/open1788/scripts/ld.script index d564351268..9c213cf34d 100644 --- a/boards/arm/lpc17xx_40xx/open1788/scripts/ld.script +++ b/boards/arm/lpc17xx_40xx/open1788/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 5c9285d669..069303ac94 100644 --- a/boards/arm/lpc17xx_40xx/open1788/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/open1788/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 c6952faaf0..45a16ef1e6 100644 --- a/boards/arm/lpc17xx_40xx/pnev5180b/scripts/kernel-space.ld +++ b/boards/arm/lpc17xx_40xx/pnev5180b/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 772cd55124..b463cb8416 100644 --- a/boards/arm/lpc17xx_40xx/pnev5180b/scripts/user-space.ld +++ b/boards/arm/lpc17xx_40xx/pnev5180b/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 d1e262d254..bc4a6ce362 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 @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc214x/mcu123-lpc214x/scripts/ld.script b/boards/arm/lpc214x/mcu123-lpc214x/scripts/ld.script index 6aad5946fd..15522c2152 100644 --- a/boards/arm/lpc214x/mcu123-lpc214x/scripts/ld.script +++ b/boards/arm/lpc214x/mcu123-lpc214x/scripts/ld.script @@ -58,7 +58,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc214x/zp214xpa/scripts/ld.script b/boards/arm/lpc214x/zp214xpa/scripts/ld.script index 7687f78dc5..59fc4f8a08 100644 --- a/boards/arm/lpc214x/zp214xpa/scripts/ld.script +++ b/boards/arm/lpc214x/zp214xpa/scripts/ld.script @@ -58,7 +58,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/lpc2378/olimex-lpc2378/scripts/ld.script b/boards/arm/lpc2378/olimex-lpc2378/scripts/ld.script index 6716724536..5b1cbc8e67 100644 --- a/boards/arm/lpc2378/olimex-lpc2378/scripts/ld.script +++ b/boards/arm/lpc2378/olimex-lpc2378/scripts/ld.script @@ -69,7 +69,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > ROM diff --git a/boards/arm/lpc31xx/ea3131/scripts/ld.script b/boards/arm/lpc31xx/ea3131/scripts/ld.script index c0aa48e71a..b6a943bf2e 100644 --- a/boards/arm/lpc31xx/ea3131/scripts/ld.script +++ b/boards/arm/lpc31xx/ea3131/scripts/ld.script @@ -52,7 +52,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/lpc31xx/ea3131/scripts/pg-ld.script b/boards/arm/lpc31xx/ea3131/scripts/pg-ld.script index 7b12a818c4..de06fb53b3 100644 --- a/boards/arm/lpc31xx/ea3131/scripts/pg-ld.script +++ b/boards/arm/lpc31xx/ea3131/scripts/pg-ld.script @@ -81,7 +81,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > locked diff --git a/boards/arm/lpc31xx/ea3152/scripts/ea3152.ld b/boards/arm/lpc31xx/ea3152/scripts/ea3152.ld index 0bff77795d..876edc6333 100644 --- a/boards/arm/lpc31xx/ea3152/scripts/ea3152.ld +++ b/boards/arm/lpc31xx/ea3152/scripts/ea3152.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 e8ac907bd9..3f2baae9ae 100644 --- a/boards/arm/lpc31xx/olimex-lpc-h3131/scripts/ld.script +++ b/boards/arm/lpc31xx/olimex-lpc-h3131/scripts/ld.script @@ -52,7 +52,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/lpc43xx/bambino-200e/scripts/ramconfig.ld b/boards/arm/lpc43xx/bambino-200e/scripts/ramconfig.ld index 178849d726..ca8b125429 100644 --- a/boards/arm/lpc43xx/bambino-200e/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/bambino-200e/scripts/ramconfig.ld @@ -90,7 +90,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/bambino-200e/scripts/spificonfig.ld b/boards/arm/lpc43xx/bambino-200e/scripts/spificonfig.ld index 15822c9825..5381f71254 100644 --- a/boards/arm/lpc43xx/bambino-200e/scripts/spificonfig.ld +++ b/boards/arm/lpc43xx/bambino-200e/scripts/spificonfig.ld @@ -86,7 +86,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 b9f5e27186..6cd29a0dc9 100644 --- a/boards/arm/lpc43xx/bambino-200e/scripts/user-space.ld +++ b/boards/arm/lpc43xx/bambino-200e/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/lpc43xx/lpc4330-xplorer/scripts/ramconfig.ld b/boards/arm/lpc43xx/lpc4330-xplorer/scripts/ramconfig.ld index 777c7f59ec..19dfe210d8 100644 --- a/boards/arm/lpc43xx/lpc4330-xplorer/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/lpc4330-xplorer/scripts/ramconfig.ld @@ -90,7 +90,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4330-xplorer/scripts/spificonfig.ld b/boards/arm/lpc43xx/lpc4330-xplorer/scripts/spificonfig.ld index 2437eeeaf3..d5633b49d3 100644 --- a/boards/arm/lpc43xx/lpc4330-xplorer/scripts/spificonfig.ld +++ b/boards/arm/lpc43xx/lpc4330-xplorer/scripts/spificonfig.ld @@ -86,7 +86,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4337-ws/scripts/flashaconfig.ld b/boards/arm/lpc43xx/lpc4337-ws/scripts/flashaconfig.ld index 242b359aff..d107e42c0c 100644 --- a/boards/arm/lpc43xx/lpc4337-ws/scripts/flashaconfig.ld +++ b/boards/arm/lpc43xx/lpc4337-ws/scripts/flashaconfig.ld @@ -91,7 +91,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4337-ws/scripts/ramconfig.ld b/boards/arm/lpc43xx/lpc4337-ws/scripts/ramconfig.ld index 2e37e2a834..e4c064d394 100644 --- a/boards/arm/lpc43xx/lpc4337-ws/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/lpc4337-ws/scripts/ramconfig.ld @@ -90,7 +90,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4357-evb/scripts/flashaconfig.ld b/boards/arm/lpc43xx/lpc4357-evb/scripts/flashaconfig.ld index 7b886ad132..b6339fa0fe 100644 --- a/boards/arm/lpc43xx/lpc4357-evb/scripts/flashaconfig.ld +++ b/boards/arm/lpc43xx/lpc4357-evb/scripts/flashaconfig.ld @@ -91,7 +91,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4357-evb/scripts/ramconfig.ld b/boards/arm/lpc43xx/lpc4357-evb/scripts/ramconfig.ld index dfcfbbe3a3..ef9cbe8045 100644 --- a/boards/arm/lpc43xx/lpc4357-evb/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/lpc4357-evb/scripts/ramconfig.ld @@ -80,7 +80,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4357-evb/scripts/spificonfig.ld b/boards/arm/lpc43xx/lpc4357-evb/scripts/spificonfig.ld index 24b1ca8b9b..85c1507421 100644 --- a/boards/arm/lpc43xx/lpc4357-evb/scripts/spificonfig.ld +++ b/boards/arm/lpc43xx/lpc4357-evb/scripts/spificonfig.ld @@ -70,7 +70,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4370-link2/scripts/ramconfig.ld b/boards/arm/lpc43xx/lpc4370-link2/scripts/ramconfig.ld index 4a4e7ed595..92195724a4 100644 --- a/boards/arm/lpc43xx/lpc4370-link2/scripts/ramconfig.ld +++ b/boards/arm/lpc43xx/lpc4370-link2/scripts/ramconfig.ld @@ -90,7 +90,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc43xx/lpc4370-link2/scripts/spificonfig.ld b/boards/arm/lpc43xx/lpc4370-link2/scripts/spificonfig.ld index acd661753e..a99cf1eeda 100644 --- a/boards/arm/lpc43xx/lpc4370-link2/scripts/spificonfig.ld +++ b/boards/arm/lpc43xx/lpc4370-link2/scripts/spificonfig.ld @@ -86,7 +86,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/lpc54xx/lpcxpresso-lpc54628/scripts/flash.ld b/boards/arm/lpc54xx/lpcxpresso-lpc54628/scripts/flash.ld index 3fc3559f25..ab408de739 100644 --- a/boards/arm/lpc54xx/lpcxpresso-lpc54628/scripts/flash.ld +++ b/boards/arm/lpc54xx/lpcxpresso-lpc54628/scripts/flash.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/max326xx/max32660-evsys/scripts/flash.ld b/boards/arm/max326xx/max32660-evsys/scripts/flash.ld index 353f005a57..1eff9f1d7f 100644 --- a/boards/arm/max326xx/max32660-evsys/scripts/flash.ld +++ b/boards/arm/max326xx/max32660-evsys/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/max326xx/max32660-evsys/scripts/sram.ld b/boards/arm/max326xx/max32660-evsys/scripts/sram.ld index aece6eab17..dd4b4533bd 100644 --- a/boards/arm/max326xx/max32660-evsys/scripts/sram.ld +++ b/boards/arm/max326xx/max32660-evsys/scripts/sram.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/moxart/moxa/scripts/moxa.ld b/boards/arm/moxart/moxa/scripts/moxa.ld index acc80afe02..8a1c3a964d 100644 --- a/boards/arm/moxart/moxa/scripts/moxa.ld +++ b/boards/arm/moxart/moxa/scripts/moxa.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram0 diff --git a/boards/arm/mps/mps3-an547/scripts/flash.ld b/boards/arm/mps/mps3-an547/scripts/flash.ld index b41e17a0e2..e746a08677 100644 --- a/boards/arm/mps/mps3-an547/scripts/flash.ld +++ b/boards/arm/mps/mps3-an547/scripts/flash.ld @@ -50,7 +50,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/mx8mp/verdin-mx8mp/scripts/ddr.ld b/boards/arm/mx8mp/verdin-mx8mp/scripts/ddr.ld index 2b9145471b..978b5e9680 100644 --- a/boards/arm/mx8mp/verdin-mx8mp/scripts/ddr.ld +++ b/boards/arm/mx8mp/verdin-mx8mp/scripts/ddr.ld @@ -66,7 +66,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/mx8mp/verdin-mx8mp/scripts/itcm.ld b/boards/arm/mx8mp/verdin-mx8mp/scripts/itcm.ld index 49c9f66afb..c5ba01e477 100644 --- a/boards/arm/mx8mp/verdin-mx8mp/scripts/itcm.ld +++ b/boards/arm/mx8mp/verdin-mx8mp/scripts/itcm.ld @@ -64,7 +64,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/nrf52/arduino-nano-33ble-rev2/scripts/flash_config.ld b/boards/arm/nrf52/arduino-nano-33ble-rev2/scripts/flash_config.ld index c6a82d2689..176ca6bc04 100644 --- a/boards/arm/nrf52/arduino-nano-33ble-rev2/scripts/flash_config.ld +++ b/boards/arm/nrf52/arduino-nano-33ble-rev2/scripts/flash_config.ld @@ -58,7 +58,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/arduino-nano-33ble/scripts/flash_config.ld b/boards/arm/nrf52/arduino-nano-33ble/scripts/flash_config.ld index 48a95bea20..40b956d4de 100644 --- a/boards/arm/nrf52/arduino-nano-33ble/scripts/flash_config.ld +++ b/boards/arm/nrf52/arduino-nano-33ble/scripts/flash_config.ld @@ -58,7 +58,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/common/scripts/flash_config.ld b/boards/arm/nrf52/common/scripts/flash_config.ld index ae86868fe8..961ddec4fb 100644 --- a/boards/arm/nrf52/common/scripts/flash_config.ld +++ b/boards/arm/nrf52/common/scripts/flash_config.ld @@ -70,7 +70,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/nrf52-feather/scripts/flash_config.ld b/boards/arm/nrf52/nrf52-feather/scripts/flash_config.ld index 1cd293e982..2340a646ae 100644 --- a/boards/arm/nrf52/nrf52-feather/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52-feather/scripts/flash_config.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 e0abe91a4d..197a77ab5c 100644 --- a/boards/arm/nrf52/nrf52832-dk/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52832-dk/scripts/flash_config.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 5365f4a6ae..994f15d2d8 100644 --- a/boards/arm/nrf52/nrf52832-mdk/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52832-mdk/scripts/flash_config.ld @@ -49,7 +49,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 39952b04f2..bb7c35ce67 100644 --- a/boards/arm/nrf52/nrf52832-sparkfun/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52832-sparkfun/scripts/flash_config.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 f392cf5c9d..acddbe92a7 100644 --- a/boards/arm/nrf52/nrf52840-dk/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52840-dk/scripts/flash_config.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 18e0047dc4..1a3e52ee05 100644 --- a/boards/arm/nrf52/nrf52840-dongle/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf52840-dongle/scripts/flash_config.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/nrf9160-dk-nrf52/scripts/flash_config.ld b/boards/arm/nrf52/nrf9160-dk-nrf52/scripts/flash_config.ld index 569179f2da..56cec5b1a3 100644 --- a/boards/arm/nrf52/nrf9160-dk-nrf52/scripts/flash_config.ld +++ b/boards/arm/nrf52/nrf9160-dk-nrf52/scripts/flash_config.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/thingy52/scripts/flash_config.ld b/boards/arm/nrf52/thingy52/scripts/flash_config.ld index 9b023af398..53181f803b 100644 --- a/boards/arm/nrf52/thingy52/scripts/flash_config.ld +++ b/boards/arm/nrf52/thingy52/scripts/flash_config.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf52/thingy91-nrf52/scripts/flash_config.ld b/boards/arm/nrf52/thingy91-nrf52/scripts/flash_config.ld index 5c3d2fba7d..f6c88b78bc 100644 --- a/boards/arm/nrf52/thingy91-nrf52/scripts/flash_config.ld +++ b/boards/arm/nrf52/thingy91-nrf52/scripts/flash_config.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf53/common/scripts/flash_app.ld b/boards/arm/nrf53/common/scripts/flash_app.ld index 91bce312d5..dbacc2c27b 100644 --- a/boards/arm/nrf53/common/scripts/flash_app.ld +++ b/boards/arm/nrf53/common/scripts/flash_app.ld @@ -81,7 +81,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf53/common/scripts/flash_net.ld b/boards/arm/nrf53/common/scripts/flash_net.ld index 428b73adf7..b7af2af0d0 100644 --- a/boards/arm/nrf53/common/scripts/flash_net.ld +++ b/boards/arm/nrf53/common/scripts/flash_net.ld @@ -86,7 +86,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf53/nrf5340-audio-dk/scripts/flash_app.ld b/boards/arm/nrf53/nrf5340-audio-dk/scripts/flash_app.ld index ba55bd608e..0a4c166647 100644 --- a/boards/arm/nrf53/nrf5340-audio-dk/scripts/flash_app.ld +++ b/boards/arm/nrf53/nrf5340-audio-dk/scripts/flash_app.ld @@ -58,7 +58,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf53/nrf5340-audio-dk/scripts/flash_net.ld b/boards/arm/nrf53/nrf5340-audio-dk/scripts/flash_net.ld index d4f0eff70c..17387ac1b4 100644 --- a/boards/arm/nrf53/nrf5340-audio-dk/scripts/flash_net.ld +++ b/boards/arm/nrf53/nrf5340-audio-dk/scripts/flash_net.ld @@ -59,7 +59,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf53/nrf5340-dk/scripts/flash_app.ld b/boards/arm/nrf53/nrf5340-dk/scripts/flash_app.ld index 4c4180a91d..93d6f78e21 100644 --- a/boards/arm/nrf53/nrf5340-dk/scripts/flash_app.ld +++ b/boards/arm/nrf53/nrf5340-dk/scripts/flash_app.ld @@ -58,7 +58,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf53/nrf5340-dk/scripts/flash_net.ld b/boards/arm/nrf53/nrf5340-dk/scripts/flash_net.ld index 06a9cbab85..f5e76367ab 100644 --- a/boards/arm/nrf53/nrf5340-dk/scripts/flash_net.ld +++ b/boards/arm/nrf53/nrf5340-dk/scripts/flash_net.ld @@ -59,7 +59,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf53/thingy53/scripts/flash_app.ld b/boards/arm/nrf53/thingy53/scripts/flash_app.ld index b1408a796f..6b82933e9f 100644 --- a/boards/arm/nrf53/thingy53/scripts/flash_app.ld +++ b/boards/arm/nrf53/thingy53/scripts/flash_app.ld @@ -58,7 +58,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf53/thingy53/scripts/flash_net.ld b/boards/arm/nrf53/thingy53/scripts/flash_net.ld index 0320baa13e..0870987ea8 100644 --- a/boards/arm/nrf53/thingy53/scripts/flash_net.ld +++ b/boards/arm/nrf53/thingy53/scripts/flash_net.ld @@ -60,7 +60,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf91/common/scripts/flash_app.ld b/boards/arm/nrf91/common/scripts/flash_app.ld index 38eceec344..226e91706c 100644 --- a/boards/arm/nrf91/common/scripts/flash_app.ld +++ b/boards/arm/nrf91/common/scripts/flash_app.ld @@ -116,7 +116,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf91/nrf9160-dk/scripts/flash_app.ld b/boards/arm/nrf91/nrf9160-dk/scripts/flash_app.ld index b5b3508a4a..d2189485a4 100644 --- a/boards/arm/nrf91/nrf9160-dk/scripts/flash_app.ld +++ b/boards/arm/nrf91/nrf9160-dk/scripts/flash_app.ld @@ -59,7 +59,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/arm/nrf91/thingy91/scripts/flash_app.ld b/boards/arm/nrf91/thingy91/scripts/flash_app.ld index f15b7b45eb..94b395017c 100644 --- a/boards/arm/nrf91/thingy91/scripts/flash_app.ld +++ b/boards/arm/nrf91/thingy91/scripts/flash_app.ld @@ -59,7 +59,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 b28fc234ab..6a9901c83b 100644 --- a/boards/arm/nuc1xx/nutiny-nuc120/scripts/nutiny-nuc120.ld +++ b/boards/arm/nuc1xx/nutiny-nuc120/scripts/nutiny-nuc120.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/phy62xx/phy6222/scripts/flash.ld b/boards/arm/phy62xx/phy6222/scripts/flash.ld index d0235b4ac5..afaa51692f 100644 --- a/boards/arm/phy62xx/phy6222/scripts/flash.ld +++ b/boards/arm/phy62xx/phy6222/scripts/flash.ld @@ -24,7 +24,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/qemu/qemu-armv7a/scripts/dramboot.ld b/boards/arm/qemu/qemu-armv7a/scripts/dramboot.ld index 6afca6ca6c..f419093cbb 100644 --- a/boards/arm/qemu/qemu-armv7a/scripts/dramboot.ld +++ b/boards/arm/qemu/qemu-armv7a/scripts/dramboot.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } :text . = ALIGN(4096); 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 7f2dbca120..f4bd460fbb 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 @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 ba4e93086f..39b0505b5f 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 @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 2f331d044c..e4325c0f91 100644 --- a/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-flash.ld +++ b/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-flash.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 dfa70b74ed..bc0b661908 100644 --- a/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-sram.ld +++ b/boards/arm/rp2040/adafruit-kb2040/scripts/adafruit-kb2040-sram.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 21a9d69f9d..263f2ea3b4 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 @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 57cc1572ab..4e930625b8 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 @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 eb55c34ba5..6e1ce995e5 100644 --- a/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-flash.ld +++ b/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-flash.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 41a6fde018..bd9c0ae10e 100644 --- a/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-sram.ld +++ b/boards/arm/rp2040/pimoroni-tiny2040/scripts/pimoroni-tiny2040-sram.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 c0b41aade3..9cb82acb3b 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 @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 0689817509..e754125561 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 @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 c0b41aade3..9cb82acb3b 100644 --- a/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-flash.ld +++ b/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-flash.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 0689817509..e754125561 100644 --- a/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-sram.ld +++ b/boards/arm/rp2040/raspberrypi-pico/scripts/raspberrypi-pico-sram.ld @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 c0b41aade3..9cb82acb3b 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 @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 0689817509..e754125561 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 @@ -51,7 +51,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k1xx/rddrone-bms772/scripts/flash.ld b/boards/arm/s32k1xx/rddrone-bms772/scripts/flash.ld index 3a3910eed9..e794b18468 100644 --- a/boards/arm/s32k1xx/rddrone-bms772/scripts/flash.ld +++ b/boards/arm/s32k1xx/rddrone-bms772/scripts/flash.ld @@ -76,7 +76,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/rddrone-bms772/scripts/sram.ld b/boards/arm/s32k1xx/rddrone-bms772/scripts/sram.ld index 4b68442a1c..b884b98a51 100644 --- a/boards/arm/s32k1xx/rddrone-bms772/scripts/sram.ld +++ b/boards/arm/s32k1xx/rddrone-bms772/scripts/sram.ld @@ -64,7 +64,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k1xx/s32k118evb/scripts/flash.ld b/boards/arm/s32k1xx/s32k118evb/scripts/flash.ld index a6afdd7071..ff7dd09f1f 100644 --- a/boards/arm/s32k1xx/s32k118evb/scripts/flash.ld +++ b/boards/arm/s32k1xx/s32k118evb/scripts/flash.ld @@ -74,7 +74,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/s32k144evb/scripts/flash.ld b/boards/arm/s32k1xx/s32k144evb/scripts/flash.ld index 98e9c91673..8aaab85773 100644 --- a/boards/arm/s32k1xx/s32k144evb/scripts/flash.ld +++ b/boards/arm/s32k1xx/s32k144evb/scripts/flash.ld @@ -74,7 +74,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/s32k144evb/scripts/sram.ld b/boards/arm/s32k1xx/s32k144evb/scripts/sram.ld index 6c92ce7905..45c68d6b06 100644 --- a/boards/arm/s32k1xx/s32k144evb/scripts/sram.ld +++ b/boards/arm/s32k1xx/s32k144evb/scripts/sram.ld @@ -62,7 +62,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k1xx/s32k146evb/scripts/flash.ld b/boards/arm/s32k1xx/s32k146evb/scripts/flash.ld index 2f244c4344..aa83723b9d 100644 --- a/boards/arm/s32k1xx/s32k146evb/scripts/flash.ld +++ b/boards/arm/s32k1xx/s32k146evb/scripts/flash.ld @@ -74,7 +74,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/s32k146evb/scripts/sram.ld b/boards/arm/s32k1xx/s32k146evb/scripts/sram.ld index 077e46ac10..0a190eb226 100644 --- a/boards/arm/s32k1xx/s32k146evb/scripts/sram.ld +++ b/boards/arm/s32k1xx/s32k146evb/scripts/sram.ld @@ -62,7 +62,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k1xx/s32k148evb/scripts/flash.ld b/boards/arm/s32k1xx/s32k148evb/scripts/flash.ld index 1155a816c2..825cf89ba9 100644 --- a/boards/arm/s32k1xx/s32k148evb/scripts/flash.ld +++ b/boards/arm/s32k1xx/s32k148evb/scripts/flash.ld @@ -74,7 +74,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/s32k148evb/scripts/sram.ld b/boards/arm/s32k1xx/s32k148evb/scripts/sram.ld index 754fc8ba7f..f5571098b8 100644 --- a/boards/arm/s32k1xx/s32k148evb/scripts/sram.ld +++ b/boards/arm/s32k1xx/s32k148evb/scripts/sram.ld @@ -62,7 +62,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k1xx/ucans32k146/scripts/flash.ld b/boards/arm/s32k1xx/ucans32k146/scripts/flash.ld index 083e5d2f2b..03c5dbade9 100644 --- a/boards/arm/s32k1xx/ucans32k146/scripts/flash.ld +++ b/boards/arm/s32k1xx/ucans32k146/scripts/flash.ld @@ -74,7 +74,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > dflash diff --git a/boards/arm/s32k1xx/ucans32k146/scripts/sram.ld b/boards/arm/s32k1xx/ucans32k146/scripts/sram.ld index a00014fd18..689b37f302 100644 --- a/boards/arm/s32k1xx/ucans32k146/scripts/sram.ld +++ b/boards/arm/s32k1xx/ucans32k146/scripts/sram.ld @@ -62,7 +62,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/s32k3xx/mr-canhubk3/scripts/flash.ld b/boards/arm/s32k3xx/mr-canhubk3/scripts/flash.ld index b5806758d7..e16d34f3c6 100644 --- a/boards/arm/s32k3xx/mr-canhubk3/scripts/flash.ld +++ b/boards/arm/s32k3xx/mr-canhubk3/scripts/flash.ld @@ -81,7 +81,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/s32k3xx/mr-canhubk3/scripts/kernel-space.ld b/boards/arm/s32k3xx/mr-canhubk3/scripts/kernel-space.ld index 8ffc7a294f..ca7deeb7a3 100644 --- a/boards/arm/s32k3xx/mr-canhubk3/scripts/kernel-space.ld +++ b/boards/arm/s32k3xx/mr-canhubk3/scripts/kernel-space.ld @@ -92,8 +92,8 @@ SECTIONS */ .init_section : { _sinit = ABSOLUTE(.); - KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/s32k3xx/mr-canhubk3/scripts/user-space.ld b/boards/arm/s32k3xx/mr-canhubk3/scripts/user-space.ld index d7717c8b86..394a4901a1 100644 --- a/boards/arm/s32k3xx/mr-canhubk3/scripts/user-space.ld +++ b/boards/arm/s32k3xx/mr-canhubk3/scripts/user-space.ld @@ -65,7 +65,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/s32k3xx/s32k344evb/scripts/flash.ld b/boards/arm/s32k3xx/s32k344evb/scripts/flash.ld index 64f60da6bc..d26f97e54c 100644 --- a/boards/arm/s32k3xx/s32k344evb/scripts/flash.ld +++ b/boards/arm/s32k3xx/s32k344evb/scripts/flash.ld @@ -78,7 +78,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sam34/arduino-due/scripts/arduino-due.ld b/boards/arm/sam34/arduino-due/scripts/arduino-due.ld index 7925c6a95e..4fa09d4893 100644 --- a/boards/arm/sam34/arduino-due/scripts/arduino-due.ld +++ b/boards/arm/sam34/arduino-due/scripts/arduino-due.ld @@ -56,7 +56,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sam34/flipnclick-sam3x/scripts/flash.ld b/boards/arm/sam34/flipnclick-sam3x/scripts/flash.ld index 7d43a7aee5..61ea707519 100644 --- a/boards/arm/sam34/flipnclick-sam3x/scripts/flash.ld +++ b/boards/arm/sam34/flipnclick-sam3x/scripts/flash.ld @@ -56,7 +56,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 104cf1ad1e..8265b390ac 100644 --- a/boards/arm/sam34/sam3u-ek/scripts/kernel-space.ld +++ b/boards/arm/sam34/sam3u-ek/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/sam34/sam3u-ek/scripts/ld.script b/boards/arm/sam34/sam3u-ek/scripts/ld.script index 3af59a502d..7ede2c8bd7 100644 --- a/boards/arm/sam34/sam3u-ek/scripts/ld.script +++ b/boards/arm/sam34/sam3u-ek/scripts/ld.script @@ -57,7 +57,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 b7c157cf32..9c4e8aa2ab 100644 --- a/boards/arm/sam34/sam3u-ek/scripts/user-space.ld +++ b/boards/arm/sam34/sam3u-ek/scripts/user-space.ld @@ -48,7 +48,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 ac057dcc9b..c4ed782a1f 100644 --- a/boards/arm/sam34/sam4cmp-db/scripts/sam4cmp-db.ld +++ b/boards/arm/sam34/sam4cmp-db/scripts/sam4cmp-db.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sam34/sam4e-ek/scripts/flash.ld b/boards/arm/sam34/sam4e-ek/scripts/flash.ld index b10fb75c0f..2e0bce4965 100644 --- a/boards/arm/sam34/sam4e-ek/scripts/flash.ld +++ b/boards/arm/sam34/sam4e-ek/scripts/flash.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 31a13a314c..5497fae1ac 100644 --- a/boards/arm/sam34/sam4l-xplained/scripts/sam4l-xplained.ld +++ b/boards/arm/sam34/sam4l-xplained/scripts/sam4l-xplained.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 6c45ac7f48..cbb5073c07 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 @@ -57,7 +57,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 68c180dd9c..29fe1192ec 100644 --- a/boards/arm/sam34/sam4s-xplained/scripts/sam4s-xplained.ld +++ b/boards/arm/sam34/sam4s-xplained/scripts/sam4s-xplained.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/sama5/giant-board/scripts/dramboot.ld b/boards/arm/sama5/giant-board/scripts/dramboot.ld index 6c8ed83737..5383effe53 100644 --- a/boards/arm/sama5/giant-board/scripts/dramboot.ld +++ b/boards/arm/sama5/giant-board/scripts/dramboot.ld @@ -60,7 +60,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/giant-board/scripts/isram.ld b/boards/arm/sama5/giant-board/scripts/isram.ld index 192d2be98d..934126ee0a 100644 --- a/boards/arm/sama5/giant-board/scripts/isram.ld +++ b/boards/arm/sama5/giant-board/scripts/isram.ld @@ -57,7 +57,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/giant-board/scripts/uboot.ld b/boards/arm/sama5/giant-board/scripts/uboot.ld index 0c3775da8e..cf35fad8f5 100644 --- a/boards/arm/sama5/giant-board/scripts/uboot.ld +++ b/boards/arm/sama5/giant-board/scripts/uboot.ld @@ -61,7 +61,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld b/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld index fe28b4245c..0983ada934 100644 --- a/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld +++ b/boards/arm/sama5/jupiter-nano/scripts/dramboot.ld @@ -60,7 +60,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/jupiter-nano/scripts/isram.ld b/boards/arm/sama5/jupiter-nano/scripts/isram.ld index f1f309662e..89d2fdf0a0 100644 --- a/boards/arm/sama5/jupiter-nano/scripts/isram.ld +++ b/boards/arm/sama5/jupiter-nano/scripts/isram.ld @@ -57,7 +57,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/jupiter-nano/scripts/uboot.ld b/boards/arm/sama5/jupiter-nano/scripts/uboot.ld index 2045a6caca..dbf571d39b 100644 --- a/boards/arm/sama5/jupiter-nano/scripts/uboot.ld +++ b/boards/arm/sama5/jupiter-nano/scripts/uboot.ld @@ -61,7 +61,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld b/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld index fe28b4245c..0983ada934 100644 --- a/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld +++ b/boards/arm/sama5/sama5d2-xult/scripts/dramboot.ld @@ -60,7 +60,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d2-xult/scripts/isram.ld b/boards/arm/sama5/sama5d2-xult/scripts/isram.ld index f1f309662e..89d2fdf0a0 100644 --- a/boards/arm/sama5/sama5d2-xult/scripts/isram.ld +++ b/boards/arm/sama5/sama5d2-xult/scripts/isram.ld @@ -57,7 +57,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld b/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld index 2045a6caca..dbf571d39b 100644 --- a/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld +++ b/boards/arm/sama5/sama5d2-xult/scripts/uboot.ld @@ -61,7 +61,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld b/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld index 7e19d4ec14..1538bb1c90 100644 --- a/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld +++ b/boards/arm/sama5/sama5d3-xplained/scripts/ddram.ld @@ -61,7 +61,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld b/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld index 7308231c1d..29f326e9a6 100644 --- a/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld +++ b/boards/arm/sama5/sama5d3-xplained/scripts/isram.ld @@ -57,7 +57,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld index 7e480faf7d..1ffaf358c9 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/ddram.ld @@ -61,7 +61,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld b/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld index 41c915c3fc..84643c0deb 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/isram.ld @@ -57,7 +57,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 44ca17c784..c21784559c 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/nor-ddram.ld @@ -66,7 +66,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 54fc1d7569..0b6e9239a8 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/nor-isram.ld @@ -62,7 +62,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 bf1d16c7bb..543eca44af 100644 --- a/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld +++ b/boards/arm/sama5/sama5d3x-ek/scripts/pg-sram.ld @@ -83,7 +83,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > locked diff --git a/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld b/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld index 91461f208f..8d00619836 100644 --- a/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld +++ b/boards/arm/sama5/sama5d4-ek/scripts/dramboot.ld @@ -60,7 +60,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/sama5/sama5d4-ek/scripts/isram.ld b/boards/arm/sama5/sama5d4-ek/scripts/isram.ld index 21ec43c65d..31d9f76f4e 100644 --- a/boards/arm/sama5/sama5d4-ek/scripts/isram.ld +++ b/boards/arm/sama5/sama5d4-ek/scripts/isram.ld @@ -57,7 +57,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > isram diff --git a/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld b/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld index 6150588127..eedcca0095 100644 --- a/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld +++ b/boards/arm/sama5/sama5d4-ek/scripts/uboot.ld @@ -61,7 +61,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sdram diff --git a/boards/arm/samd2l2/arduino-m0/scripts/flash.ld b/boards/arm/samd2l2/arduino-m0/scripts/flash.ld index 2c79fc9e37..dd00e9f858 100644 --- a/boards/arm/samd2l2/arduino-m0/scripts/flash.ld +++ b/boards/arm/samd2l2/arduino-m0/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd2l2/circuit-express/scripts/flash.ld b/boards/arm/samd2l2/circuit-express/scripts/flash.ld index 725fa486e4..e932935774 100644 --- a/boards/arm/samd2l2/circuit-express/scripts/flash.ld +++ b/boards/arm/samd2l2/circuit-express/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd2l2/samd20-xplained/scripts/flash.ld b/boards/arm/samd2l2/samd20-xplained/scripts/flash.ld index 07a60ea1a6..f1670bc532 100644 --- a/boards/arm/samd2l2/samd20-xplained/scripts/flash.ld +++ b/boards/arm/samd2l2/samd20-xplained/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd2l2/samd21-xplained/scripts/flash.ld b/boards/arm/samd2l2/samd21-xplained/scripts/flash.ld index 42c5a48979..85d27f6e23 100644 --- a/boards/arm/samd2l2/samd21-xplained/scripts/flash.ld +++ b/boards/arm/samd2l2/samd21-xplained/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd2l2/saml21-xplained/scripts/flash.ld b/boards/arm/samd2l2/saml21-xplained/scripts/flash.ld index bd4c5bb9cf..71948c7a27 100644 --- a/boards/arm/samd2l2/saml21-xplained/scripts/flash.ld +++ b/boards/arm/samd2l2/saml21-xplained/scripts/flash.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd5e5/metro-m4/scripts/flash.ld b/boards/arm/samd5e5/metro-m4/scripts/flash.ld index edf37ec022..4ff0233fc1 100644 --- a/boards/arm/samd5e5/metro-m4/scripts/flash.ld +++ b/boards/arm/samd5e5/metro-m4/scripts/flash.ld @@ -54,7 +54,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/samd5e5/metro-m4/scripts/sram.ld b/boards/arm/samd5e5/metro-m4/scripts/sram.ld index 975ce1ed18..dd27412013 100644 --- a/boards/arm/samd5e5/metro-m4/scripts/sram.ld +++ b/boards/arm/samd5e5/metro-m4/scripts/sram.ld @@ -55,7 +55,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 8f7ffc1352..4571894c05 100644 --- a/boards/arm/samd5e5/same54-xplained-pro/scripts/flash.ld +++ b/boards/arm/samd5e5/same54-xplained-pro/scripts/flash.ld @@ -54,7 +54,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 6cdeed5604..20f67a2867 100644 --- a/boards/arm/samd5e5/same54-xplained-pro/scripts/sram.ld +++ b/boards/arm/samd5e5/same54-xplained-pro/scripts/sram.ld @@ -55,7 +55,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/samv7/common/scripts/flash.ld.template b/boards/arm/samv7/common/scripts/flash.ld.template index b8ef5b21b9..950573ee19 100644 --- a/boards/arm/samv7/common/scripts/flash.ld.template +++ b/boards/arm/samv7/common/scripts/flash.ld.template @@ -72,8 +72,9 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); -KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) _einit = ABSOLUTE(.); + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) + _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 149238c9ed..3581f6f637 100644 --- a/boards/arm/samv7/common/scripts/kernel-space.ld +++ b/boards/arm/samv7/common/scripts/kernel-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/samv7/common/scripts/user-space.ld b/boards/arm/samv7/common/scripts/user-space.ld index 60acb6e168..d9d85ad04f 100644 --- a/boards/arm/samv7/common/scripts/user-space.ld +++ b/boards/arm/samv7/common/scripts/user-space.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/axoloti/scripts/kernel-space.ld b/boards/arm/stm32/axoloti/scripts/kernel-space.ld index 22bf4118ee..f255f50009 100644 --- a/boards/arm/stm32/axoloti/scripts/kernel-space.ld +++ b/boards/arm/stm32/axoloti/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/axoloti/scripts/ld.script b/boards/arm/stm32/axoloti/scripts/ld.script index 409204c6b0..ec68e21a50 100644 --- a/boards/arm/stm32/axoloti/scripts/ld.script +++ b/boards/arm/stm32/axoloti/scripts/ld.script @@ -62,7 +62,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/axoloti/scripts/user-space.ld b/boards/arm/stm32/axoloti/scripts/user-space.ld index 25beb6c60c..69b954d7f0 100644 --- a/boards/arm/stm32/axoloti/scripts/user-space.ld +++ b/boards/arm/stm32/axoloti/scripts/user-space.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 cc747d6ceb..b81d83a1f0 100644 --- a/boards/arm/stm32/b-g431b-esc1/scripts/ld.script +++ b/boards/arm/stm32/b-g431b-esc1/scripts/ld.script @@ -74,7 +74,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 3428c1d1bd..2cd7eb6ed4 100644 --- a/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script +++ b/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script @@ -74,7 +74,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 37140d3325..5d626caab3 100644 --- a/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script.dfu +++ b/boards/arm/stm32/b-g474e-dpow1/scripts/ld.script.dfu @@ -77,7 +77,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/clicker2-stm32/scripts/flash.ld b/boards/arm/stm32/clicker2-stm32/scripts/flash.ld index 054ed73572..5905f20df8 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/flash.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/flash.ld @@ -62,7 +62,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 a56795db11..cfa8037b7e 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld @@ -48,7 +48,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 76c2ef19c9..fa0e1f67e9 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld b/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld index 7e5fc3663b..b54da5dd45 100644 --- a/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld +++ b/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld b/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld index db145408f2..28b0223912 100644 --- a/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld +++ b/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/emw3162/scripts/ld.script b/boards/arm/stm32/emw3162/scripts/ld.script index 1523670f59..602d3df40a 100644 --- a/boards/arm/stm32/emw3162/scripts/ld.script +++ b/boards/arm/stm32/emw3162/scripts/ld.script @@ -66,7 +66,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 677c67657a..76db634574 100644 --- a/boards/arm/stm32/et-stm32-stamp/scripts/ld.script +++ b/boards/arm/stm32/et-stm32-stamp/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 db80a0b3d9..cc1f59c68b 100644 --- a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld +++ b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 4173ca985c..395bbe25be 100644 --- a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld +++ b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/hymini-stm32v/scripts/ld.script b/boards/arm/stm32/hymini-stm32v/scripts/ld.script index 3233b9fdca..da552a1617 100644 --- a/boards/arm/stm32/hymini-stm32v/scripts/ld.script +++ b/boards/arm/stm32/hymini-stm32v/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/maple/scripts/ld.script b/boards/arm/stm32/maple/scripts/ld.script index ad015f0bb9..365a22706f 100644 --- a/boards/arm/stm32/maple/scripts/ld.script +++ b/boards/arm/stm32/maple/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/maple/scripts/ld.script.dfu b/boards/arm/stm32/maple/scripts/ld.script.dfu index 99013c98b5..b5ce35d3c6 100644 --- a/boards/arm/stm32/maple/scripts/ld.script.dfu +++ b/boards/arm/stm32/maple/scripts/ld.script.dfu @@ -53,10 +53,10 @@ SECTIONS } > flash .init_section : ALIGN(4) { - _sinit = ABSOLUTE(.); - KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) - _einit = ABSOLUTE(.); + _sinit = ABSOLUTE(.); + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) + _einit = ABSOLUTE(.); } > flash .ARM.extab : ALIGN(4) { diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld b/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld index 37cf9df4a7..fe6566bfdc 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script b/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script index 153dbe90eb..5e4995e32e 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 4d0f0c5458..c0e3499c3c 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/nucleo-f103rb/scripts/ld.script b/boards/arm/stm32/nucleo-f103rb/scripts/ld.script index 86a6147924..2ea28e397f 100644 --- a/boards/arm/stm32/nucleo-f103rb/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f103rb/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f207zg/scripts/ld.script b/boards/arm/stm32/nucleo-f207zg/scripts/ld.script index a22d175112..4eb84d827b 100644 --- a/boards/arm/stm32/nucleo-f207zg/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f207zg/scripts/ld.script @@ -59,7 +59,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f302r8/scripts/ld.script b/boards/arm/stm32/nucleo-f302r8/scripts/ld.script index a8b0cb0e20..315f9aa92e 100644 --- a/boards/arm/stm32/nucleo-f302r8/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f302r8/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f303re/scripts/ld.script b/boards/arm/stm32/nucleo-f303re/scripts/ld.script index 13e741e47c..de3f81ef42 100644 --- a/boards/arm/stm32/nucleo-f303re/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f303re/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f303ze/scripts/ld.script b/boards/arm/stm32/nucleo-f303ze/scripts/ld.script index ac6d5d4770..c503d08f9c 100644 --- a/boards/arm/stm32/nucleo-f303ze/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f303ze/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f334r8/scripts/ld.script b/boards/arm/stm32/nucleo-f334r8/scripts/ld.script index d03d2c24ad..25617448de 100644 --- a/boards/arm/stm32/nucleo-f334r8/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f334r8/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld b/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld index 09bf80e1ed..de47a9d003 100644 --- a/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld +++ b/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f412zg/scripts/f412zg.ld b/boards/arm/stm32/nucleo-f412zg/scripts/f412zg.ld index aaa379da13..9a845c8e5b 100644 --- a/boards/arm/stm32/nucleo-f412zg/scripts/f412zg.ld +++ b/boards/arm/stm32/nucleo-f412zg/scripts/f412zg.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 ee61aa749a..6465e06da1 100644 --- a/boards/arm/stm32/nucleo-f429zi/scripts/kernel-space.ld +++ b/boards/arm/stm32/nucleo-f429zi/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/nucleo-f429zi/scripts/ld.script b/boards/arm/stm32/nucleo-f429zi/scripts/ld.script index b5be9f3e1b..cce42d7cbe 100644 --- a/boards/arm/stm32/nucleo-f429zi/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f429zi/scripts/ld.script @@ -62,7 +62,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 1daafb6539..f31aed7bd6 100644 --- a/boards/arm/stm32/nucleo-f429zi/scripts/user-space.ld +++ b/boards/arm/stm32/nucleo-f429zi/scripts/user-space.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld b/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld index 49831612e5..6a72a31260 100644 --- a/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld +++ b/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld b/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld index 6586dea7fd..b0bce14fb0 100644 --- a/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld +++ b/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld b/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld index e1ff533857..d4530d3bd6 100644 --- a/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld +++ b/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-g431kb/scripts/ld.script b/boards/arm/stm32/nucleo-g431kb/scripts/ld.script index b2dab10097..9d7c2fccac 100644 --- a/boards/arm/stm32/nucleo-g431kb/scripts/ld.script +++ b/boards/arm/stm32/nucleo-g431kb/scripts/ld.script @@ -74,7 +74,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-g431rb/scripts/ld.script b/boards/arm/stm32/nucleo-g431rb/scripts/ld.script index c0d0e1f279..282c743bea 100644 --- a/boards/arm/stm32/nucleo-g431rb/scripts/ld.script +++ b/boards/arm/stm32/nucleo-g431rb/scripts/ld.script @@ -74,7 +74,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-g474re/scripts/ld.script b/boards/arm/stm32/nucleo-g474re/scripts/ld.script index ce1c9951a1..bc2799fc43 100644 --- a/boards/arm/stm32/nucleo-g474re/scripts/ld.script +++ b/boards/arm/stm32/nucleo-g474re/scripts/ld.script @@ -74,7 +74,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 fe1d698979..e9acc899f0 100644 --- a/boards/arm/stm32/nucleo-g474re/scripts/ld.script.dfu +++ b/boards/arm/stm32/nucleo-g474re/scripts/ld.script.dfu @@ -77,7 +77,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/nucleo-l152re/scripts/ld.script b/boards/arm/stm32/nucleo-l152re/scripts/ld.script index e9e43c2e03..9ba334217d 100644 --- a/boards/arm/stm32/nucleo-l152re/scripts/ld.script +++ b/boards/arm/stm32/nucleo-l152re/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 69d8c8d65b..7bfd8da4fa 100644 --- a/boards/arm/stm32/olimex-stm32-e407/scripts/f407ze.ld +++ b/boards/arm/stm32/olimex-stm32-e407/scripts/f407ze.ld @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 6229fc00ed..20decd3ea5 100644 --- a/boards/arm/stm32/olimex-stm32-e407/scripts/f407zg.ld +++ b/boards/arm/stm32/olimex-stm32-e407/scripts/f407zg.ld @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7706043267..5ba0013028 100644 --- a/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 d44802734a..f425a38eba 100644 --- a/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 9217659aae..79859e947c 100644 --- a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script @@ -48,7 +48,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 819e4790a8..f2d0f008ab 100644 --- a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu +++ b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu @@ -47,10 +47,10 @@ SECTIONS } > flash .init_section : ALIGN(4) { - _sinit = ABSOLUTE(.); - KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) - _einit = ABSOLUTE(.); + _sinit = ABSOLUTE(.); + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) + _einit = ABSOLUTE(.); } > flash .ARM.extab : ALIGN(4) { diff --git a/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script b/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script index 9ccfc7e7b2..205a539a93 100644 --- a/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 4426029ee1..1641cf5d58 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7262cabc10..1d9eb7ee08 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 1a9c039fbf..54a8ee7fee 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/olimexino-stm32/scripts/ld.script b/boards/arm/stm32/olimexino-stm32/scripts/ld.script index c1ba24d02e..4739d30e38 100644 --- a/boards/arm/stm32/olimexino-stm32/scripts/ld.script +++ b/boards/arm/stm32/olimexino-stm32/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7f5eab082a..fe6bf85bae 100644 --- a/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu +++ b/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu @@ -47,10 +47,10 @@ SECTIONS } > flash .init_section : ALIGN(4) { - _sinit = ABSOLUTE(.); - KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) - _einit = ABSOLUTE(.); + _sinit = ABSOLUTE(.); + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) + _einit = ABSOLUTE(.); } > flash .ARM.extab : ALIGN(4) { diff --git a/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld b/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld index 69868597a6..832067ba4b 100644 --- a/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld +++ b/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/omnibusf4/scripts/ld.script b/boards/arm/stm32/omnibusf4/scripts/ld.script index ecbb8ec7ac..92abfdd7b2 100644 --- a/boards/arm/stm32/omnibusf4/scripts/ld.script +++ b/boards/arm/stm32/omnibusf4/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/omnibusf4/scripts/user-space.ld b/boards/arm/stm32/omnibusf4/scripts/user-space.ld index be4dc786ad..27e90d5764 100644 --- a/boards/arm/stm32/omnibusf4/scripts/user-space.ld +++ b/boards/arm/stm32/omnibusf4/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/photon/scripts/photon_dfu.ld b/boards/arm/stm32/photon/scripts/photon_dfu.ld index 6721234a69..3f2bec5d16 100644 --- a/boards/arm/stm32/photon/scripts/photon_dfu.ld +++ b/boards/arm/stm32/photon/scripts/photon_dfu.ld @@ -69,7 +69,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/photon/scripts/photon_jtag.ld b/boards/arm/stm32/photon/scripts/photon_jtag.ld index b9977bfe94..dc70f0e0ed 100644 --- a/boards/arm/stm32/photon/scripts/photon_jtag.ld +++ b/boards/arm/stm32/photon/scripts/photon_jtag.ld @@ -57,7 +57,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/shenzhou/scripts/ld.script b/boards/arm/stm32/shenzhou/scripts/ld.script index abfbcf6490..e12f8861cd 100644 --- a/boards/arm/stm32/shenzhou/scripts/ld.script +++ b/boards/arm/stm32/shenzhou/scripts/ld.script @@ -52,7 +52,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/shenzhou/scripts/ld.script.dfu b/boards/arm/stm32/shenzhou/scripts/ld.script.dfu index b3e5fb79b0..e3eab9f50c 100644 --- a/boards/arm/stm32/shenzhou/scripts/ld.script.dfu +++ b/boards/arm/stm32/shenzhou/scripts/ld.script.dfu @@ -52,10 +52,10 @@ SECTIONS } > flash .init_section : ALIGN(4) { - _sinit = ABSOLUTE(.); - KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) - _einit = ABSOLUTE(.); + _sinit = ABSOLUTE(.); + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) + _einit = ABSOLUTE(.); } > flash .ARM.extab : ALIGN(4) { diff --git a/boards/arm/stm32/stm3210e-eval/scripts/ld.script b/boards/arm/stm32/stm3210e-eval/scripts/ld.script index ad75658a27..0303f91b54 100644 --- a/boards/arm/stm32/stm3210e-eval/scripts/ld.script +++ b/boards/arm/stm32/stm3210e-eval/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 5718721821..bb31d13539 100644 --- a/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu +++ b/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu @@ -52,10 +52,10 @@ SECTIONS } > flash .init_section : ALIGN(4) { - _sinit = ABSOLUTE(.); - KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) - _einit = ABSOLUTE(.); + _sinit = ABSOLUTE(.); + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) + _einit = ABSOLUTE(.); } > flash .ARM.extab : ALIGN(4) { diff --git a/boards/arm/stm32/stm3220g-eval/scripts/ld.script b/boards/arm/stm32/stm3220g-eval/scripts/ld.script index 2594407f39..bcd6923581 100644 --- a/boards/arm/stm32/stm3220g-eval/scripts/ld.script +++ b/boards/arm/stm32/stm3220g-eval/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 fc91518019..4e8f4aef82 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld +++ b/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/stm3240g-eval/scripts/ld.script b/boards/arm/stm32/stm3240g-eval/scripts/ld.script index 9da2880e91..34fea23635 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/ld.script +++ b/boards/arm/stm32/stm3240g-eval/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 1914fa3c16..70e40d99b6 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld +++ b/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/stm32_tiny/scripts/ld.script b/boards/arm/stm32/stm32_tiny/scripts/ld.script index 23c86930d0..a1c06f834d 100644 --- a/boards/arm/stm32/stm32_tiny/scripts/ld.script +++ b/boards/arm/stm32/stm32_tiny/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld b/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld index 9800c52d64..653803b997 100644 --- a/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld +++ b/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld @@ -48,7 +48,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32butterfly2/scripts/flash.ld b/boards/arm/stm32/stm32butterfly2/scripts/flash.ld index 1f11b7ec42..b717846d07 100644 --- a/boards/arm/stm32/stm32butterfly2/scripts/flash.ld +++ b/boards/arm/stm32/stm32butterfly2/scripts/flash.ld @@ -48,7 +48,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script index ddf5761214..142db107dd 100644 --- a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script +++ b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script @@ -60,7 +60,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 05a6155958..f0f7e4e3aa 100644 --- a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu +++ b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu @@ -52,10 +52,10 @@ SECTIONS } > flash .init_section : ALIGN(4) { - _sinit = ABSOLUTE(.); - KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) - _einit = ABSOLUTE(.); + _sinit = ABSOLUTE(.); + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) + _einit = ABSOLUTE(.); } > flash .ARM.extab : ALIGN(4) { diff --git a/boards/arm/stm32/stm32f334-disco/scripts/ld.script b/boards/arm/stm32/stm32f334-disco/scripts/ld.script index d511a5f0ac..8648bdeec2 100644 --- a/boards/arm/stm32/stm32f334-disco/scripts/ld.script +++ b/boards/arm/stm32/stm32f334-disco/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f3discovery/scripts/ld.script b/boards/arm/stm32/stm32f3discovery/scripts/ld.script index db2fb68a81..28dfac01ab 100644 --- a/boards/arm/stm32/stm32f3discovery/scripts/ld.script +++ b/boards/arm/stm32/stm32f3discovery/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f411-minimum/scripts/stm32f411ce.ld b/boards/arm/stm32/stm32f411-minimum/scripts/stm32f411ce.ld index 5e570fe180..7476b6ce53 100644 --- a/boards/arm/stm32/stm32f411-minimum/scripts/stm32f411ce.ld +++ b/boards/arm/stm32/stm32f411-minimum/scripts/stm32f411ce.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld b/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld index 8f6299c33f..467858b3ad 100644 --- a/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld +++ b/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7e9153bf54..8cc2bfad5a 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/ld.script b/boards/arm/stm32/stm32f429i-disco/scripts/ld.script index ae9a3fa2e6..b52777cc5d 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/ld.script +++ b/boards/arm/stm32/stm32f429i-disco/scripts/ld.script @@ -62,7 +62,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/ofloader.ld b/boards/arm/stm32/stm32f429i-disco/scripts/ofloader.ld index fe5009eaa7..7725944e2a 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/ofloader.ld +++ b/boards/arm/stm32/stm32f429i-disco/scripts/ofloader.ld @@ -66,7 +66,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > sram diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld b/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld index 23c2ab4c02..302a7241a1 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld +++ b/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld @@ -60,7 +60,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld b/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld index c4ea7dc7ce..58b463e763 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld +++ b/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32/stm32f4discovery/scripts/ld.script b/boards/arm/stm32/stm32f4discovery/scripts/ld.script index 90b7eb83ed..a1bf7d69b5 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/ld.script +++ b/boards/arm/stm32/stm32f4discovery/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld b/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld index 158df12315..af6ccea078 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld +++ b/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld index 0f9b5f4612..82ff04a570 100644 --- a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld +++ b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld @@ -58,7 +58,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld index 424b45a679..d477d34be9 100644 --- a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld +++ b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld @@ -58,7 +58,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld b/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld index 88b53e452a..d319bc9f41 100644 --- a/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld +++ b/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld @@ -55,7 +55,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld b/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld index 1406444dc0..16aff15bac 100644 --- a/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld +++ b/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld @@ -48,7 +48,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld b/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld index c7118d4246..f94dcf2382 100644 --- a/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld +++ b/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld @@ -48,7 +48,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 f6e2186c53..8478bb7d89 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld b/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld index 8c96b940a6..4a70fa771d 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld @@ -59,7 +59,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld b/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld index 6bd638196c..19b38f6b42 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld @@ -59,7 +59,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script b/boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script index cc20649994..c26edc72e8 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script b/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script index ecf4743ac5..89b4f6b1b9 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script b/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script index 39637dbc80..5689648505 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld index 4ae6c099d5..04eb39e886 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld @@ -57,7 +57,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld index 5581af674c..68b505f66c 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld @@ -57,7 +57,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/ld.script b/boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/ld.script index b724c69663..8a9a4b02f8 100644 --- a/boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/stm32g071b-disco/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f0l0g0/stm32l0538-disco/scripts/ld.script b/boards/arm/stm32f0l0g0/stm32l0538-disco/scripts/ld.script index 3a9c76e21e..95178299bf 100644 --- a/boards/arm/stm32f0l0g0/stm32l0538-disco/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/stm32l0538-disco/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 ca23340a62..4325c9bba0 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld @@ -83,7 +83,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 f8eaf24c36..89cc79dbb9 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld @@ -83,7 +83,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 9b5391cd03..67ee855aec 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld @@ -83,7 +83,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 1a21a36c97..cacf07bde7 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 4d82afc620..b8ad6e9c38 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32f7/steval-eth001v1/scripts/flash.ld b/boards/arm/stm32f7/steval-eth001v1/scripts/flash.ld index 765262b616..81842c1a36 100644 --- a/boards/arm/stm32f7/steval-eth001v1/scripts/flash.ld +++ b/boards/arm/stm32f7/steval-eth001v1/scripts/flash.ld @@ -83,7 +83,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld b/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld index e8c4d88c6f..bf7d144a5c 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld @@ -83,7 +83,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 51f5eed390..d72969d7ca 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 02caad188f..9e644861c5 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld b/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld index f276d5faf9..3092e57d5c 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld @@ -83,7 +83,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 3165bf8b1d..63efca61e0 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 2165094939..b0e85c9568 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld b/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld index 8c302fa7c8..f41f1b5915 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld @@ -83,7 +83,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 c77b88ba1f..3dadf0ce31 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7862bd846c..64efa54812 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/kernel-space.ld b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/kernel-space.ld index 0374e0fcaf..35dd86e1dd 100644 --- a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/ld.script b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/ld.script index 217a2f56ae..f7b40ac8ed 100644 --- a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/ld.script +++ b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/ld.script @@ -83,7 +83,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/user-space.ld b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/user-space.ld index 40744b3a0f..bf5126476e 100644 --- a/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f777zit6-meadow/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 a6e3469e1a..d617a34352 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-app.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-app.ld @@ -133,7 +133,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 96e0f03de4..d2859fbb8a 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-loader.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash-mcuboot-loader.ld @@ -133,7 +133,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld index af9189e824..ce1aa86af1 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld @@ -133,7 +133,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 897b6d58d3..30390dc1b3 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 f7cdb7a37a..b5b038fc0d 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32h7/nucleo-h743zi2/scripts/flash.ld b/boards/arm/stm32h7/nucleo-h743zi2/scripts/flash.ld index 18de35fa28..b256330453 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/scripts/flash.ld +++ b/boards/arm/stm32h7/nucleo-h743zi2/scripts/flash.ld @@ -133,7 +133,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 dc7f44ab90..397b3aff1b 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/scripts/user-space.ld +++ b/boards/arm/stm32h7/nucleo-h743zi2/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32h7/nucleo-h745zi/scripts/flash.ld b/boards/arm/stm32h7/nucleo-h745zi/scripts/flash.ld index 798cf2bfd2..a114ad353e 100644 --- a/boards/arm/stm32h7/nucleo-h745zi/scripts/flash.ld +++ b/boards/arm/stm32h7/nucleo-h745zi/scripts/flash.ld @@ -76,7 +76,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32h7/nucleo-h745zi/scripts/flash_m4.ld b/boards/arm/stm32h7/nucleo-h745zi/scripts/flash_m4.ld index 8b08451dbb..6b5af7fdd0 100644 --- a/boards/arm/stm32h7/nucleo-h745zi/scripts/flash_m4.ld +++ b/boards/arm/stm32h7/nucleo-h745zi/scripts/flash_m4.ld @@ -68,7 +68,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32h7/stm32h745i-disco/scripts/flash.ld b/boards/arm/stm32h7/stm32h745i-disco/scripts/flash.ld index 1257c37ee9..fdf76796d5 100644 --- a/boards/arm/stm32h7/stm32h745i-disco/scripts/flash.ld +++ b/boards/arm/stm32h7/stm32h745i-disco/scripts/flash.ld @@ -151,7 +151,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32h7/stm32h745i-disco/scripts/user-space.ld b/boards/arm/stm32h7/stm32h745i-disco/scripts/user-space.ld index a02cc5e67e..13884ca5b7 100644 --- a/boards/arm/stm32h7/stm32h745i-disco/scripts/user-space.ld +++ b/boards/arm/stm32h7/stm32h745i-disco/scripts/user-space.ld @@ -46,7 +46,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld b/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld index c05ebd19a0..5103b90f6c 100644 --- a/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld +++ b/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld @@ -131,7 +131,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 adcd5c6817..8aba8f1244 100644 --- a/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld +++ b/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 8a5dc8a871..20f9e58636 100644 --- a/boards/arm/stm32h7/stm32h747i-disco/scripts/user-space.ld +++ b/boards/arm/stm32h7/stm32h747i-disco/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 876b5b66f5..d48186349b 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld +++ b/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld b/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld index 53dc3e9015..eb0460bee6 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld +++ b/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 81408febc6..e6af46e7e6 100644 --- a/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld +++ b/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld b/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld index 646cece2f7..7d0071d622 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld +++ b/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 6215f6d66c..e67a54e26b 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 2787312468..234699a927 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 221ccc3c7c..5398d51969 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32l4/steval-stlcs01v1/scripts/ld.script b/boards/arm/stm32l4/steval-stlcs01v1/scripts/ld.script index c6a234c808..8dff3288c8 100644 --- a/boards/arm/stm32l4/steval-stlcs01v1/scripts/ld.script +++ b/boards/arm/stm32l4/steval-stlcs01v1/scripts/ld.script @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 e86e0ddbdc..6157312baf 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld +++ b/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 f49e719d86..cb554281bb 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 b6b903a81c..e2fd0a9c8a 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld @@ -59,7 +59,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 fbf1081b8b..f9d4a7fa84 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 3f70e97164..9ee79bec6c 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7abbd7607e..40476dd873 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld @@ -62,7 +62,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 24372af5dc..a18e96533c 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/stm32l5/nucleo-l552ze/scripts/flash.ld b/boards/arm/stm32l5/nucleo-l552ze/scripts/flash.ld index 3cacf78875..e4c00abc86 100644 --- a/boards/arm/stm32l5/nucleo-l552ze/scripts/flash.ld +++ b/boards/arm/stm32l5/nucleo-l552ze/scripts/flash.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 6d04c9cd94..3de0211cd8 100644 --- a/boards/arm/stm32l5/stm32l562e-dk/scripts/tfm-ns.ld +++ b/boards/arm/stm32l5/stm32l562e-dk/scripts/tfm-ns.ld @@ -65,7 +65,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 e2ebef35c5..22f7a8c624 100644 --- a/boards/arm/stm32u5/b-u585i-iot02a/scripts/flash.ld +++ b/boards/arm/stm32u5/b-u585i-iot02a/scripts/flash.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 07f04e04f6..d1920957f3 100644 --- a/boards/arm/stm32u5/b-u585i-iot02a/scripts/tfm-ns.ld +++ b/boards/arm/stm32u5/b-u585i-iot02a/scripts/tfm-ns.ld @@ -65,7 +65,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32u5/nucleo-u5a5zj-q/scripts/flash.ld b/boards/arm/stm32u5/nucleo-u5a5zj-q/scripts/flash.ld index 21643acb8c..ad3404f7ac 100644 --- a/boards/arm/stm32u5/nucleo-u5a5zj-q/scripts/flash.ld +++ b/boards/arm/stm32u5/nucleo-u5a5zj-q/scripts/flash.ld @@ -53,7 +53,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32u5/nucleo-u5a5zj-q/scripts/tfm-ns.ld b/boards/arm/stm32u5/nucleo-u5a5zj-q/scripts/tfm-ns.ld index 347ffc38f9..d1920957f3 100644 --- a/boards/arm/stm32u5/nucleo-u5a5zj-q/scripts/tfm-ns.ld +++ b/boards/arm/stm32u5/nucleo-u5a5zj-q/scripts/tfm-ns.ld @@ -64,7 +64,8 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32wb/flipperzero/scripts/flipperzero.ld b/boards/arm/stm32wb/flipperzero/scripts/flipperzero.ld index f2c0f4d4d8..b4ea93a772 100644 --- a/boards/arm/stm32wb/flipperzero/scripts/flipperzero.ld +++ b/boards/arm/stm32wb/flipperzero/scripts/flipperzero.ld @@ -63,7 +63,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32wb/nucleo-wb55rg/scripts/wb55rg.ld b/boards/arm/stm32wb/nucleo-wb55rg/scripts/wb55rg.ld index 470f4df532..cd1c8acb4d 100644 --- a/boards/arm/stm32wb/nucleo-wb55rg/scripts/wb55rg.ld +++ b/boards/arm/stm32wb/nucleo-wb55rg/scripts/wb55rg.ld @@ -63,7 +63,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld b/boards/arm/stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld index 9b414f76d8..d94756c60a 100644 --- a/boards/arm/stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld +++ b/boards/arm/stm32wl5/nucleo-wl55jc/scripts/wl55jc.ld @@ -54,7 +54,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/str71x/olimex-strp711/scripts/ld.script b/boards/arm/str71x/olimex-strp711/scripts/ld.script index 8a50d20e89..ef1879aa80 100644 --- a/boards/arm/str71x/olimex-strp711/scripts/ld.script +++ b/boards/arm/str71x/olimex-strp711/scripts/ld.script @@ -61,7 +61,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/dk-tm4c129x/scripts/ld.script b/boards/arm/tiva/dk-tm4c129x/scripts/ld.script index cec5e3eeb7..d1ac2e8b59 100644 --- a/boards/arm/tiva/dk-tm4c129x/scripts/ld.script +++ b/boards/arm/tiva/dk-tm4c129x/scripts/ld.script @@ -53,7 +53,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/eagle100/scripts/ld.script b/boards/arm/tiva/eagle100/scripts/ld.script index 093721bdc3..71c007cd09 100644 --- a/boards/arm/tiva/eagle100/scripts/ld.script +++ b/boards/arm/tiva/eagle100/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 1bd6fcb4b6..71fd86dbc5 100644 --- a/boards/arm/tiva/ekk-lm3s9b96/scripts/ekk-lm3s9b96.ld +++ b/boards/arm/tiva/ekk-lm3s9b96/scripts/ekk-lm3s9b96.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/launchxl-cc1310/scripts/flash.ld b/boards/arm/tiva/launchxl-cc1310/scripts/flash.ld index c5573a5292..8e92116f49 100644 --- a/boards/arm/tiva/launchxl-cc1310/scripts/flash.ld +++ b/boards/arm/tiva/launchxl-cc1310/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/launchxl-cc1312r1/scripts/flash.ld b/boards/arm/tiva/launchxl-cc1312r1/scripts/flash.ld index 268a19a60c..239444cdbd 100644 --- a/boards/arm/tiva/launchxl-cc1312r1/scripts/flash.ld +++ b/boards/arm/tiva/launchxl-cc1312r1/scripts/flash.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/launchxl-cc1312r1/scripts/sram.ld b/boards/arm/tiva/launchxl-cc1312r1/scripts/sram.ld index 6154e2bd1c..cdab1e6067 100644 --- a/boards/arm/tiva/launchxl-cc1312r1/scripts/sram.ld +++ b/boards/arm/tiva/launchxl-cc1312r1/scripts/sram.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 7cc8f83c5f..ba3458e6c5 100644 --- a/boards/arm/tiva/lm3s6432-s2e/scripts/lm3s6432-s2e.ld +++ b/boards/arm/tiva/lm3s6432-s2e/scripts/lm3s6432-s2e.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 cce0cee994..d01b1807c0 100644 --- a/boards/arm/tiva/lm3s6965-ek/scripts/kernel-space.ld +++ b/boards/arm/tiva/lm3s6965-ek/scripts/kernel-space.ld @@ -45,7 +45,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/arm/tiva/lm3s6965-ek/scripts/ld.script b/boards/arm/tiva/lm3s6965-ek/scripts/ld.script index 1337934891..119502d53a 100644 --- a/boards/arm/tiva/lm3s6965-ek/scripts/ld.script +++ b/boards/arm/tiva/lm3s6965-ek/scripts/ld.script @@ -52,7 +52,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 6a3ad3a1fb..e1ddb79839 100644 --- a/boards/arm/tiva/lm3s6965-ek/scripts/user-space.ld +++ b/boards/arm/tiva/lm3s6965-ek/scripts/user-space.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/arm/tiva/lm3s8962-ek/scripts/ld.script b/boards/arm/tiva/lm3s8962-ek/scripts/ld.script index 5b0d02447d..77a3f3c028 100644 --- a/boards/arm/tiva/lm3s8962-ek/scripts/ld.script +++ b/boards/arm/tiva/lm3s8962-ek/scripts/ld.script @@ -52,7 +52,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 cca6edad83..2cfebd41c1 100644 --- a/boards/arm/tiva/lm4f120-launchpad/scripts/lm4f120-launchpad.ld +++ b/boards/arm/tiva/lm4f120-launchpad/scripts/lm4f120-launchpad.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 cf6346e06d..c8da04392d 100644 --- a/boards/arm/tiva/tm4c123g-launchpad/scripts/tm4c123g-launchpad.ld +++ b/boards/arm/tiva/tm4c123g-launchpad/scripts/tm4c123g-launchpad.ld @@ -53,7 +53,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/tm4c1294-launchpad/scripts/ld.script b/boards/arm/tiva/tm4c1294-launchpad/scripts/ld.script index 26f2738d93..8e104ef70a 100644 --- a/boards/arm/tiva/tm4c1294-launchpad/scripts/ld.script +++ b/boards/arm/tiva/tm4c1294-launchpad/scripts/ld.script @@ -53,7 +53,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/tiva/tm4c129e-launchpad/scripts/ld.script b/boards/arm/tiva/tm4c129e-launchpad/scripts/ld.script index 3124a9f159..1d70d34a77 100644 --- a/boards/arm/tiva/tm4c129e-launchpad/scripts/ld.script +++ b/boards/arm/tiva/tm4c129e-launchpad/scripts/ld.script @@ -53,7 +53,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 22340545f2..f01b843e7b 100644 --- a/boards/arm/tms570/launchxl-tms57004/scripts/flash-sram.ld +++ b/boards/arm/tms570/launchxl-tms57004/scripts/flash-sram.ld @@ -52,7 +52,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _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 381697f4ea..f17d9d25bb 100644 --- a/boards/arm/tms570/tms570ls31x-usb-kit/scripts/flash-sram.ld +++ b/boards/arm/tms570/tms570ls31x-usb-kit/scripts/flash-sram.ld @@ -56,7 +56,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld b/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld index 6c532d3033..6e67ff94bb 100644 --- a/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld +++ b/boards/arm/xmc4/xmc4500-relax/scripts/flash.ld @@ -58,7 +58,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld b/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld index 8c3383516c..9536a772fb 100644 --- a/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld +++ b/boards/arm/xmc4/xmc4700-relax/scripts/flash.ld @@ -63,7 +63,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/arm64/a64/pinephone/scripts/dramboot.ld b/boards/arm64/a64/pinephone/scripts/dramboot.ld index f5f515d4b8..22890c0aef 100644 --- a/boards/arm64/a64/pinephone/scripts/dramboot.ld +++ b/boards/arm64/a64/pinephone/scripts/dramboot.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } diff --git a/boards/arm64/fvp-v8r/fvp-armv8r/scripts/dramboot.ld b/boards/arm64/fvp-v8r/fvp-armv8r/scripts/dramboot.ld index 50d5ba78d4..44b6f05056 100644 --- a/boards/arm64/fvp-v8r/fvp-armv8r/scripts/dramboot.ld +++ b/boards/arm64/fvp-v8r/fvp-armv8r/scripts/dramboot.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } diff --git a/boards/arm64/imx8/imx8qm-mek/scripts/dramboot.ld b/boards/arm64/imx8/imx8qm-mek/scripts/dramboot.ld index 24e385d994..7eefd2495b 100644 --- a/boards/arm64/imx8/imx8qm-mek/scripts/dramboot.ld +++ b/boards/arm64/imx8/imx8qm-mek/scripts/dramboot.ld @@ -46,7 +46,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } diff --git a/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld b/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld index 55cfc44b9d..d1997f26bc 100644 --- a/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld +++ b/boards/arm64/qemu/qemu-armv8a/scripts/dramboot.ld @@ -62,7 +62,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } diff --git a/boards/arm64/rk3399/nanopi_m4/scripts/dramboot.ld b/boards/arm64/rk3399/nanopi_m4/scripts/dramboot.ld index d202807ea6..671e27653c 100644 --- a/boards/arm64/rk3399/nanopi_m4/scripts/dramboot.ld +++ b/boards/arm64/rk3399/nanopi_m4/scripts/dramboot.ld @@ -56,7 +56,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } diff --git a/boards/arm64/rk3399/pinephonepro/scripts/dramboot.ld b/boards/arm64/rk3399/pinephonepro/scripts/dramboot.ld index f3a47b2719..b9d118b60c 100644 --- a/boards/arm64/rk3399/pinephonepro/scripts/dramboot.ld +++ b/boards/arm64/rk3399/pinephonepro/scripts/dramboot.ld @@ -47,7 +47,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } diff --git a/boards/arm64/vdk/vdk-armv8r/scripts/dramboot.ld b/boards/arm64/vdk/vdk-armv8r/scripts/dramboot.ld new file mode 100644 index 0000000000..97af33072b --- /dev/null +++ b/boards/arm64/vdk/vdk-armv8r/scripts/dramboot.ld @@ -0,0 +1,128 @@ +/**************************************************************************** + * boards/arm64/vdk/vdk-armv8r/scripts/dramboot.ld + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ****************************************************************************/ + +OUTPUT_ARCH(aarch64) + +ENTRY(__start) + +PHDRS +{ + text PT_LOAD ; +} + +SECTIONS +{ + . = 0x80000000; /* uboot load address */ + _start = .; + .text : { + _stext = .; /* Text section */ + *(.text) + *(.text.cold) + *(.text.unlikely) + *(.fixup) + *(.gnu.warning) + } :text = 0x9090 + + . = ALIGN(4096); + + .init_section : { + _sinit = ABSOLUTE(.); + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) + _einit = ABSOLUTE(.); + } + + . = ALIGN(4096); + + .vector : { + _vector_start = .; + KEEP(*(.exc_vector_table)) + KEEP(*(".exc_vector_table.*")) + KEEP(*(.vectors)) + _vector_end = .; + } :text + . = ALIGN(4096); + _etext = .; /* End_1 of .text */ + _sztext = _etext - _stext; + + . = ALIGN(4096); + .rodata : { + _srodata = .; /* Read-only data */ + *(.rodata) + *(.rodata.*) + *(.data.rel.ro) + *(.data.rel.ro.*) + } :text + . = ALIGN(4096); + _erodata = .; /* End of read-only data */ + _szrodata = _erodata - _srodata; + _eronly = .; /* End of read-only data */ + + . = ALIGN(4096); + .data : { /* Data */ + _sdata = .; + *(.data.page_aligned) + *(.data) + . = ALIGN(8); + *(.data.rel) + *(.data.rel.*) + CONSTRUCTORS + } :text + _edata = .; /* End+1 of .data */ + + .bss : { /* BSS */ + . = ALIGN(8); + _sbss = .; + *(.bss) + . = ALIGN(8); + } :text + . = ALIGN(4096); + _ebss = .; + _szbss = _ebss - _sbss; + + .initstack : { /* INIT STACK */ + _s_initstack = .; + *(.initstack) + . = ALIGN(16); + } :text + . = ALIGN(4096); + _e_initstack = . ; + g_idle_topstack = . ; + + _szdata = _e_initstack - _sdata; + + /* Sections to be discarded */ + /DISCARD/ : { + *(.exit.text) + *(.exit.data) + *(.exitcall.exit) + *(.eh_frame) + } + + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + .stab.excl 0 : { *(.stab.excl) } + .stab.exclstr 0 : { *(.stab.exclstr) } + .stab.index 0 : { *(.stab.index) } + .stab.indexstr 0 : { *(.stab.indexstr) } + .comment 0 : { *(.comment) } +} + diff --git a/boards/or1k/mor1kx/or1k/scripts/flash.ld b/boards/or1k/mor1kx/or1k/scripts/flash.ld index d8fff419bb..033a86a103 100644 --- a/boards/or1k/mor1kx/or1k/scripts/flash.ld +++ b/boards/or1k/mor1kx/or1k/scripts/flash.ld @@ -50,7 +50,7 @@ SECTIONS { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > dram diff --git a/boards/renesas/rx65n/rx65n-grrose/scripts/linker_script.ld b/boards/renesas/rx65n/rx65n-grrose/scripts/linker_script.ld index 497a6d3dd7..abacece525 100644 --- a/boards/renesas/rx65n/rx65n-grrose/scripts/linker_script.ld +++ b/boards/renesas/rx65n/rx65n-grrose/scripts/linker_script.ld @@ -58,7 +58,7 @@ SECTIONS __preinit_array_end = .; __init_array_start = (. + 3) & ~ 3; KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) __init_array_end = .; __fini_array_start = .; KEEP(*(.fini_array)) diff --git a/boards/renesas/rx65n/rx65n-rsk1mb/scripts/linker_script.ld b/boards/renesas/rx65n/rx65n-rsk1mb/scripts/linker_script.ld index 9264dd708c..cd125920d3 100644 --- a/boards/renesas/rx65n/rx65n-rsk1mb/scripts/linker_script.ld +++ b/boards/renesas/rx65n/rx65n-rsk1mb/scripts/linker_script.ld @@ -49,7 +49,7 @@ SECTIONS __preinit_array_end = .; __init_array_start = (. + 3) & ~ 3; KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) __init_array_end = .; __fini_array_start = .; KEEP(*(.fini_array)) diff --git a/boards/renesas/rx65n/rx65n-rsk2mb/scripts/linker_script.ld b/boards/renesas/rx65n/rx65n-rsk2mb/scripts/linker_script.ld index e5339f0916..6db40f54af 100644 --- a/boards/renesas/rx65n/rx65n-rsk2mb/scripts/linker_script.ld +++ b/boards/renesas/rx65n/rx65n-rsk2mb/scripts/linker_script.ld @@ -50,7 +50,7 @@ SECTIONS __preinit_array_end = .; __init_array_start = (. + 3) & ~ 3; KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) __init_array_end = .; __fini_array_start = .; KEEP(*(.fini_array)) diff --git a/boards/renesas/rx65n/rx65n/scripts/linker_script.ld b/boards/renesas/rx65n/rx65n/scripts/linker_script.ld index 9d2a86fb0d..ba69dbc221 100644 --- a/boards/renesas/rx65n/rx65n/scripts/linker_script.ld +++ b/boards/renesas/rx65n/rx65n/scripts/linker_script.ld @@ -58,7 +58,7 @@ SECTIONS __preinit_array_end = .; __init_array_start = (. + 3) & ~ 3; KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) __init_array_end = .; __fini_array_start = .; KEEP(*(.fini_array)) diff --git a/boards/risc-v/c906/smartl-c906/scripts/ld-qemu.script b/boards/risc-v/c906/smartl-c906/scripts/ld-qemu.script index 5e351953be..a18adfb3c7 100644 --- a/boards/risc-v/c906/smartl-c906/scripts/ld-qemu.script +++ b/boards/risc-v/c906/smartl-c906/scripts/ld-qemu.script @@ -49,7 +49,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/risc-v/c906/smartl-c906/scripts/ld.script b/boards/risc-v/c906/smartl-c906/scripts/ld.script index e08da1680e..262979363b 100644 --- a/boards/risc-v/c906/smartl-c906/scripts/ld.script +++ b/boards/risc-v/c906/smartl-c906/scripts/ld.script @@ -49,7 +49,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/risc-v/c906/smartl-c906/scripts/user-space.ld b/boards/risc-v/c906/smartl-c906/scripts/user-space.ld index 65494b4630..8ed686914d 100644 --- a/boards/risc-v/c906/smartl-c906/scripts/user-space.ld +++ b/boards/risc-v/c906/smartl-c906/scripts/user-space.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/risc-v/fe310/hifive1-revb/scripts/ld-qemu.script b/boards/risc-v/fe310/hifive1-revb/scripts/ld-qemu.script index 287fc0ebfc..ee8756ae53 100644 --- a/boards/risc-v/fe310/hifive1-revb/scripts/ld-qemu.script +++ b/boards/risc-v/fe310/hifive1-revb/scripts/ld-qemu.script @@ -49,7 +49,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/risc-v/fe310/hifive1-revb/scripts/ld.script b/boards/risc-v/fe310/hifive1-revb/scripts/ld.script index 4b49cfa45d..0d8c11782c 100644 --- a/boards/risc-v/fe310/hifive1-revb/scripts/ld.script +++ b/boards/risc-v/fe310/hifive1-revb/scripts/ld.script @@ -49,7 +49,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/risc-v/hpm6750/hpm6750evk2/scripts/ld.script b/boards/risc-v/hpm6750/hpm6750evk2/scripts/ld.script index dd225da677..939f1b7dcd 100644 --- a/boards/risc-v/hpm6750/hpm6750evk2/scripts/ld.script +++ b/boards/risc-v/hpm6750/hpm6750evk2/scripts/ld.script @@ -48,7 +48,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > ilm diff --git a/boards/risc-v/k210/maix-bit/scripts/ld.script b/boards/risc-v/k210/maix-bit/scripts/ld.script index 282206762d..18309d59eb 100644 --- a/boards/risc-v/k210/maix-bit/scripts/ld.script +++ b/boards/risc-v/k210/maix-bit/scripts/ld.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(8) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) . = ALIGN(8); _einit = ABSOLUTE(.); } > progmem diff --git a/boards/risc-v/k210/maix-bit/scripts/user-space.ld b/boards/risc-v/k210/maix-bit/scripts/user-space.ld index 206b7e5beb..5927c721bb 100644 --- a/boards/risc-v/k210/maix-bit/scripts/user-space.ld +++ b/boards/risc-v/k210/maix-bit/scripts/user-space.ld @@ -48,7 +48,7 @@ SECTIONS .init_section : ALIGN(8) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) . = ALIGN(8); _einit = ABSOLUTE(.); } > uflash diff --git a/boards/risc-v/litex/arty_a7/scripts/gnu-elf.ld b/boards/risc-v/litex/arty_a7/scripts/gnu-elf.ld index 760fc32765..f9220d16e6 100644 --- a/boards/risc-v/litex/arty_a7/scripts/gnu-elf.ld +++ b/boards/risc-v/litex/arty_a7/scripts/gnu-elf.ld @@ -76,8 +76,8 @@ SECTIONS { _sctors = . ; KEEP (*(.ctors)) /* Old ABI: Unallocated */ - KEEP (*(.init_array)) /* New ABI: Allocated */ - KEEP (*(SORT(.init_array.*))) + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _ectors = . ; } diff --git a/boards/risc-v/litex/arty_a7/scripts/ld-kernel.script b/boards/risc-v/litex/arty_a7/scripts/ld-kernel.script index bfd7aebac0..3ee313aeb4 100644 --- a/boards/risc-v/litex/arty_a7/scripts/ld-kernel.script +++ b/boards/risc-v/litex/arty_a7/scripts/ld-kernel.script @@ -71,7 +71,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/risc-v/litex/arty_a7/scripts/ld.script b/boards/risc-v/litex/arty_a7/scripts/ld.script index a702629f07..d5e50dee63 100644 --- a/boards/risc-v/litex/arty_a7/scripts/ld.script +++ b/boards/risc-v/litex/arty_a7/scripts/ld.script @@ -49,7 +49,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/risc-v/mpfs/icicle/scripts/kernel-space.ld b/boards/risc-v/mpfs/icicle/scripts/kernel-space.ld index 071d7fd8e9..81f7e744d5 100644 --- a/boards/risc-v/mpfs/icicle/scripts/kernel-space.ld +++ b/boards/risc-v/mpfs/icicle/scripts/kernel-space.ld @@ -62,7 +62,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/risc-v/mpfs/icicle/scripts/ld-envm-opensbi.script b/boards/risc-v/mpfs/icicle/scripts/ld-envm-opensbi.script index 419d441b77..fb312819ca 100644 --- a/boards/risc-v/mpfs/icicle/scripts/ld-envm-opensbi.script +++ b/boards/risc-v/mpfs/icicle/scripts/ld-envm-opensbi.script @@ -79,7 +79,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > envm diff --git a/boards/risc-v/mpfs/icicle/scripts/ld-envm.script b/boards/risc-v/mpfs/icicle/scripts/ld-envm.script index 94def6f470..7c845e51f0 100644 --- a/boards/risc-v/mpfs/icicle/scripts/ld-envm.script +++ b/boards/risc-v/mpfs/icicle/scripts/ld-envm.script @@ -57,7 +57,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > envm diff --git a/boards/risc-v/mpfs/icicle/scripts/ld-ihc-ch2.script b/boards/risc-v/mpfs/icicle/scripts/ld-ihc-ch2.script index e5e9361a75..54a85ee87c 100644 --- a/boards/risc-v/mpfs/icicle/scripts/ld-ihc-ch2.script +++ b/boards/risc-v/mpfs/icicle/scripts/ld-ihc-ch2.script @@ -78,7 +78,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/risc-v/mpfs/icicle/scripts/ld-ihc.script b/boards/risc-v/mpfs/icicle/scripts/ld-ihc.script index 5f09311483..c53a6e5c49 100644 --- a/boards/risc-v/mpfs/icicle/scripts/ld-ihc.script +++ b/boards/risc-v/mpfs/icicle/scripts/ld-ihc.script @@ -78,7 +78,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/risc-v/mpfs/icicle/scripts/ld-kernel.script b/boards/risc-v/mpfs/icicle/scripts/ld-kernel.script index f5586f08f3..8a296aa407 100644 --- a/boards/risc-v/mpfs/icicle/scripts/ld-kernel.script +++ b/boards/risc-v/mpfs/icicle/scripts/ld-kernel.script @@ -68,7 +68,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > kflash diff --git a/boards/risc-v/mpfs/icicle/scripts/ld.script b/boards/risc-v/mpfs/icicle/scripts/ld.script index 85dc8503f8..d004be03e6 100644 --- a/boards/risc-v/mpfs/icicle/scripts/ld.script +++ b/boards/risc-v/mpfs/icicle/scripts/ld.script @@ -53,7 +53,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/risc-v/mpfs/icicle/scripts/user-space.ld b/boards/risc-v/mpfs/icicle/scripts/user-space.ld index 1590c24b24..6337412338 100644 --- a/boards/risc-v/mpfs/icicle/scripts/user-space.ld +++ b/boards/risc-v/mpfs/icicle/scripts/user-space.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/risc-v/mpfs/m100pfsevp/scripts/ld-envm.script b/boards/risc-v/mpfs/m100pfsevp/scripts/ld-envm.script index 39392ee21f..722a899d65 100644 --- a/boards/risc-v/mpfs/m100pfsevp/scripts/ld-envm.script +++ b/boards/risc-v/mpfs/m100pfsevp/scripts/ld-envm.script @@ -50,7 +50,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > envm diff --git a/boards/risc-v/mpfs/m100pfsevp/scripts/ld.script b/boards/risc-v/mpfs/m100pfsevp/scripts/ld.script index cc153d847a..fc994b86ae 100644 --- a/boards/risc-v/mpfs/m100pfsevp/scripts/ld.script +++ b/boards/risc-v/mpfs/m100pfsevp/scripts/ld.script @@ -49,7 +49,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > progmem diff --git a/boards/risc-v/mpfs/m100pfsevp/scripts/user-space.ld b/boards/risc-v/mpfs/m100pfsevp/scripts/user-space.ld index 52f55e9216..a93fd408a5 100644 --- a/boards/risc-v/mpfs/m100pfsevp/scripts/user-space.ld +++ b/boards/risc-v/mpfs/m100pfsevp/scripts/user-space.ld @@ -58,7 +58,7 @@ SECTIONS .init_section : { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > uflash diff --git a/boards/risc-v/rv32m1/rv32m1-vega/scripts/ld-itcm.script b/boards/risc-v/rv32m1/rv32m1-vega/scripts/ld-itcm.script index 563ec026df..e2625e2dad 100644 --- a/boards/risc-v/rv32m1/rv32m1-vega/scripts/ld-itcm.script +++ b/boards/risc-v/rv32m1/rv32m1-vega/scripts/ld-itcm.script @@ -56,7 +56,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash diff --git a/boards/risc-v/rv32m1/rv32m1-vega/scripts/ld.script b/boards/risc-v/rv32m1/rv32m1-vega/scripts/ld.script index 71d58f6aa7..5dfd355075 100644 --- a/boards/risc-v/rv32m1/rv32m1-vega/scripts/ld.script +++ b/boards/risc-v/rv32m1/rv32m1-vega/scripts/ld.script @@ -55,7 +55,7 @@ SECTIONS .init_section : ALIGN(4) { _sinit = ABSOLUTE(.); KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) - KEEP(*(.init_array .ctors)) + KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors)) _einit = ABSOLUTE(.); } > flash