[LinkerScript.15] SECTION命令: Output Section Name

The name of the output section is sectionsection 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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值