Skip to content

Commit 2406021

Browse files
committed
remove notrack, prefix endbr64 at each jump table entry
1 parent eb1e9ec commit 2406021

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

fw/str_avx2.S

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -327,31 +327,31 @@ SYM_FUNC_START(__tfw_strtolower_avx2)
327327

328328
.text
329329
.str2low_len8:
330-
endbr64;
330+
endbr64
331331
__STRTOLOWER_SMALL_STR 7
332332
.str2low_len7:
333-
endbr64;
333+
endbr64
334334
__STRTOLOWER_SMALL_STR 6
335335
.str2low_len6:
336-
endbr64;
336+
endbr64
337337
__STRTOLOWER_SMALL_STR 5
338338
.str2low_len5:
339-
endbr64;
339+
endbr64
340340
__STRTOLOWER_SMALL_STR 4
341341
.str2low_len4:
342-
endbr64;
342+
endbr64
343343
__STRTOLOWER_SMALL_STR 3
344344
.str2low_len3:
345-
endbr64;
345+
endbr64
346346
__STRTOLOWER_SMALL_STR 2
347347
.str2low_len2:
348-
endbr64;
348+
endbr64
349349
__STRTOLOWER_SMALL_STR 1
350350
.str2low_len1:
351-
endbr64;
351+
endbr64
352352
__STRTOLOWER_SMALL_STR 0
353353
.str2low_len0:
354-
endbr64;
354+
endbr64
355355
addq $88, %rsp
356356
popq %rbx
357357
popq %r10
@@ -505,7 +505,7 @@ SYM_FUNC_START(__tfw_stricmp_avx2)
505505
.quad .stricmp_len8
506506
.text
507507
.stricmp_len7:
508-
endbr64;
508+
endbr64
509509
xorl %eax, %eax
510510
/*
511511
* The blocks at the below use complex mixture for the registers,
@@ -562,35 +562,35 @@ SYM_FUNC_START(__tfw_stricmp_avx2)
562562
orl %edx, %eax
563563
RET
564564
.stricmp_len0:
565-
endbr64;
565+
endbr64
566566
xorl %eax, %eax
567567
RET
568568
.stricmp_len1:
569-
endbr64;
569+
endbr64
570570
xorl %edx, %edx
571571
jmp .stricmp_do_len1
572572
.stricmp_len2:
573-
endbr64;
573+
endbr64
574574
xorl %edx, %edx
575575
jmp .stricmp_do_len2
576576
.stricmp_len3:
577-
endbr64;
577+
endbr64
578578
xorl %eax, %eax
579579
jmp .stricmp_do_len3
580580
.stricmp_len4:
581-
endbr64;
581+
endbr64
582582
xorl %eax, %eax
583583
jmp .stricmp_do_len4
584584
.stricmp_len5:
585-
endbr64;
585+
endbr64
586586
xorl %edx, %edx
587587
jmp .stricmp_do_len5
588588
.stricmp_len6:
589-
endbr64;
589+
endbr64
590590
xorl %edx, %edx
591591
jmp .stricmp_do_len6
592592
.stricmp_len8:
593-
endbr64;
593+
endbr64
594594
movzbl 7(%rdi), %edx
595595
movzbl 7(%rsi), %eax
596596
movzbl __tfw_lct(%rdx), %edx
@@ -871,7 +871,7 @@ SYM_FUNC_START(__tfw_stricmp_avx2_2lc)
871871
.quad .sic2lc_len8
872872
.text
873873
.sic2lc_len7:
874-
endbr64;
874+
endbr64
875875
xorl %eax, %eax
876876
.sic2lc_do_len7:
877877
movzbl 6(%rdi), %edx
@@ -919,35 +919,35 @@ SYM_FUNC_START(__tfw_stricmp_avx2_2lc)
919919
orl %edx, %eax
920920
RET
921921
.sic2lc_len0:
922-
endbr64;
922+
endbr64
923923
xorl %eax, %eax
924924
RET
925925
.sic2lc_len1:
926-
endbr64;
926+
endbr64
927927
xorl %edx, %edx
928928
jmp .sic2lc_do_len1
929929
.sic2lc_len2:
930-
endbr64;
930+
endbr64
931931
xorl %edx, %edx
932932
jmp .sic2lc_do_len2
933933
.sic2lc_len3:
934-
endbr64;
934+
endbr64
935935
xorl %eax, %eax
936936
jmp .sic2lc_do_len3
937937
.sic2lc_len4:
938-
endbr64;
938+
endbr64
939939
xorl %eax, %eax
940940
jmp .sic2lc_do_len4
941941
.sic2lc_len5:
942-
endbr64;
942+
endbr64
943943
xorl %edx, %edx
944944
jmp .sic2lc_do_len5
945945
.sic2lc_len6:
946-
endbr64;
946+
endbr64
947947
xorl %edx, %edx
948948
jmp .sic2lc_do_len6
949949
.sic2lc_len8:
950-
endbr64;
950+
endbr64
951951
movzbl 7(%rdi), %eax
952952
movzbl __tfw_lct(%rax), %edx
953953
xorb 7(%rsi), %dl

tls/bignum_x86-64.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,25 +199,25 @@ SYM_FUNC_START(mpi_sub_x86_64)
199199
jmpq *%rbx
200200

201201
.sub_tail3:
202-
endbr64;
202+
endbr64
203203
movq (%rdx, %rax, 8), %r9
204204
sbbq (%rsi, %rax, 8), %r9
205205
movq %r9, (%rdi, %rax, 8)
206206
incq %rax
207207
.sub_tail2:
208-
endbr64;
208+
endbr64
209209
movq (%rdx, %rax, 8), %r10
210210
sbbq (%rsi, %rax, 8), %r10
211211
movq %r10, (%rdi, %rax, 8)
212212
incq %rax
213213
.sub_tail1:
214-
endbr64;
214+
endbr64
215215
movq (%rdx, %rax, 8), %r11
216216
sbbq (%rsi, %rax, 8), %r11
217217
movq %r11, (%rdi, %rax, 8)
218218
incq %rax
219219
.sub_tail0:
220-
endbr64;
220+
endbr64
221221
popq %rbx
222222

223223
/*

0 commit comments

Comments
 (0)