【问题标题】:Difference between *(.text) and *(.text*) in linker scripts链接描述文件中 *(.text) 和 *(.text*) 之间的区别
【发布时间】:2019-09-05 09:44:22
【问题描述】:

在链接器脚本中,*(.text) 表示所有输入文件中的所有文本部分,但 *(.text*) 究竟是什么意思?我在 GNU 链接器文档中找不到它。提前致谢。

【问题讨论】:

    标签: compilation linker


    【解决方案1】:

    我相信这个问题的答案和这个问题的答案是一样的:

    Difference between *(.data), *(.data*) and *(.data.*) in linker script


    * 符号是通配符模式,它将匹配任何文件名。

    *(.text) 将匹配任何后缀为“.text”的文件,*(.text*) 将匹配任何名称中包含“.text”的文件。

    通配符文档:https://sourceware.org/binutils/docs-2.27/ld/Input-Section-Wildcards.html#Input-Section-Wildcards

    【讨论】:

      猜你喜欢
      • 2017-04-08
      • 2016-09-17
      • 2016-05-31
      • 1970-01-01
      • 2014-10-09
      • 1970-01-01
      • 2018-07-11
      • 2023-03-07
      • 2015-01-25
      相关资源
      最近更新 更多