I coded this program to verify if ASLR is set on on my linux box. But it doesn't work. It says 'eip is an undefined symbol' when I assemble it.
SECTION .data
value: db "EIP : %x", 0xa, 0x0
SECTION .text
global main
extern printf
main:
push ebp
mov ebp, esp
mov eax, eip
push eax
push value
call printf
mov esp, ebp
pop ebp
ret