[CRT] Add CFI annotatiions to memmove function

This commit is contained in:
Jérôme Gardou 2021-03-09 19:41:15 +01:00
parent 6a31fe6ca7
commit 0c34c067c4

View file

@ -14,10 +14,15 @@ _memcpy:
FUNC _memmove FUNC _memmove
FPO 0, 3, 5, 2, 1, FRAME_NONFPO FPO 0, 3, 5, 2, 1, FRAME_NONFPO
push ebp push ebp
CFI_ADJUST_CFA_OFFSET 4
CFI_REL_OFFSET ebp, 0
mov ebp, esp mov ebp, esp
CFI_DEF_CFA_REGISTER ebp
push esi push esi
CFI_REL_OFFSET esi, -4
push edi push edi
CFI_REL_OFFSET edi, -8
mov edi, [ebp + 8] mov edi, [ebp + 8]
mov esi, [ebp + 12] mov esi, [ebp + 12]
@ -60,8 +65,13 @@ FUNC _memmove
.L3: .L3:
mov eax, [ebp + 8] mov eax, [ebp + 8]
pop edi pop edi
CFI_SAME_VALUE edi
pop esi pop esi
CFI_SAME_VALUE esi
leave leave
CFI_ADJUST_CFA_OFFSET -4
CFI_SAME_VALUE ebp
CFI_DEF_CFA_REGISTER esp
ret ret
.CopyDown: .CopyDown:
@ -103,8 +113,13 @@ FUNC _memmove
cld cld
mov eax, [ebp + 8] mov eax, [ebp + 8]
pop edi pop edi
CFI_SAME_VALUE edi
pop esi pop esi
CFI_SAME_VALUE esi
leave leave
CFI_ADJUST_CFA_OFFSET -4
CFI_SAME_VALUE ebp
CFI_DEF_CFA_REGISTER esp
ret ret
.L5: .L5:
sub edi, 4 sub edi, 4