linker: tweak section naming to feet all linkers

MWDT toolchain adds additional suffix to sections name
in case of ffunction-sections / fdata-sections are enabled.
Let's pick a single set of rules and syntax that work.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
Watson Zeng 2021-03-19 14:23:02 +08:00 committed by Kumar Gala
commit b64197fba6

View file

@ -34,8 +34,8 @@
#ifndef LINKER_ZEPHYR_FINAL #ifndef LINKER_ZEPHYR_FINAL
SECTION_PROLOGUE(.intList,,) SECTION_PROLOGUE(.intList,,)
{ {
KEEP(*(.irq_info)) KEEP(*(.irq_info*))
KEEP(*(.intList)) KEEP(*(.intList*))
} GROUP_ROM_LINK_IN(IDT_LIST, IDT_LIST) } GROUP_ROM_LINK_IN(IDT_LIST, IDT_LIST)
#else #else
/DISCARD/ : /DISCARD/ :