In the following excerpts from a disassembled binary, some of the information has been replaced by Xs.

Question:

In the following excerpts from a disassembled binary, some of the information has been replaced by X’s. Answer the following questions about these instructions.

A. What is the target of the je instruction below? (You do not need to know anything about the callq instruction here.)

4003fa: 74 02 4003fc: ff do je XXXXXX callq *%rax

B. What is the target of the je instruction below?

40042f: 74 14 400431 5d je pop XXXXXX %rbp

C. What is the address of the ja and pop instructions?

XXXXXX: 77 02 XXXXXX: 5d ja pop 400547 %rbp

D. In the code that follows, the jump target is encoded in PC-relative form as a 4- byte two’s-complement number. The bytes are listed from least significant to most, reflecting the little-endian byte ordering of x86-64.What is the address of the jump target?

4005e8: e9 73 ff ff ff 4005ed: 90 jmpq XXXXXXX nop

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Systems A Programmers Perspective

ISBN: 9781292101767

3rd Global Edition

Authors: Randal E. Bryant, David R. O'Hallaron

Question Posted: