Specifiying memory layout

Shaun Jackman sjackman@telus.net
Wed Jun 9 20:28:00 GMT 2004


I'm linking an executable for an embedded system with 1 MB of memory 
starting at 0x02000000. I understand the following is the one line of 
a linker script that would have the desired effect.

MEMORY {	ram : ORIGIN = 0x02000000, LENGTH = 1024k }

Can I use this line on it's own as a one line linker script? Should I 
tack this line onto the end of gcc's armelf.x and use the resulting 
linker script?

If I can avoid using a linker script at all, that'd be good too! Can I 
specify these parameters on the command line?

Please cc me in your reply. Thanks,
Shaun



More information about the Binutils mailing list