0

Bugfix for LM3S811 port

There is a bug in the linker script provided for the LM3S811 demo.

SECTIONS
{
    .text :
    {
        KEEP(*(.isr_vector))
        *(.text)
        *(.rodata*)
        _etext = .;
    } > FLASH

    .data : AT (ADDR(.text) + SIZEOF(.text))
    {
        _data = .;
        *(vtable)
        *(.data)
        _edata = .;
    } > SRAM

    .bss :
    {
        _bss = .;
        *(.bss)
        *(COMMON)
        _ebss = .;
    } > SRAM

The text section placement is wrong - it should be *(.text*).

Attached is the corrected version tested with gcc 4.9.3.




standalone.ld

2 comments

Please sign in to leave a comment.