[lld] Move HIP fatbin sections farther away from .text (PR #95949)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 6 06:46:38 PDT 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 daf4a06e5c5531005b275b72681e04bd08e58fe4 4984ca41b07255cf580d6b34c9964a47e57e95e5 --extensions cpp -- lld/ELF/Writer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index a4bb8d68d6..4c0b4df5be 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -730,7 +730,7 @@ unsigned elf::getSectionRank(OutputSection &osec) {
if (osec.type == SHT_NOBITS)
rank |= RF_BSS;
- // Put HIP fatbin related sections further away to avoid wasting relocation
+ // Put HIP fatbin related sections further away to avoid wasting relocation
// range to jump over them. Make sure .hip_fatbin is the furthest.
if (osec.name == ".hipFatBinSegment")
rank |= RF_HIP_FATBIN;
``````````
</details>
https://github.com/llvm/llvm-project/pull/95949
More information about the llvm-commits
mailing list