[llvm-branch-commits] [lld] [PAC][lld][AArch64][ELF] Support signed TLSDESC (PR #113817)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Dec 4 04:00:58 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 b8a4abd8a00a63cb494b0081d701b703e844c78e a41e25d36f71591995ac7d97fa120395f7caf443 --extensions cpp,h -- lld/ELF/Arch/AArch64.cpp lld/ELF/InputSection.cpp lld/ELF/Relocations.cpp lld/ELF/Relocations.h lld/ELF/Symbols.h lld/ELF/SyntheticSections.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 1024453d84..c93f870386 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -1353,8 +1353,7 @@ unsigned RelocationScanner::handleTlsRelocation(RelExpr expr, RelType type,
   // Do not optimize signed TLSDESC (as described in pauthabielf64 to LE/IE).
   // https://github.com/ARM-software/abi-aa/blob/main/pauthabielf64/pauthabielf64.rst#general-restrictions
   // > PAUTHELF64 only supports the descriptor based TLS (TLSDESC).
-  if (oneof<RE_AARCH64_AUTH_TLSDESC_PAGE, RE_AARCH64_AUTH_TLSDESC>(
-          expr)) {
+  if (oneof<RE_AARCH64_AUTH_TLSDESC_PAGE, RE_AARCH64_AUTH_TLSDESC>(expr)) {
     assert(ctx.arg.emachine == EM_AARCH64);
     uint16_t flags = sym.flags.load(std::memory_order_relaxed);
     if (!(flags & NEEDS_TLSDESC)) {

``````````

</details>


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


More information about the llvm-branch-commits mailing list