linker ld script

Nov 03, 2005 0 Replies

Hi Can anyone help me with Linker LD script memory allocation I need to write a embedded bootloader



The bootloader should be placed i ROM at 0xa000 and above . The code should include some function foo1()... foo10(). and main() and crt0



The CPU starts at 0x0000 where it should be vector which should point to crt0 (rom version) .After boot process . The bootloader wil copy its Ram based program ( runing in RAM) from external device (Rs232) .



The Memory is mapped as



000-0x50 Hardware vectors (prom)
0x52---0x1ffe Program RAM Where the sshould be copied from external device
2000-3000 Ram ( ram , heap , stack)
0xa000-0xc000 ROM (bootloader)

How should I write a LD script file for both Rom and Ram based version



With regards George Arndt


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required