[llvm] r204703 - WinCOFF: Add support for -fdata-sections

David Majnemer 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
entries.

On Tuesday, March 25, 2014, Rafael EspĂ­ndola <rafael.espindola at gmail.com>
wrote:

> On 25 March 2014 02:14, David Majnemer <david.majnemer at gmail.com<javascript:;>>
> wrote:
> > 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.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140325/d21cd8ae/attachment.html>


More information about the llvm-commits mailing list