[OpenMP] Don't manually strip sections in the linker wrapper
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 13 Apr 2022 17:43:47 +0000 (13:43 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Sat, 16 Apr 2022 00:35:25 +0000 (20:35 -0400)
Summary:
The changes in D122987 ensures that the offloading sections always have
the SHF_EXCLUDE flag. This means that we do not need to manually strip
these sections for ELF or COFF targets.

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

index 2dc93ae..a11174b 100644 (file)
@@ -65,7 +65,7 @@ static cl::OptionCategory
 static cl::opt<bool> StripSections(
     "strip-sections", cl::ZeroOrMore,
     cl::desc("Strip offloading sections from the host object file."),
-    cl::init(true), cl::cat(ClangLinkerWrapperCategory));
+    cl::init(false), cl::cat(ClangLinkerWrapperCategory));
 
 static cl::opt<std::string> LinkerUserPath("linker-path", cl::Required,
                                            cl::desc("Path of linker binary"),