Hey folks,
I am hoping somebody may be able to help me out with a couple of questions in regards to byte alignment for bss and data via palign.
1. I have the following in my linker command file:
.data : palign(4), fill = 0xffffffff {} > DDR_MEM
.bss : palign(4), fill = 0xffffffff {} > DDR_MEM
Whilst this does work in giving me 4 byte alignment for the sections, for some reason there is a large hole at the end of bss, but not at the end of data:
bss: 80b6cc20 000033e0 --HOLE--
data: 80be1655 00000003 --HOLE--
Does anybody have an idea on why this is occurring?
2. I am trying to group bss, data, and a couple of other sections at the top of RAM by defining them in a group.
Is it possible to make use of the palign within a group block? I tried using the same syntax as above within the group block but received an error:
warning #10087-D: LOAD placement ignored for ".data": object is placed as part of "GROUP_2"
warning #10087-D: LOAD placement ignored for ".bss": object is placed as part of "GROUP_2"