Load$$ execution region symbols

6.3.3 Load$$ execution region symbols

The linker generates Load$$ symbols for every execution region present in the image.

Note

Load$$region_name symbols apply only to execution regions.  Load$$LR$$load_region_name symbols apply only to load regions.
The following table shows the symbols that the linker generates for every  Load$$ execution region present in the image. All the symbols refer to load addresses after the C library is initialized.

Table 6-2 Load$$ execution region symbols

SymbolDescription
Load$$region_name$$BaseLoad address of the region.
Load$$region_name$$LengthRegion length in bytes.
Load$$region_name$$LimitAddress of the byte beyond the end of the execution region.
Load$$region_name$$RO$$BaseAddress of the RO output section in this execution region.
Load$$region_name$$RO$$LengthLength of the RO output section in bytes.
Load$$region_name$$RO$$LimitAddress of the byte beyond the end of the RO output section in the execution region.
Load$$region_name$$RW$$BaseAddress of the RW output section in this execution region.
Load$$region_name$$RW$$LengthLength of the RW output section in bytes.
Load$$region_name$$RW$$LimitAddress of the byte beyond the end of the RW output section in the execution region.
Load$$region_name$$XO$$BaseAddress of the XO output section in this execution region.
Load$$region_name$$XO$$LengthLength of the XO output section in bytes.
Load$$region_name$$XO$$LimitAddress of the byte beyond the end of the XO output section in the execution region.
Load$$region_name$$ZI$$BaseLoad address of the ZI output section in this execution region.
Load$$region_name$$ZI$$Length
Load length of the ZI output section in bytes.
The Load Length of ZI is zero unless  region_name has the  ZEROPADscatter-loading keyword set. If  ZEROPAD is set then:
Load Length =  Image$$region_name$$ZI$$Length
Load$$region_name$$ZI$$LimitLoad address of the byte beyond the end of the ZI output section in the execution region.
All symbols in this table refer to load addresses before the C library is initialized. Be aware of the following:
  • The symbols are absolute because section-relative symbols can only have execution addresses.
  • The symbols take into account RW compression.
  • References to linker-defined symbols from RW compressed execution regions must be to symbols that are resolvable before RW compression is applied.
  • If the linker detects a relocation from an RW-compressed region to a linker-defined symbol that depends on RW compression, then the linker disables compression for that region.
  • Any zero-initialized data that is written to the file is taken into account by the Limit and Length values. Zero-initialized data is written into the file when the  ZEROPAD scatter-loading keyword is used

 

    原文: http://www.keil.com/support/man/docs/armlink/armlink_pge1362065953229.htm

转载于:https://www.cnblogs.com/hwl1023/p/5242804.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值