Gnu链接器 - 输出节类型

时间:2015-03-17 23:46:52

标签: linker-scripts

据我所知,我已阅读链接器文档中有5种输出节类型:NOLOAD, DSECT, COPY, INFO, OVERLAY但只解释了其中的2种:NOLOAD和OVERLAY。 COPYINFODSECT没有在互联网上解释,我可以看到相同的解释2和3没有一个字。任何人都会非常友好地解释DSECTCOPYINFO对输出部分的确切变化?

1 个答案:

答案 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