[LLVMdev] AsmPrinter::EmitLinkage

Anton Korobeynikov anton at korobeynikov.info
Tue May 11 02:03:40 PDT 2010


> I think it emits valid output, but I don't think it handles weak symbols
> correctly, as COFF supports true weak symbols, but this code appears to turn
> them into a linkonce section which is not quite the same thing.
Yes. This was intentional, since:
1. At the time of writing the code binutils did not support weak stuff
2. It was my feeling, that weak (especially external weak stuff) on
COFF differs in some details from e.g. weak on MachO/ELF. I might be
wrong, however...

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list