mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-17 04:12:34 +03:00
2336060a0c
git-svn-id: svn://kolibrios.org@1906 a494cfbc-eb01-0410-851d-a64ba20cac60
27 lines
462 B
ArmAsm
27 lines
462 B
ArmAsm
|
|
.global __pei386_runtime_relocator
|
|
|
|
.text
|
|
|
|
__pei386_runtime_relocator:
|
|
|
|
# movl $___RUNTIME_PSEUDO_RELOC_LIST__, %ecx
|
|
|
|
# pushl %ebp
|
|
# cmpl $___RUNTIME_PSEUDO_RELOC_LIST_END__, %ecx
|
|
# movl %esp, %ebp
|
|
# jnb .L2
|
|
|
|
#.L1:
|
|
# movl (%ecx), %eax
|
|
# movl 4(%ecx), %edx
|
|
# addl $8, %ecx
|
|
# addl %eax, __image_base__(%edx)
|
|
# cmpl $___RUNTIME_PSEUDO_RELOC_LIST_END__, %ecx
|
|
# jb .L1
|
|
|
|
#.L2:
|
|
# popl %ebp
|
|
ret
|
|
|