view target-utils/flash-boot-test/ld.script @ 561:392525355ee7

loadtools/scripts: gtm900.config renamed to gen4.config It turns out that a GTM900 variant exists with 8 MiB flash, thus -h gen8 needs to be used for GTM900 modules as the general case, and the old -h gtm900 config is best renamed to -h gen4, although not currently official for any actual target.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 30 Jan 2020 07:10:20 +0000
parents dbb54db721d1
children
line wrap: on
line source

ENTRY(_entry)
SECTIONS
{
    /* flash boot */
    .vectors 0 : {
        *(.vectors)
    }

    .magic 0x2000 : {
        *(.magic)
    }

    /* main code */
    .text 0x4000 : {
        /* regular code */
        *(.text*)
        /* gcc voodoo */
        *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
        . = ALIGN(4);
    }

    /* read-only data */
    . = ALIGN(4);
    .rodata : {
        *(.rodata*)
    }

    /* cannot have any initialized data */
    /DISCARD/ : {
        *(.data)
    }

    /* uninitialized data */
    .bss 0x83C000 (NOLOAD) : {
        . = ALIGN(4);
        __bss_start = .;
        *(.bss)
    }
    . = ALIGN(4);
    __bss_end = .;
    /* end of image */
    _end = .;
    PROVIDE(end = .);
}

stack_bottom = 0x83FFFC;