Skip to content
Commit 04d706b4 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

linker: add macros so iterable sections can be garbage collected



The iterable section macros Z_ITERABLE_SECTION_ROM()/_RAM() uses
Z_LINK_ITERABLE() which does KEEP() on all symbols. This results
in all symbols under those sections being kept in final image
even though these symbols are not referred directly from the code.
This adds the new set of macros which does not force KEEP() on
the symbols, and allows symbols to be garbage collected.
The existing macros are kept as-is so as not to change their
behaviors.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 0fe62c63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment