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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Nov 17 12:30:48 PST 2013


On 15 November 2013 18:14, Reid Kleckner <rnk at google.com> wrote:
>
>   Nice!
>
>   What do we print for disassembly, or is that forthcoming?

I am not too familiar with the disassembler, but I think we
disassemble only one section, no? At least it doesn't look like we
have any disassembler test that CHECKs for "section".

>   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.

Note that this patch is only for the MC changes. The patch changing
the section names to match what msvc uses will be a followup once this
one is in.

Cheers,
Rafael



More information about the llvm-commits mailing list