-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Closed as not planned
Labels
StalebugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: NXPNXPNXPpriority: lowLow impact/importance bugLow impact/importance bug
Description
When building application binaries for NXP i.MX RT 10xx boards (tested on 1060 EVKB and 1064 EVK), with CONFIG_LTO=y, symbols image_vector_table and boot_data get removed. The board does not boot up.
To Reproduce
Steps to reproduce the behavior:
- Set
CONFIG_ISR_TABLES_LOCAL_DECLARATION=yandCONFIG_LTO=y - west build -b mimxrt1064_evk --shield rk043fn66hs_ctg zephyr/samples/basic/blinky
- west flash
- Board does not boot. (arm-none-eabi-objdump -D build/zephyr/zephyr.elf does not show image_vector_table and boot_data at expected addresses)
Expected behavior
Symbols are there and board boots.
Impact
Blocker with workaround.
Environment (please complete the following information):
- OS: Linux
- Toolchain: Tested with zephyr-sdk-0.17.0 and arm_gcc_12_3_1
- Commit SHA: 4189364 (4.1)
Additional context
Marking the symbols undefined for the linker fixes the issue and the symbols are then kept and the board boots normally.
Metadata
Metadata
Assignees
Labels
StalebugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: NXPNXPNXPpriority: lowLow impact/importance bugLow impact/importance bug