diff options
author | Shankar Easwaran <shankarke@gmail.com> | 2014-04-01 03:49:55 +0000 |
---|---|---|
committer | Shankar Easwaran <shankarke@gmail.com> | 2014-04-01 03:49:55 +0000 |
commit | 9316c40a1bc6e782c9549b6f158ec3a49e947acc (patch) | |
tree | 302db0042addafeaf940e004108f22cd35e7ecf6 /lld/lib/Core/DefinedAtom.cpp | |
parent | d09ba23fafcff122eaee90886345d1088936f408 (diff) | |
download | bcm5719-llvm-9316c40a1bc6e782c9549b6f158ec3a49e947acc.tar.gz bcm5719-llvm-9316c40a1bc6e782c9549b6f158ec3a49e947acc.zip |
[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
llvm-svn: 205280
Diffstat (limited to 'lld/lib/Core/DefinedAtom.cpp')
-rw-r--r-- | lld/lib/Core/DefinedAtom.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/lib/Core/DefinedAtom.cpp b/lld/lib/Core/DefinedAtom.cpp index 8362aadb21c..806bd6f4521 100644 --- a/lld/lib/Core/DefinedAtom.cpp +++ b/lld/lib/Core/DefinedAtom.cpp @@ -72,6 +72,7 @@ DefinedAtom::ContentPermissions DefinedAtom::permissions(ContentType type) { return permRW_L; case typeGroupComdat: + case typeGnuLinkOnce: case typeUnknown: case typeTempLTO: return permUnknown; |