Guest User

gdt,o objdump

a guest
Jul 16th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1.  
  2. gdt.o: file format elf32-i386
  3.  
  4.  
  5. Disassembly of section .text:
  6.  
  7. 00000000 <init_gdt>:
  8. 0: 55 push %ebp
  9. 1: 89 e5 mov %esp,%ebp
  10. 3: 83 ec 28 sub $0x28,%esp
  11. 6: c7 05 00 00 00 00 3b movl $0x3b,0x0
  12. d: 00 00 00
  13. 8: R_386_32 gdt
  14. 10: b8 00 00 00 00 mov $0x0,%eax
  15. 11: R_386_32 gdt_entries
  16. 15: a3 04 00 00 00 mov %eax,0x4
  17. 16: R_386_32 gdt
  18. 1a: c7 44 24 10 00 00 00 movl $0x0,0x10(%esp)
  19. 21: 00
  20. 22: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
  21. 29: 00
  22. 2a: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
  23. 31: 00
  24. 32: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
  25. 39: 00
  26. 3a: c7 04 24 00 00 00 00 movl $0x0,(%esp)
  27. 41: e8 bf 00 00 00 call 105 <gdt_set_gate>
  28. 46: c7 44 24 10 cf 00 00 movl $0xcf,0x10(%esp)
  29. 4d: 00
  30. 4e: c7 44 24 0c 9a 00 00 movl $0x9a,0xc(%esp)
  31. 55: 00
  32. 56: c7 44 24 08 ff ff ff movl $0xffffffff,0x8(%esp)
  33. 5d: ff
  34. 5e: c7 44 24 04 00 00 00 movl $0x40000000,0x4(%esp)
  35. 65: 40
  36. 66: c7 04 24 01 00 00 00 movl $0x1,(%esp)
  37. 6d: e8 93 00 00 00 call 105 <gdt_set_gate>
  38. 72: c7 44 24 10 cf 00 00 movl $0xcf,0x10(%esp)
  39. 79: 00
  40. 7a: c7 44 24 0c 92 00 00 movl $0x92,0xc(%esp)
  41. 81: 00
  42. 82: c7 44 24 08 ff ff ff movl $0xffffffff,0x8(%esp)
  43. 89: ff
  44. 8a: c7 44 24 04 00 00 00 movl $0x40000000,0x4(%esp)
  45. 91: 40
  46. 92: c7 04 24 02 00 00 00 movl $0x2,(%esp)
  47. 99: e8 67 00 00 00 call 105 <gdt_set_gate>
  48. 9e: c7 44 24 10 cf 00 00 movl $0xcf,0x10(%esp)
  49. a5: 00
  50. a6: c7 44 24 0c fa 00 00 movl $0xfa,0xc(%esp)
  51. ad: 00
  52. ae: c7 44 24 08 ff ff ff movl $0xffffffff,0x8(%esp)
  53. b5: ff
  54. b6: c7 44 24 04 00 00 00 movl $0x40000000,0x4(%esp)
  55. bd: 40
  56. be: c7 04 24 03 00 00 00 movl $0x3,(%esp)
  57. c5: e8 3b 00 00 00 call 105 <gdt_set_gate>
  58. ca: c7 44 24 10 cf 00 00 movl $0xcf,0x10(%esp)
  59. d1: 00
  60. d2: c7 44 24 0c f2 00 00 movl $0xf2,0xc(%esp)
  61. d9: 00
  62. da: c7 44 24 08 ff ff ff movl $0xffffffff,0x8(%esp)
  63. e1: ff
  64. e2: c7 44 24 04 00 00 00 movl $0x40000000,0x4(%esp)
  65. e9: 40
  66. ea: c7 04 24 04 00 00 00 movl $0x4,(%esp)
  67. f1: e8 0f 00 00 00 call 105 <gdt_set_gate>
  68. f6: b8 00 00 00 00 mov $0x0,%eax
  69. f7: R_386_32 gdt
  70. fb: 89 04 24 mov %eax,(%esp)
  71. fe: e8 fc ff ff ff call ff <init_gdt+0xff>
  72. ff: R_386_PC32 gdt_flush
  73. 103: c9 leave
  74. 104: c3 ret
  75.  
  76. 00000105 <gdt_set_gate>:
  77. 105: 55 push %ebp
  78. 106: 89 e5 mov %esp,%ebp
  79. 108: 83 ec 08 sub $0x8,%esp
  80. 10b: 8b 55 14 mov 0x14(%ebp),%edx
  81. 10e: 8b 45 18 mov 0x18(%ebp),%eax
  82. 111: 88 55 fc mov %dl,-0x4(%ebp)
  83. 114: 88 45 f8 mov %al,-0x8(%ebp)
  84. 117: 8b 45 0c mov 0xc(%ebp),%eax
  85. 11a: 31 d2 xor %edx,%edx
  86. 11c: 66 89 c2 mov %ax,%dx
  87. 11f: 8b 4d 08 mov 0x8(%ebp),%ecx
  88. 122: 89 c8 mov %ecx,%eax
  89. 124: 01 c0 add %eax,%eax
  90. 126: 01 c8 add %ecx,%eax
  91. 128: c1 e0 02 shl $0x2,%eax
  92. 12b: 05 00 00 00 00 add $0x0,%eax
  93. 12c: R_386_32 gdt_entries
  94. 130: 89 50 04 mov %edx,0x4(%eax)
  95. 133: 8b 45 0c mov 0xc(%ebp),%eax
  96. 136: c1 e8 10 shr $0x10,%eax
  97. 139: 88 c2 mov %al,%dl
  98. 13b: 8b 4d 08 mov 0x8(%ebp),%ecx
  99. 13e: 89 c8 mov %ecx,%eax
  100. 140: 01 c0 add %eax,%eax
  101. 142: 01 c8 add %ecx,%eax
  102. 144: c1 e0 02 shl $0x2,%eax
  103. 147: 05 00 00 00 00 add $0x0,%eax
  104. 148: R_386_32 gdt_entries
  105. 14c: 88 50 08 mov %dl,0x8(%eax)
  106. 14f: 8b 45 0c mov 0xc(%ebp),%eax
  107. 152: c1 e8 18 shr $0x18,%eax
  108. 155: 88 c2 mov %al,%dl
  109. 157: 8b 4d 08 mov 0x8(%ebp),%ecx
  110. 15a: 89 c8 mov %ecx,%eax
  111. 15c: 01 c0 add %eax,%eax
  112. 15e: 01 c8 add %ecx,%eax
  113. 160: c1 e0 02 shl $0x2,%eax
  114. 163: 05 00 00 00 00 add $0x0,%eax
  115. 164: R_386_32 gdt_entries
  116. 168: 88 50 0b mov %dl,0xb(%eax)
  117. 16b: 8b 45 10 mov 0x10(%ebp),%eax
  118. 16e: 31 d2 xor %edx,%edx
  119. 170: 66 89 c2 mov %ax,%dx
  120. 173: 8b 4d 08 mov 0x8(%ebp),%ecx
  121. 176: 89 c8 mov %ecx,%eax
  122. 178: 01 c0 add %eax,%eax
  123. 17a: 01 c8 add %ecx,%eax
  124. 17c: c1 e0 02 shl $0x2,%eax
  125. 17f: 05 00 00 00 00 add $0x0,%eax
  126. 180: R_386_32 gdt_entries
  127. 184: 89 10 mov %edx,(%eax)
  128. 186: 8b 45 10 mov 0x10(%ebp),%eax
  129. 189: c1 e8 10 shr $0x10,%eax
  130. 18c: 83 e0 0f and $0xf,%eax
  131. 18f: 88 c1 mov %al,%cl
  132. 191: 8b 55 08 mov 0x8(%ebp),%edx
  133. 194: 89 d0 mov %edx,%eax
  134. 196: 01 c0 add %eax,%eax
  135. 198: 01 d0 add %edx,%eax
  136. 19a: c1 e0 02 shl $0x2,%eax
  137. 19d: 05 00 00 00 00 add $0x0,%eax
  138. 19e: R_386_32 gdt_entries
  139. 1a2: 88 48 0a mov %cl,0xa(%eax)
  140. 1a5: 8b 55 08 mov 0x8(%ebp),%edx
  141. 1a8: 89 d0 mov %edx,%eax
  142. 1aa: 01 c0 add %eax,%eax
  143. 1ac: 01 d0 add %edx,%eax
  144. 1ae: c1 e0 02 shl $0x2,%eax
  145. 1b1: 05 00 00 00 00 add $0x0,%eax
  146. 1b2: R_386_32 gdt_entries
  147. 1b6: 8a 40 0a mov 0xa(%eax),%al
  148. 1b9: 8a 55 f8 mov -0x8(%ebp),%dl
  149. 1bc: 83 e2 f0 and $0xfffffff0,%edx
  150. 1bf: 09 d0 or %edx,%eax
  151. 1c1: 88 c2 mov %al,%dl
  152. 1c3: 8b 4d 08 mov 0x8(%ebp),%ecx
  153. 1c6: 89 c8 mov %ecx,%eax
  154. 1c8: 01 c0 add %eax,%eax
  155. 1ca: 01 c8 add %ecx,%eax
  156. 1cc: c1 e0 02 shl $0x2,%eax
  157. 1cf: 05 00 00 00 00 add $0x0,%eax
  158. 1d0: R_386_32 gdt_entries
  159. 1d4: 88 50 0a mov %dl,0xa(%eax)
  160. 1d7: 8b 55 08 mov 0x8(%ebp),%edx
  161. 1da: 89 d0 mov %edx,%eax
  162. 1dc: 01 c0 add %eax,%eax
  163. 1de: 01 d0 add %edx,%eax
  164. 1e0: c1 e0 02 shl $0x2,%eax
  165. 1e3: 8d 90 00 00 00 00 lea 0x0(%eax),%edx
  166. 1e5: R_386_32 gdt_entries
  167. 1e9: 8a 45 fc mov -0x4(%ebp),%al
  168. 1ec: 88 42 09 mov %al,0x9(%edx)
  169. 1ef: c9 leave
  170. 1f0: c3 ret
Add Comment
Please, Sign In to add comment