据我所知并且我在链接器文档中阅读过,有 5 种输出节类型:NOLOAD, DSECT, COPY, INFO, OVERLAY
但只解释了其中的 2 种:NOLOAD 和 OVERLAY。COPY
,INFO
并且DSECT
没有解释,在互联网上的任何地方我都可以看到相同的 2 解释和 3 一言不发。任何人都会很好地解释输出部分DSECT
的内容COPY
和INFO
确切的变化?
问问题
519 次
1 回答
2
来自官方 GNU ld 文档(可以通过 轻松找到info ld
):
DSECT
COPY
INFO
OVERLAY
These type names are supported for backward compatibility, and are
rarely used. They all have the same effect: the section should be
marked as not allocatable, so that no memory is allocated for the
section when the program is run
于 2015-04-18T06:06:57.510 回答