This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: v850-stub with ecos ?
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: "Mauler Karsten (FV/SLM) *" <Karsten dot Mauler at de dot bosch dot com>
- Cc: eCos Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 06 Feb 2002 19:08:02 +0000
- Subject: Re: [ECOS] v850-stub with ecos ?
- Organization: Red Hat UK Ltd.
- References: <55CB9FEAE87DD411A83200508BDF0DFE0107E188@himail8.hi.de.bosch.com>
"Mauler Karsten (FV/SLM) *" wrote:
>
> Hi,
>
> thx for your fast reply.
>
> > "v850-elf-objdump -h" of the ELF executable you will see that
> > although the
> > VMA of some of the sections is at 0xfc0000, the LMA (load
> > address) should
> > still be in ROM (or FLASH) addrs. The only exception is BSS,
> > and you never
> > load that - it won't be marked with the LOAD flag.
>
> It looks like it will be. I have done a v850-elf-objektdump -h on the file
> gdb_module.img and this ist the output.
>
> gdb_module.img: file format elf32-v850
>
> Sections:
> Idx Name Size VMA LMA File off Algn
> 0 .rom_vectors 00000340 00000000 00000000 00001000 2**0
> CONTENTS, ALLOC, LOAD, READONLY, CODE
> 1 .text 00005392 00000340 00000340 00001340 2**2
> CONTENTS, ALLOC, LOAD, READONLY, CODE
> 2 .fini 00000000 000056d4 000056d4 00007e20 2**0
> CONTENTS
> 3 .rodata 00000390 000056d4 000056d4 000066d4 2**2
> CONTENTS, ALLOC, LOAD, READONLY, DATA
> 4 .rodata1 00000000 00005a64 00005a64 00007e20 2**0
> CONTENTS
> 5 .fixup 00000000 00005a64 00005a64 00007e20 2**0
> CONTENTS
> 6 .gcc_except_table 00000000 00005a64 00005a64 00007e20 2**0
> CONTENTS
> 7 .ram_vectors 00000540 00180000 00005a64 00007000 2**6
> CONTENTS, ALLOC, LOAD, CODE
> 8 .data 000008e0 00180540 00005fa4 00007540 2**3
> CONTENTS, ALLOC, LOAD, DATA
> 9 .bss 00001ab8 00180e20 00180e20 00007e20 2**2
> ALLOC
> 10 .stab 000154f8 00000000 00000000 00007e20 2**2
> CONTENTS, READONLY, DEBUGGING
> 11 .stabstr 0000d10a 000154f8 000154f8 0001d318 2**0
> CONTENTS, READONLY, DEBUGGING
>
> Note, that i used a copy of the CEB Board package. I changed only the
> relevant Flash/ROM sizes/adresses. I tried although the plain CEB Board
> package and the .data and .ram_vectors are marked LOAD there too.
> I used the Template/CEB - package stubs with additional option to build for
> flash and the v850 variant SB1.
>
> Where can i have influence on what is marked to LOAD ?
Why do you want to change it? It looks correct right now to me! All the
LMAs (other than .bss as discussed) are flash addresses.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine