We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7357202 commit 1b62e6bCopy full SHA for 1b62e6b
src/lpython/tests/test_asm.cpp
@@ -403,9 +403,6 @@ BITS 32
403
dw 0x0000
404
405
406
-
407
-ehdrsize equ 0x00000034
408
409
phdr:
410
dd 0x00000001
411
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
+phdr_end:
+ ehdrsize equ phdr - ehdr
+ phdrsize equ phdr_end - phdr
+ e_phoff equ phdr - ehdr
424
msg:
425
db 0x48
426
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
)""");
453
CHECK(asm_code == ref);
454
#endif
0 commit comments