[llvm] [JITLink][AArch32] Implement R_ARM_PREL31 and process .ARM.exidx sections (PR #79044)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 11:57:38 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 565470ed27131b2550e71cf334bf3f33f9d82c62 1eb3193da0a581e562da2c2f52391c86f1b0a875 -- llvm/include/llvm/ExecutionEngine/JITLink/aarch32.h llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h llvm/lib/ExecutionEngine/JITLink/ELF_aarch32.cpp llvm/lib/ExecutionEngine/JITLink/aarch32.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h b/llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h
index e4e0c25552..e1b11dfcfc 100644
--- a/llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h
+++ b/llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h
@@ -399,7 +399,8 @@ template <typename ELFT> Error ELFLinkGraphBuilder<ELFT>::graphifySections() {
 
     if (Sec.sh_type == ELF::SHT_ARM_EXIDX) {
       // Add live symbol to avoid dead-stripping for .ARM.exidx sections
-      G->addAnonymousSymbol(*B, orc::ExecutorAddrDiff(), orc::ExecutorAddrDiff(), false, true);
+      G->addAnonymousSymbol(*B, orc::ExecutorAddrDiff(),
+                            orc::ExecutorAddrDiff(), false, true);
     }
 
     setGraphBlock(SecIndex, B);

``````````

</details>


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


More information about the llvm-commits mailing list