.intel_syntax noprefix
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "LE: 0x%08x\nBE: 0x%08x\n"
.section .text.startup,"ax",@progbits
.globl main
main:
.LFB13:
.cfi_startproc
lea ecx, [esp+4]
and esp, -16
push DWORD PTR [ecx-4]
push ebp
mov ebp, esp
push ecx
sub esp, 8
push 3342080
push 16724480 #looks like it did the calculation for us, instead of making the program do it at run time.
push OFFSET FLAT:.LC0
call printf
mov ecx, DWORD PTR [ebp-4]
add esp, 16
xor eax, eax
leave
lea esp, [ecx-4]
ret
.LFE13:
.size main, .-main
.section .note.GNU-stack,"",@progbits
Comments