knurling-rs / flip-link

Adds zero-cost stack overflow protection to your embedded programs
Apache License 2.0
271 stars 6 forks source link

Doesn't work with include #4

Open MathiasKoch opened 3 years ago

MathiasKoch commented 3 years ago

A layout like this:

memory.x:

INCLUDE common.ld

MEMORY
{
    FLASH : org = 0x08004400, len = 319k
}

common.x:

MEMORY
{
    FIRMWARE        : org = 0x08004000, len = 320k
    FWUPDATE        : org = 0x08054000, len = 320k
    FWSWAP          : org = 0x080A4000, len = 320k
    RAM             : org = 0x20000000, len = 96k      /* SRAM1 */
    RAM2            : org = 0x10000000, len = 32K      /* SRAM2 */
}

Does not work with the current "naive" line-by-line parser.