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
5467 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!
Parents
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
Reply
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
Children
No data