深入理解计算机系统
The following is .text section of main.o and add.o 00000000 <main>:
4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl 0xfffffffc(%ecx) a: 55 push %ebp
b: 89 e5 mov %esp,%ebp d: 51 push %ecx
e: 83 ec 04 sub $0x4,%esp
11: e8 fc ff ff ff call 12 <main+0x12> 12: R_386_PC32 add
16: b8 00 00 00 00 mov $0x0,%eax 1b: 83 c4 04 add $0x4,%esp 1e: 59 pop %ecx 1f: 5d pop %ebp
20: 8d 61 fc lea 0xfffffffc(%ecx),%esp 23: c3 ret 00000000 <add>:
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp 3: 83 ec 10 sub $0x10,%esp 6: c7 05 00 00 00 00 00 movl $0x0,0x0 d: 00 00 00
8: R_386_32 bp c: R_386_32 b
10: a1 00 00 00 00 mov 0x0,%eax 11: R_386_32 ap
15: 8b 10 mov (%eax),%edx 17: a1 00 00 00 00 mov 0x0,%eax 18: R_386_32 ap
1c: 8b 00 mov (%eax),%eax
1e: 8d 04 02 lea (%edx,%eax,1),%eax 21: 89 45 fc mov %eax,0xfffffffc(%ebp) 24: c9 leave 25: c3 ret
Questions:
Please fill the symbol table of add.o, if there is no such entry, fill in with “NULL”, if the symbol has no entry in section header table, please fill in with ABS, UNDEF, COMOM as shown in textbook. (1’ X 9)
Extern sum GLOBAL GLOBAL add .text
Suppose the linker had decided to locate function main at 0x08048324 and locate function add at 0x08048348.(Note: you need to give the reasons for your answer)
A. What is the hex address of the relocated reference to add? (3’)
4
2008.Spring.Final.Exam... 暂无评价 2页 免费 Spring 2003 Exam 59页 1下载券 Spring 2000 Exam 55页 1下载券 Spring of 2008-2009tes... 6页 免费 Spri...
2009.Spring.Final.Exam.Sol ics finalics final隐藏>> 复旦大学软件学院 2008~2009学年第二学期期末考试答案 Problem 1: IO and Concurrent Programming (20’) ...
暂无评价 1页 1财富值 Spring Semester Final Ex... 暂无评价 2页 免费 2008.Spring.Final.Exam.S... 暂无评价 2页 免费喜欢此文档的还喜欢 ...
2008.Spring.Final.Exam 暂无评价 12页 1财富值 Final Exam, Spring 2006答... 暂无评价 8页 免费 Final Exam, Spring 2006B... 暂无评价 8页 免费 Spring...
Final Term Exam 2页 免费 Final Exam Outline-200... 12页 免费 2008.Spring.Final.Exam 暂无评价 12页 1下载券 GP AQ 2008 Term Exam[1... 5页 2下...
South China University of Technology School of Electronic and information Engineering Circuits Integrated Circuits Design Final Exam, Spring 2006 答案 Please ...
Final Exam, Spring 2007B 8页 免费 2008.Spring.Final.Exam 暂无评价 12页 1财富值 CCNA第三学期Final_Exam(附... 15页 5财富值 Spring 2013 Final Exam ...
Final Exam, Spring 2007A 暂无评价 8页 免费 2008.Spring.Final.Exam 暂无评价 12页 1财富值 Final Exam, Spring 2006答... 暂无评价 8页 免费 Final Exam...
Final Exam, Spring 200... 8页 免费 Final Exam Questions 2页 1下载券 Final Exam, Spring 200... 暂无评价 8页 免费 2008.Spring.Final.Exam 暂无评价 ...
Spoken English IV, Spring 2010 Final Exam Questions Unit 1 Relationships Is it easiest to maintain a friendship between two men, two women, or a man ...
2页 2财富值 Final Exam, Spring 2006答... 暂无评价 8页 免费 Rutgers-spring 2008 exam 3页 免费 Final Exam, Spring 2006B... 暂无评价 8页 免费喜欢...
热门文档