What is the 'linkonce' section

What is the 'linkonce' section, and for added pleasure, how does it differ from the comdat section?

To be clear, I am familiar with how comdat sections work, how they are used, etc. In googling, linkonce is almost exclusively discussed in forums where he suggested that the meaning / intent / purpose of this section is already fairly well understood.

+5
source share
1 answer

http://gcc.gnu.org/ml/gcc/2003-09/msg00984.html seems to discuss this very thing ...

change

Summarizing:

COMDAT , / , COMDAT. g++ linkonce - // .

COMDAT, MSV++ Wind River 'diab', COMDAT ; , main.cpp foo.cpp, main COMDAT foo.o strong > , .

, g++, .

+4

All Articles