[PATCH] Allow multiple coff sections with the name but different comdat symbols

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Nov 17 13:26:29 PST 2013

On 17 November 2013 16:15, Anton Korobeynikov <anton at korobeynikov.info> wrote:
>>>   I noticed gcc does what we do currently, it emits sections like:
>>>           .section .text$_Z3foov,"x"
>>>           .linkonce discard
>> I don't know where this came from. A possible guess is that some older
>> MSVC used to do this. Another is that it is just a way to work around
>> a limitation in the gas syntax.
> No. This is how binutils implements all this stuff. While changing
> here make sure you won't break assembling / linking with binutils.

We still support using the binutils syntax and logic (the tests for
that are unchanged). This only extends the .section syntax so that it
is possible to declare two sections with the same name but with
different comdat symbols.


More information about the llvm-commits mailing list