Hi Compiler team,
in SPN118L (June 2013), page 212 (Section 8.5.4.2.5):
The fill value specified in the linker command file is interpreted as a 16-bit constant. If you specify this code:
.mytext: palign(8), fill = 0xff {} > PMEM
The fill value assumed by the linker is 0x00ff, and .mytext will then have the following contents:
addr content
---- -------
0000 0x1234
0002 0x1234
0004 0x1234
0006 0xffff
0008 0x00ff
000a 0x00ff
why .mytext occupies 12 byte after padding? the section size is not a multiple of 8. I expect that the result should be
addr content
---- -------
0000 0x1234
0002 0x1234
0004 0x1234
0006 0x00ff
.mytext occupies 8 bytes and its size is a multiple of 8 as described in the the frist section of 8.5.4.2.5 on page 211.
Is is a typo or I have misundertood palign()?
Thank you!
Best regards,
Libo