[ELF] Add .gnu.linkonce support.
Audit RequiredrL230194

Description

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

This patch adds gnu.linkonce functionality to the ELFReader.

Details

Auditors
Bigcheese
Committed
shankareFeb 22 2015, 4:04 PM
Parents
rL230193: AsmParser: Call instructions can't have an alignment
Branches
Unknown
Tags
Unknown