This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: eCos linking question
Andrew Lunn wrote:
So .data and .bss get addresses from the internal RAM.. but I don't
get why, they should get addresses from ROM, following
.gcc_except_table. According to the startup assembly code, these
sections should then get copied into ram at startup.
I know I need to use the internal ram too, since the exception vectors
(.rom_vectors and .fixed_vectors) need to start at address 0x0.
I think it should be possible to run code from my external flash or am
I mistaken?
Any suggestions would be greatly appreciated.
Make sure you install/lib/target.ld is up to date. I think the
dependencies are broken, so it does not get remade when you change the
.ldi files etc.
Also, give the .ld file a good look - it's saved as the result of
the preprocessing, so all of your macros should have been expanded.
This way you can see if it really looks like you think it should.
--
------------------------------------------------------------
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