[lld] r230194 - [ELF] Add .gnu.linkonce support.

Rafael Espíndola rafael.espindola at gmail.com
Mon Feb 23 08:02:11 PST 2015


On 22 February 2015 at 19:04, Shankar Easwaran <shankare at codeaurora.org> wrote:
> Author: shankare
> Date: Sun Feb 22 18:04:49 2015
> New Revision: 230194
>
> URL: http://llvm.org/viewvc/llvm-project?rev=230194&view=rev
> Log:
> [ELF] Add .gnu.linkonce support.
>
> When the GNU linker sees two input sections with the same name, and the name
> starts with ".gnu.linkonce.", the linker will only keep one copy and discard the
> other. Any section whose name starts with “.gnu.linkonce.” is a COMDAT section.
>
> Some architectures like Hexagon use this section to store floating point constants,
> that need be deduped.

Why not use SHF_MERGE sections?

Cheers,
Rafael




More information about the llvm-commits mailing list