Page 2 of 2

Re: [DONE] Bug in STM32F407xG.ld and possibly others

Posted: Sun Nov 23, 2014 7:04 pm
by lilvinz
I think you can drop the whole .textalign "workaround" thing and make .data look like this:

Code: Select all

    .data ALIGN(4) : ALIGN(4)
    {
        PROVIDE(_textdata = LOADADDR(.data));
        PROVIDE(_data = .);
        *(.data)
        . = ALIGN(4);
        *(.data.*)
        . = ALIGN(4);
        *(.ramtext)
        . = ALIGN(4);
        PROVIDE(_edata = .);
    } > ram AT > flash