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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Mar 25 05:58:53 PDT 2014

On 25 March 2014 02:14, David Majnemer <david.majnemer at gmail.com> 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
> 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.


More information about the llvm-commits mailing list