This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: --entry= (slightly off topic)


> -----Original Message-----
> From: Trenton D. Adams [mailto:tadams@theone.dnsalias.com]
> Subject: [ECOS] --entry= (slightly off topic)
> 
> However, it ends up like this.
> 00008000 <Prepare_To_Flash-0xc>:
>     8000:       e3a0d201        mov     sp, #268435456  ; 0x10000000
>     8004:       e38ddc96        orr     sp, sp, #38400  ; 0x9600
>     8008:       ebffffff        bl      800c <Prepare_To_Flash>
> 
> 8000 is the default entry point, and that's not what I want.  I want
> 0x00000000.

Maybe what you want is to use a linker script. Use :  -Ttarget.ld 

arm-elf-gcc.exe -Ttarget.ld -nostdlib -nostartfiles -O1 -Wl,--entry=0x0
stack_manager.s bootcode-J3-rev4.c

Where target.ld is a linker script such as the one providd by eCos hal.

  Fabrice


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]