This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Specifiying memory layout
- From: Shaun Jackman <sjackman at telus dot net>
- To: binutils at sources dot redhat dot com
- Date: Wed, 9 Jun 2004 13:30:13 -0700
- Subject: Specifiying memory layout
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