This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

Re: problem with data-section


Per-Erik Johansson wrote:
> Hi
> 
> Im trying to get redboot working on a MPC5554 board, Im having some
> trouble with the "copy data from rom to ram" in vectors.S
> In all the .ldi files I have looked at the data-section is put in ram(?)
> but still FOLLOWING the .gcc_except_table that is put in rom
> 
>> SECTION_data           (ram, ALIGN (0x10), FOLLOWING (.gcc_except_table))
> 
> I guess this is some nice feature that would enable the data section to be
> put in ROM but still be maped as it should be in ram.
> But right now my "__rom_data_start" is at the end of the things that that
> gets flashed to rom, with only 0xFF's after.
> 
> So when vectors.s starts to copy what is supposed to be data it just fills
> the ram with F's.
> 
> If I look at the map from the linker I get that the data-section is in
> ram, and the "__rom_data_start" is in the .fixup-section
> 
> Any ideas what could be wrong?
> (I post my ldi file at the bottom, hope thats ok.)

This file looks pretty much like what we use on all other PowerPC
platforms, so it's probably right.

How do you get the data into the ROM/FLASH?  Perhaps that tool
doesn't handle the ELF sections properly.  I *have* seen this
and switching to programming the FLASH from an S-record dump
of the image seems to help (since this takes away all interpretation
of the ELF file and only presents bytes...)

Try it - if it doesn't help, send the output of 'powerpc-eabi-objdump -h <file>'
Maybe we can see if the linker did something strange.


-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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