- 论坛徽章:
- 20
|
本帖最后由 nswcfd 于 2016-08-16 16:16 编辑
- 3.6.1 Output Section Description
- --------------------------------
- The full description of an output section looks like this:
- SECTION [ADDRESS] [(TYPE)] :
- [AT(LMA)]
- [ALIGN(SECTION_ALIGN)]
- [SUBALIGN(SUBSECTION_ALIGN)]
- [CONSTRAINT]
- {
- OUTPUT-SECTION-COMMAND
- OUTPUT-SECTION-COMMAND
- ...
- } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP]
- Most output sections do not use most of the optional section
- attributes.
- The whitespace around SECTION is required, so that the section name
- is unambiguous. The colon and the curly braces are also required. The
- line breaks and other white space are optional.
- Each OUTPUT-SECTION-COMMAND may be one of the following:
- * a symbol assignment (*note Assignments::)
- * an input section description (*note Input Section::)
- * data values to include directly (*note Output Section Data::)
- * a special output section keyword (*note Output Section Keywords::)
复制代码 看起来像是ADDRESS- 3.6.3 Output Section Address
- ----------------------------
- The ADDRESS is an expression for the VMA (the virtual memory address)
- of the output section. If you do not provide ADDRESS, the linker will
- set it based on REGION if present, or otherwise based on the current
- value of the location counter.
- If you provide ADDRESS, the address of the output section will be
- set to precisely that. If you provide neither ADDRESS nor REGION, then
- the address of the output section will be set to the current value of
- the location counter aligned to the alignment requirements of the
- output section. The alignment requirement of the output section is the
- strictest alignment of any input section contained within the output
- section.
复制代码 |
|