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

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!
0