Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Alignment in Scatter File
Jump...
Cancel
Locked
Locked
Replies
5 replies
Subscribers
118 subscribers
Views
5465 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Alignment in Scatter File
Nandhini Manoharan
over 12 years ago
Note: This was originally posted on 1st July 2010 at
http://forums.arm.com
Hi,
I am currently working in an ARM RVCT 2.2 compatible environment.
I want to align some execution region to section aligned addresses i.e., 0x100000 aligned boundary.
For Example:
Consider the below:
Section1 0x62450000 0x400
{
abc.o (+RO)
}
Section2 +0
{
}
Suppose abc.o occupies only 0x100, then Section2 will start from 0x62450100.
But i want to Section2 to start only from 0x62500000.
I had tried using .align as follows:
Section2 +0
{
.ALIGN(0x100000)
}
and
Section2 +0
{
. = ALIGN(0x100000)
}
But both these options were compilable but there was no end result.
Can someone give me some suggestions on this?
Thanks!
Nandhini Manoharan
over 12 years ago
Note: This was originally posted on 30th July 2010 at
http://forums.arm.com
If i add this option, i am getting the below error:
Error: C0000U: Unrecognized option '--no_legacy_align'.
How can i resolve this error?
I am using RVCT 2.2 build 349.
Cancel
Vote up
0
Vote down
Cancel
Nandhini Manoharan
over 12 years ago
Note: This was originally posted on 2nd August 2010 at
http://forums.arm.com
I am getting similar error for this option too..
[Error: C0000U: Unrecognized option '--no_legacyalign'.
Cancel
Vote up
0
Vote down
Cancel
Peter Harris
over 12 years ago
Note: This was originally posted on 31st July 2010 at
http://forums.arm.com
Error: C0000U: Unrecognized option '--no_legacy_align'.
Try --no_legacyalign
Searching the manuals is your friend (See [url="
http://infocenter.arm.com
"]
http://infocenter.arm.com[/url]
for electronic copies)/
Iso
Cancel
Vote up
0
Vote down
Cancel
Peter Harris
over 12 years ago
Note: This was originally posted on 1st July 2010 at
http://forums.arm.com
You have to distinguish between load alignment when executing and store alignment in the binary - by default the system assumes that there is a scatter-loader run before the program runs, so the linker will output sections in a packed form.
This isn't always true - so specify the --no_legacy_align option to force binary alignment - at the expense of larger rom size because you get padding between sections. Do you have a scatter loader?
Cancel
Vote up
0
Vote down
Cancel
Abhinav Varma
over 12 years ago
Note: This was originally posted on 8th September 2010 at
http://forums.arm.com
hey iso,
I have a linker (LD) script and need to convert that to a scatter file. I need to enforce align 2 for a section. How can I do that in a scatter file. The current alignment shows 4 bytes alignment.
I am using RVDS 4.0 for Cortex M3 on a Win XP system with cygwin environment.
Thanks and Regards
Abhinav Varma
Cancel
Vote up
0
Vote down
Cancel