https://sourceware.org/bugzilla/show_bug.cgi?id=33431
Zheng Bao <fishbaoz at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fishbaoz at hotmail dot com
--- Comment #1 from Zheng Bao <fishbaoz at hotmail dot com> ---
https://sourceware.org/binutils/docs/ld/Output-Section-Description.html
section [address] [(type)] :
[AT(lma)]
[ALIGN(section_align) | ALIGN_WITH_INPUT]
[SUBALIGN(subsection_align)]
[constraint]
{
output-section-command
output-section-command
...
} [>region] [AT>lma_region] [:phdr :phdr ...] [=fillexp] [,]
https://sourceware.org/binutils/docs/ld/Output-Section-Address.html
"The address is an expression for the VMA (the virtual memory address) of the
output section. This address is optional, but if it is provided then the
output
address will be set exactly as specified."
According to the above statement, the "address" before the colon, EXACTLY
SPECIFIED the output of address of the defined section.
.text ALIGN(0x10) : { *(.text) }
is exactly like
.text . : { *(.text) }
So I assume it is intended.
To implement the ALIGN attribute, we can put the ALIGN after the colon,
.text : ALIGN(0x10) { *(.text) }
Here the ALIGN is an attribute which the section has.
--
You are receiving this mail because:
You are on the CC list for the bug.