This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: --entry= (slightly off topic)
- To: "'Fabrice Gautier'" <Fabrice_Gautier at sdesigns dot com>, "'eCos Discussion'" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: RE: [ECOS] --entry= (slightly off topic)
- From: "Trenton D. Adams" <tadams at theone dot dnsalias dot com>
- Date: Thu, 20 Sep 2001 17:14:24 -0600
I don't want an object in ELF format at the end. I use objcopy to copy
to binary format. This is going to be the boot code that's loaded into
the board for flashing it with RedBoot or something like that.
In this case do I want a linker script? I'm not remapping any memory or
anything like that.
-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Fabrice
Gautier
Sent: Thursday, September 20, 2001 4:31 PM
To: 'Trenton D. Adams'; 'eCos Discussion'
Subject: RE: [ECOS] --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