diff options
| author | Frank Mehnert <frank.mehnert@kernkonzept.com> | 2025-01-28 14:31:02 +0100 |
|---|---|---|
| committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-02-27 15:19:06 +0100 |
| commit | d2739d1cd3c6b89f0f4e3b36d2d9b47d5b79e311 (patch) | |
| tree | f65660d6db08d49e20af67f6b9f62f1ddf9046bc /libc/string/x86_64/strlen.S | |
| parent | 73365a3656410c0729bba5e58358dcc3a1035418 (diff) | |
libc/string/x86_64: fix p2align max number of bytes to skip
In a .p2align directive, the maximum number of bytes to skip shall be at
most the intended alignment minus 1. Certain assemblers warn otherwise:
spn.S:97:14: warning: maximum bytes expression exceeds alignment
and has no effect
.p2align 3,,8
^
Change-Id: I5ad48f6f3c3036d8d33d3710ed8d5b5a35bf1fea
Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Diffstat (limited to 'libc/string/x86_64/strlen.S')
| -rw-r--r-- | libc/string/x86_64/strlen.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/string/x86_64/strlen.S b/libc/string/x86_64/strlen.S index 9e84326c2..2fe2f58b2 100644 --- a/libc/string/x86_64/strlen.S +++ b/libc/string/x86_64/strlen.S @@ -102,7 +102,7 @@ ENTRY (strlen) /* Align, it is a jump target. */ /* Next 3 insns are 8 bytes total, make sure we decode them in one go */ - .p2align 3,,8 + .p2align 3,,7 3: subq $8,%rax /* correct pointer increment. */ |
