Share

GNU ARM Eclipse Plug-in

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Problem with generated makefile

You are viewing a single message from this topic. View all messages.

  1. 2009-05-16 14:30:12 UTC
    Okay Liviu, then I could use a hand in doing so.

    The startup file is as-is in the James Lynch´s demo. So is the linker script. I´ll paste a little of them here for comfort below.
    My output listing shows that the startup is part of the text section, how could I make it into another section so I can control where it´s loaded? Or maybe a subsection in .text?
    Thanks for the help!

    Regards,
    Alex

    SECTIONS
    {
    . = 0; /* set location counter to address zero */

    startup : { *(.startup)} >flash /* the startup code goes into FLASH */

    .text : /* collect all sections that should go into FLASH after startup */
    {
    *(.text) /* all .text sections (code) */
    *(.rodata) /* all .rodata sections (constants, strings, etc.) */
    *(.rodata*) /* all .rodata* sections (constants, strings, etc.) */
    *(.glue_7) /* all .glue_7 sections (no idea what these are) */
    *(.glue_7t) /* all .glue_7t sections (no idea what these are) */
    _etext = .; /* define a global symbol _etext just after the last code byte */
    } >flash /* put all the above into FLASH */

    ... it follows

    And ...

    .text
    .arm

    .global Reset_Handler
    .global _startup
    .func _startup

    _startup:

    # Exception Vectors

    _vectors: ldr PC, Reset_Addr
    ldr PC, Undef_Addr
    ldr PC, SWI_Addr
    ldr PC, PAbt_Addr
    ldr PC, DAbt_Addr
    nop /* Reserved Vector (holds Philips ISP checksum) */
    ldr PC, [PC,#-0xFF0] /* see page 71 of "Insiders Guide to the Philips ARM7-Based Microcontrollers" by Trevor Martin */
    ldr PC, FIQ_Addr
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.