================ @@ -265,6 +329,11 @@ Error runLinker(ArrayRef<StringRef> Files, const ArgList &Args) { LinkerArgs.push_back(Arg); if (Error Err = executeCommands(LinkerPath, LinkerArgs)) return Err; + + if (Args.hasArg(OPT_relocatable)) + if (Error Err = relocateOffloadSection(Args, ExecutableName)) ---------------- Artem-B wrote:
We could just `return relocateOffloadSection(Args, ExecutableName)` https://github.com/llvm/llvm-project/pull/80066 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits