Hi I am new to assembly language and I am getting confused about the syntax of lea instruction I have seen when I study a piece of code ( which is generated by using gdb command : disassemble main ).
lea 0xa8e96(%rip),%rsi # 0x4aa5df
The syntax I have seen for lea is
lea src, dest
But it seems like there is an additional immediate value ( # 0x4aa5df ) following the %rsi register, how should I interpret this correctly?
Edit: I have checked the value stored in the %rip register which is
(gdb) p /x $rip
$1 = 0x401730
So adding this with the 0xa8e96 gives me 0x4AA5C6 which does not match 0x4aa5df, am I missing something here ?