[clang] Pack relocations for Android API >= 28 (PR #117624)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 25 12:08:31 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff b0ca543532d13fde8907853f6c9909ad7e68cd9f 0940f24788e9398dfbd8cc92d12d7c803693a172 --extensions cpp,c -- clang/lib/Driver/ToolChains/Linux.cpp clang/test/Driver/linux-ld.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
index 83f4df19d4..5df4666beb 100644
--- a/clang/lib/Driver/ToolChains/Linux.cpp
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
@@ -265,7 +265,8 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
       ExtraOpts.push_back("--no-rosegment");
     }
     if (!Triple.isAndroidVersionLT(28)) {
-      // Android supports relr packing starting with API 28 and had its own flavor
+      // Android supports relr packing starting with API 28 and had its own
+      // flavor
       // (--pack-dyn-relocs=android) starting in API 23.
       // TODO: It's possible to use both with --pack-dyn-relocs=android+relr,
       // but we need to gather some data on the impact of that form before we

``````````

</details>


https://github.com/llvm/llvm-project/pull/117624


More information about the cfe-commits mailing list