[compiler-rt] [sanitizer_common] mark __elf_aux_vector as weak on FreeBSD (PR #118110)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 29 08:36: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 8dd0da5bd1c427a7ba2091b918c59b3ee7a8b79f 2c7cdfda38e692f0a0e1793de5d6c6db1d6c9212 --extensions cpp -- compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
index 700aa1c03d..62b1dc43dc 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
@@ -57,7 +57,7 @@
 // that, it was never implemented. So just define it to zero.
 #    undef MAP_NORESERVE
 #    define MAP_NORESERVE 0
-extern const Elf_Auxinfo *__elf_aux_vector __attribute__ ((weak));
+extern const Elf_Auxinfo *__elf_aux_vector __attribute__((weak));
 extern "C" int __sys_sigaction(int signum, const struct sigaction *act,
                                struct sigaction *oldact);
 #  endif

``````````

</details>


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


More information about the llvm-commits mailing list