[llvm] r204703 - WinCOFF: Add support for -fdata-sections
david.majnemer at gmail.com
Tue Mar 25 09:30:06 PDT 2014
Thinking about this some more, we are ok if t gets renamed so log as it
gets into the symbol table. Internal symbols don't get symbol table
On Tuesday, March 25, 2014, Rafael Espíndola <rafael.espindola at gmail.com>
> > Author: majnemer
> > Date: Tue Mar 25 01:14:26 2014
> > New Revision: 204703
> > URL: http://llvm.org/viewvc/llvm-project?rev=204703&view=rev
> > Log:
> > WinCOFF: Add support for -fdata-sections
> > This is a pretty straight forward translation for COFF, we just need to
> > stick the data in a COMDAT section marked as
> > IMAGE_COMDAT_SELECT_NODUPLICATES.
> > N.B. We must be careful to avoid sticking entities with private linkage
> > in COMDAT groups. COFF is pretty hostile to the renaming of entities so
> > we must be careful to disallow GlobalVariables with unstable names.
> Internal linkage can also be renamed. We do it in lib/Linker when
> combining two files with different symbols with internal linkage.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits