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)


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


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