【发布时间】:2023-03-16 02:15:02
【问题描述】:
我的问题很简单。有没有办法将 cmets 添加到链接器脚本?例如在 makefile 中:
# Comment
【问题讨论】:
标签: linker-scripts
我的问题很简单。有没有办法将 cmets 添加到链接器脚本?例如在 makefile 中:
# Comment
【问题讨论】:
标签: linker-scripts
您可以在链接器脚本中包含 cmets,就像在 C 中一样,由 '/*' 和 '*/' 分隔。与 C 中一样,cmets 在语法上等同于空格。
直接来自文档: https://sourceware.org/binutils/docs-2.25/ld/Script-Format.html#Script-Format
【讨论】: