The name of the output section is section. section must meet the constraints of your output format. In formats which only support a limited number of sections, such as a.out
, the name must be one of the names supported by the format (a.out
, for example, allows only ‘.text’, ‘.data’ or ‘.bss’). If the output format supports any number of sections, but with numbers and not names (as is the case for Oasys), the name should be supplied as a quoted numeric string. A section name may consist of any sequence of characters, but a name which contains any unusual characters such as commas must be quoted.
The output section name ‘/DISCARD/’ is special; Output Section Discarding.
输出section的名称是section. section必须符合你输出格式的规范. 在仅支持有限个sections的格式中,比如a.out,它的名称必须是由该格式所支持的名称之一(比如a.out, 仅允许'.text','.data',或'.bss'作为名称). 如果输出格中式支持任何sections,但是在带有数字和非名称(如Oasys的情况)的名称中,则应该加上引号. 一个section名称可由任何一些有序字符组成,但是名称包含了任何象逗号一样的非常规的字符,就必须用引号.
输出section名称 '/DISCARD/'是特殊的; Output Section Discarding.