Rev 837 | Rev 864 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 837 | Rev 840 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 819 $ |
8 | $Revision: 840 $ |
9 | 9 | ||
Line 1038... | Line 1038... | ||
1038 | test eax, eax |
1038 | test eax, eax |
1039 | jnz @F |
1039 | jnz @F |
Line 1040... | Line 1040... | ||
1040 | 1040 | ||
1041 | @@: |
1041 | @@: |
- | 1042 | mov edx, [coff] |
|
1042 | mov edx, [coff] |
1043 | |
1043 | movzx ebx, [edx+CFH.nSections] |
1044 | ; movzx ebx, [edx+CFH.nSections] |
1044 | mov edi, new_app_base |
1045 | ; xor edi, edi |
1045 | lea eax, [edx+20] |
1046 | ; lea eax, [edx+20] |
1046 | @@: |
1047 | ;@@: |
1047 | add [eax+CFS.VirtualAddress], edi ;patch user space offset |
1048 | ; add [eax+CFS.VirtualAddress], edi ;patch user space offset |
1048 | add eax, COFF_SECTION_SIZE |
1049 | ; add eax, COFF_SECTION_SIZE |
1049 | dec ebx |
1050 | ; dec ebx |
Line 1050... | Line 1051... | ||
1050 | jnz @B |
1051 | ; jnz @B |
1051 | 1052 | ||
Line 1052... | Line 1053... | ||
1052 | add edx, 20 |
1053 | add edx, 20 |