Hello James,
Wednesday, August 01, 2001, 8:06:26 PM, you wrote:
JB> The only reason for doing this is so if the linker doesnt have somewhere to
JB> put an object, it can have a good guess from what the object and memory
JB> regions are marked as.
isnt everything that the linker doesnt know where to put it placed in
*(COMMON) ?
>> oh and at last.... why do you put AT(0x08000000) for text-section?
>> text-section will be the first thing in the final binary anyway =)
JB> Technically you dont need it... :)
JB> The AT just tells the linker where to put the data in the generated ROM. The
JB> other address is the address of the symbol.
yeah sure i know that... but the linker can get that info from the
memory-region the section is assigned to, no? ie, if you dont want to
force any other section than .text to be placed at the start of your
binary, you dont need the AT.
JB> This is all just so you can have code in ROM but referenced in RAM. It's
JB> then up to you to do relocation...
mmh, ive simply declared another memory-region and section for that,
works fine for me ;) (i have to admit i use most of the wram for data,
not code... and all code placed in valuable wram ist handcoded asm so
much less problems with the linker stuff ;=))
--
Best regards,
groepaz mailto:groepaz@...