Hello. I remember that it was discussed here one time, but I want to ask this question one time more. So, is there a possibility to generate COMDAT sections in fasm source?
I have for example one asm file with many functions inside it; it is compiled as COFF and linked with VS2017 project. The problem is that I want Visual Studio to remove all unused functions.
I tried to put each function into separate section called .text$xyz (each section with it's own different name). Then I added COMDAT attribute to each function using hex editor. And VS failed to build that with following error:
fatal error LNK1162: expected aux symbol for COMDAT section 0x1
So, I am missing auxiliary symbols I guess. How to force FASM generate these symbols and have real COMDATs? Maybe I have to use third-party software, I will be happy to know which software I should use.