[core] support .gnu.linkonce sections

Press ? to show keyboard shortcuts.
Auditors
Bigcheese
H2 lld Triggered Audit
Committed
shankareMar 31 2014, 8:49 PM
Parents
rL205279: LTO type uniquing: store the Decl field of a DIImportedEntity as a DIRef.
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

[core] support .gnu.linkonce sections

.gnu.linkonce sections are similar to section groups.

They were supported before section groups existed and provided a way
to resolve COMDAT sections using a different design.

There are few implementations that use .gnu.linkonce sections
to store simple floating point constants which doesnot require complex section
group support but need a way to store only one copy of the floating point
constant in a binary.

.gnu.linkonce based symbol resolution achieves that.

Review : http://llvm-reviews.chandlerc.com/D3242

rL205280

lld/trunk/include/lld/Core/DefinedAtom.h

Loading...

lld/trunk/include/lld/Core/Resolver.h

Loading...

lld/trunk/lib/Core/DefinedAtom.cpp

Loading...

lld/trunk/lib/Core/Resolver.cpp

Loading...

lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp

Loading...

lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp

Loading...

lld/trunk/test/core/gnulinkonce-rearrange-resolve.objtxt

Loading...

lld/trunk/test/core/gnulinkonce-remaining-undef.objtxt

Loading...

lld/trunk/test/core/gnulinkonce-resolve.objtxt

Loading...

lld/trunk/test/core/gnulinkonce-simple.objtxt

Loading...

lld/trunk/test/core/sectiongroup-gnulinkonce-error.objtxt

Loading...

Add Comment