[小知识] gnu.linkonce.xxxx

同事看了我之前的ld脚本,问这个*(.gnu.linkonce.t.*) 是干啥的,可以拿掉吗?

说实话只知道这类输入段在我们系统中是没用的,拿掉没问题,但具体讲不明白其功能作用。

我们的soc使用Freertos,这是前提。然后去网上搜了一下相关资料,这里做个记录。

 

https://www.oreilly.com/library/view/mastering-assembly-programming/9781787287488/0cebebcf-1089-4933-ba0e-9078b154c156.xhtml

.gnu.linkonce.this_module

There's nothing special to say here. This section contains only one structure--this_module, which is mostly filled with zeroes (as it is used by the LKM loader internally) except three fields:

  • Name of the module
  • A pointer to the initialization procedure--module_init
  • A pointer to the de-initialization procedure--module_cleanup

首先,这是个模块说明的结构体,用于LKM中,包括了模块名字、初始化和卸载的指针。

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值