view loadagent/loadagent.lds @ 2:ddda170fa6f4

loadagent.elf compiled and linked, no printf yet
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 29 Apr 2013 05:21:05 +0000
parents
children
line wrap: on
line source

OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_entry)
SECTIONS
{
    /* code */
    . = 0x800750;
    .text : {
        /* regular code */
        *(.text*)
        /* gcc voodoo */
        *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
        . = ALIGN(4);
    }

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

    /* initialized data */
    . = ALIGN(4);
    .data : {
        *(.data)
    }
    PROVIDE(edata = .);

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

/* a few absolute definitions */
rom_vars = 0x800518;
stack_bottom = 0x83FFFC;