We want to generate an application which starts with a header.
This header should be generated in the linker.
When I do that, I can see that the S-Record file contains the correct info,
but the map file says that the section is empty, and when I download to the target,
the section is missing.
MEMORY
{
header: org = 0x00008000, len = 0x00000100
...
}
SECTIONS
{
.header LOAD(ADDR(header)) : {
__MAGIC_BEGIN = .;
LONG(MAGIC);
CRC = .;
LONG(0x0);
...
__MAGIC_END = .;
LONG(MAGIC);
} > header
}
I have figured out a way to replace the magic words by two assembler sections,
but would like to understand why the section is ignored.
The application reads from the header, so there should be dependencies.