据我所知,我已阅读链接器文档中有5种输出节类型:NOLOAD, DSECT, COPY, INFO, OVERLAY
但只解释了其中的2种:NOLOAD和OVERLAY。 COPY
,INFO
和DSECT
没有在互联网上解释,我可以看到相同的解释2和3没有一个字。任何人都会非常友好地解释DSECT
,COPY
和INFO
对输出部分的确切变化?
答案 0 :(得分:1)
来自官方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