CONFIG_LINKER_SORT_BY_ALIGNMENT

Sort input sections by alignment

Type: bool

Help

This turns on the linker flag to sort sections by alignment in decreasing size of symbols. This helps to minimize padding between symbols.

Default

  • y

Kconfig definition

At Kconfig.zephyr:185

Included via Kconfig:8

Menu path: (Top) → Build and Link Features → Linker Options

config LINKER_SORT_BY_ALIGNMENT
    bool "Sort input sections by alignment"
    default y
    help
      This turns on the linker flag to sort sections by alignment
      in decreasing size of symbols. This helps to minimize
      padding between symbols.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)