add the most expedient hack to fix PR4619, along with a testcase.
Thanks to Rafael for the great example.

llvm-svn: 77083
diff --git a/llvm/lib/Target/TargetAsmInfo.cpp b/llvm/lib/Target/TargetAsmInfo.cpp
index 3edbe93..727c584 100644
--- a/llvm/lib/Target/TargetAsmInfo.cpp
+++ b/llvm/lib/Target/TargetAsmInfo.cpp
@@ -326,6 +326,11 @@
 
       // FIXME: Use mangler interface (PR4584).
       std::string Name = Prefix+GV->getNameStr();
+      
+      // Pick up the flags for the uniquing section.
+      // FIXME: HACK.
+      Flags |= getFlagsForNamedSection(Name.c_str());
+
       return getNamedSection(Name.c_str(), Flags);
     }
   }