Hi emagii,
Thanks for this question.
Indeed certain CodeWarrior linker keywords (such as LONG, BYTE, FILL...) influences just the output binary file (mot) and not the executable file/map file.
Anyway if you intend on creating a section I'd suggest to create a dummy asm file (e.g. magic.s) and define magic words as:
.section .header1
.long 0x12345678
.section .header2
.long 0xDEADBEEF
and adjust the lcf file:
.header LOAD(ADDR(header)) : {
__MAGIC_BEGIN = .;
*(.header1)
CRC = .;
LONG(0x0);
__MAGIC_END = .;
*(.header2)
} > header
when compiled you should see the section in .map and after .elf file loading the memory content should be as expected.
stanish_0-1645138182781.png
Hope it helps.
Stan