Skip to content

Huge bin/hex file when using CONFIG_CMAKE_LINKER_GENERATOR=y #57590

Closed
@gmarull

Description

@gmarull

Describe the bug

It looks like the CMake linker generator, when enabled, ends up in huge bin/hex files, at least on nRF52.

To Reproduce

west build -b nrf52840dk_nrf52840 samples/hello_world -p -- -DCONFIG_CMAKE_LINKER_GENERATOR=y
ls -lh build/zephyr | grep zephyr.hex
-rw-r--r--.  1 gmarull gmarull 1.5G May  5 12:35 zephyr.hex

Expected behavior
bin/hex file has the same size regardless of CONFIG_CMAKE_LINKER_GENERATOR.

Impact

CONFIG_CMAKE_LINKER_GENERATOR unusable

Logs and console output
N/A

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK 0.16.0
  • Commit SHA or Version used bdbbb9e

Additional context
N/A

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions