1

据我所知并且我在链接器文档中阅读过,有 5 种输出节类型:NOLOAD, DSECT, COPY, INFO, OVERLAY但只解释了其中的 2 种:NOLOAD 和 OVERLAY。COPYINFO并且DSECT没有解释,在互联网上的任何地方我都可以看到相同的 2 解释和 3 一言不发。任何人都会很好地解释输出部分DSECT的内容COPYINFO确切的变化?

4

1 回答 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 回答