File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -403,9 +403,6 @@ BITS 32
403403 dw 0x0000
404404 dw 0x0000
405405 dw 0x0000
406-
407- ehdrsize equ 0x00000034
408-
409406phdr:
410407 dd 0x00000001
411408 dd 0x00000000
@@ -415,12 +412,10 @@ ehdrsize equ 0x00000034
415412 dd filesize
416413 dd 0x00000005
417414 dd 0x00001000
418-
419- phdrsize equ 0x00000020
420-
421-
422- e_phoff equ 0x00000034
423-
415+ phdr_end:
416+ ehdrsize equ phdr - ehdr
417+ phdrsize equ phdr_end - phdr
418+ e_phoff equ phdr - ehdr
424419msg:
425420 db 0x48
426421 db 0x65
@@ -446,9 +441,8 @@ e_phoff equ 0x00000034
446441 mov eax, 0x00000001
447442 mov ebx, 0x00000000
448443 int 0x80
449-
450- filesize equ $ - $$
451-
444+ footer:
445+ filesize equ footer - ehdr
452446)""" );
453447 CHECK (asm_code == ref);
454448#endif
You can’t perform that action at this time.
0 commit comments