[llvm] [BOLT] Zero alignment padding when reusing old text section (PR #202375)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 08:59:34 PDT 2026
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 origin/main HEAD --extensions h,cpp,c -- bolt/test/AArch64/use-old-text-zero-padding.c bolt/include/bolt/Rewrite/RewriteInstance.h bolt/lib/Rewrite/RewriteInstance.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/test/AArch64/use-old-text-zero-padding.c b/bolt/test/AArch64/use-old-text-zero-padding.c
index 9e1d4231c..d8cb8dd33 100644
--- a/bolt/test/AArch64/use-old-text-zero-padding.c
+++ b/bolt/test/AArch64/use-old-text-zero-padding.c
@@ -31,7 +31,10 @@
// PADDING: {{[0-9a-f]+}} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
//--- script.ld
-SECTIONS { .rodata : { *(.rodata) *(.rodata.*) } } INSERT AFTER .text;
+SECTIONS {
+ .rodata : { *(.rodata) * (.rodata.*) }
+}
+INSERT AFTER.text;
//--- test.c
__attribute__((used))
``````````
</details>
https://github.com/llvm/llvm-project/pull/202375
More information about the llvm-commits
mailing list