This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: --entry= (slightly off topic)
- To: "'Trenton D. Adams'" <tadams at theone dot dnsalias dot com>, 'eCos Discussion' <ecos-discuss at sourceware dot cygnus dot com>
- Subject: RE: [ECOS] --entry= (slightly off topic)
- From: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- Date: Thu, 20 Sep 2001 15:31:27 -0700
> -----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