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
403
403
dw 0x0000
404
404
dw 0x0000
405
405
dw 0x0000
406
-
407
- ehdrsize equ 0x00000034
408
-
409
406
phdr:
410
407
dd 0x00000001
411
408
dd 0x00000000
@@ -415,12 +412,10 @@ ehdrsize equ 0x00000034
415
412
dd filesize
416
413
dd 0x00000005
417
414
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
424
419
msg:
425
420
db 0x48
426
421
db 0x65
@@ -446,9 +441,8 @@ e_phoff equ 0x00000034
446
441
mov eax, 0x00000001
447
442
mov ebx, 0x00000000
448
443
int 0x80
449
-
450
- filesize equ $ - $$
451
-
444
+ footer:
445
+ filesize equ footer - ehdr
452
446
)""" );
453
447
CHECK (asm_code == ref);
454
448
#endif
You can’t perform that action at this time.
0 commit comments