diff options
Diffstat (limited to 'ecomp-c/tests/asm-i386/elf.asm')
-rw-r--r-- | ecomp-c/tests/asm-i386/elf.asm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ecomp-c/tests/asm-i386/elf.asm b/ecomp-c/tests/asm-i386/elf.asm index 3fba61e..d5278ff 100644 --- a/ecomp-c/tests/asm-i386/elf.asm +++ b/ecomp-c/tests/asm-i386/elf.asm @@ -2,9 +2,6 @@ format binary use32 org $08048000 ehdr: -mov eax, $$ -mov ebx, $ -mov ecx, $1 db $7F, "ELF" ; e_ident: magic db 1 ; EI_CLASS: ELFCLASS32 db 1 ; EI_BYTE: ELFDATA2LSB (little endian, 2's complement) @@ -33,13 +30,15 @@ dd $$ ; p_paddr dd filesize ; p_filesz dd filesize ; p_memsz dd 7 ; p_flags: Read, Write & Execute -dd 0x1000 ; p_align +dd $1000 ; p_align phdrsize = $ - phdr _start: mov eax, 42 mov [a], eax +mov eax, [a] +push eax +pop ebx mov eax, 1 -mov ebx, [a] int $80 a: dd 43 filesize = $ - $$ |