Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. .global __pei386_runtime_relocator
  3.  
  4. .text
  5.  
  6. __pei386_runtime_relocator:
  7.  
  8. #    movl  $___RUNTIME_PSEUDO_RELOC_LIST__, %ecx
  9.  
  10. #    pushl  %ebp
  11. #    cmpl  $___RUNTIME_PSEUDO_RELOC_LIST_END__, %ecx
  12. #    movl %esp, %ebp
  13. #    jnb .L2
  14.  
  15. #.L1:
  16. #    movl (%ecx), %eax
  17. #    movl 4(%ecx), %edx
  18. #    addl  $8, %ecx
  19. #    addl %eax, __image_base__(%edx)
  20. #    cmpl  $___RUNTIME_PSEUDO_RELOC_LIST_END__, %ecx
  21. #    jb  .L1
  22.  
  23. #.L2:
  24. #    popl  %ebp
  25.     ret
  26.  
  27.