As of SVN r334523, eligible constants are put in COMDAT sections in COFF on ARM64 Windows. We need to create an appropriate COMDAT symbol, just as on X86. Otherwise, the MS linker complains with something like
fatal error LNK1143: invalid or corrupt file: no symbol for COMDAT section 0x4
and the dumpbin output shows that there is no COMDAT symbol in the section
SECTION HEADER #4
.rdata name 0 physical address 0 virtual address 8 size of raw data 6EA0 file pointer to raw data (00006EA0 to 00006EA7) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers
40401040 flags
Initialized Data COMDAT (no symbol) 8 byte align Read Only
RAW DATA #4
00000000: .......
This new file shouldn't have executable mode