1 00000000 : %ebp %esp,%ebp Ox8(%ebp),%eax Oxc(%ebp),%ecx (%eax,%eax,4),%eax Ox4 (%ecx,%eax,4),%eax Oxb8 (%ecx),%edx (%ecx),%edx %edx,0x8(%ecx,%eax,4) %ebp 0: 55 push 3 1: 89 e5 mov 4 3: 8b 45 08 mov 5 6: 8b 4d Oc mov 6 9: 8d 04 80 lea 7 C: 03 44 81 04 add 8 10: 8b 91 b8 0o 00 00 mov 16: 03 11 add 10 18: 89 54 81 08 mov 11 1с: 5d pop 12 1d: c3 ret Figure 3.45 Disassembled code for Problem 3.66. The declarations of the compile-time constant CNT and the structure a_struct are in a file for which you do not have the necessary access privilege. Fortunately, you have a copy of the .o' version of code, which you are able to disassemble with the OBJDUMP program, yielding the disassembly shown in Figure 3.45. Using your reverse engineering skills, deduce the following. A. The value of CNT. B. A complete declaration of structure a_struct. Assume that the only fields in this structure are idx and x. 2.
1 00000000 : %ebp %esp,%ebp Ox8(%ebp),%eax Oxc(%ebp),%ecx (%eax,%eax,4),%eax Ox4 (%ecx,%eax,4),%eax Oxb8 (%ecx),%edx (%ecx),%edx %edx,0x8(%ecx,%eax,4) %ebp 0: 55 push 3 1: 89 e5 mov 4 3: 8b 45 08 mov 5 6: 8b 4d Oc mov 6 9: 8d 04 80 lea 7 C: 03 44 81 04 add 8 10: 8b 91 b8 0o 00 00 mov 16: 03 11 add 10 18: 89 54 81 08 mov 11 1с: 5d pop 12 1d: c3 ret Figure 3.45 Disassembled code for Problem 3.66. The declarations of the compile-time constant CNT and the structure a_struct are in a file for which you do not have the necessary access privilege. Fortunately, you have a copy of the .o' version of code, which you are able to disassemble with the OBJDUMP program, yielding the disassembly shown in Figure 3.45. Using your reverse engineering skills, deduce the following. A. The value of CNT. B. A complete declaration of structure a_struct. Assume that the only fields in this structure are idx and x. 2.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY