Does anyone know what ". = ALIGN (0x2)" means in a map file?
Whatever it is, it always seems to have a size of 0, so I doubt it does anything important.
Thanks
>J
Map File . = ALIGN (0x2)
Map File . = ALIGN (0x2)
Lerc wrote:I intend to use my powerful skills of procrastination to ensure that when I get to making things, the chips will be available.
Re: Map File . = ALIGN (0x2)
". = ALIGN(2)" means: current address (the dot ".") receives the current address aligned in two bytes.Jhysaun wrote:Does anyone know what ". = ALIGN (0x2)" means in a map file?
Whatever it is, it always seems to have a size of 0, so I doubt it does anything important.
Thanks
>J
If it is reporting zero, good, the address is already aligned, there is no problem.
Normally is used when you really need make sure some block of your code/data will be aligned. It is used too for performance issues (like match with the cache line).
I was compiling some ARM code and added the align to make a example for you:
Code: Select all
.bss 0x20000038 0x0 build/queue.o
0x2000003a . = ALIGN (0xa)
*fill* 0x20000038 0x2 00
-Filipe Rinaldi
Re: Map File . = ALIGN (0x2)
Thanks Filipe =D
>J
>J
Lerc wrote:I intend to use my powerful skills of procrastination to ensure that when I get to making things, the chips will be available.