pop an address from the stack..

GDB shows retq instruction

(gdb) disassemble
Dump of assembler code for function __read_nocancel:
   0x00007fbd743e0e89 :	mov    $0x0,%eax
   0x00007fbd743e0e8e :	syscall
=> 0x00007fbd743e0e90 :	cmp    $0xfffffffffffff001,%rax
   0x00007fbd743e0e96 :	jae    0x7fbd743e0ec9
   0x00007fbd743e0e98 :	retq
End of assembler dump.
(gdb)

Process Involved

GPL Ghostscript 8.71.
PostScript and PDF language interpreter and previewer.

A Screen Shot

GPL Ghostscript 8.71 (2010-02-10) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Warning: the map file cidfmap was not found. GS>

Explanation

retq = pop an address from the stack and go to that address.
it is an AMD64 instruction.


source : people.freebsd.org/~lstewart/references/amd64.pdf
source : http://www.powerbasic.com/support/help/pbwin/html/
          Opcodes_and_Mnemonics.htm
 

Leave a Reply

Your email address will not be published. Required fields are marked *