【问题标题】:Is there a way to add comments to a linker script?有没有办法向链接器脚本添加注释?
【发布时间】:2023-03-16 02:15:02
【问题描述】:

我的问题很简单。有没有办法将 cmets 添加到链接器脚本?例如在 makefile 中:

# Comment

【问题讨论】:

    标签: linker-scripts


    【解决方案1】:

    您可以在链接器脚本中包含 cmets,就像在 C 中一样,由 '/*''*/' 分隔。与 C 中一样,cmets 在语法上等同于空格。

    直接来自文档: https://sourceware.org/binutils/docs-2.25/ld/Script-Format.html#Script-Format

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-11
      • 2012-10-06
      • 1970-01-01
      • 1970-01-01
      • 2016-12-11
      • 2010-11-20
      • 2011-01-11
      相关资源
      最近更新 更多