摘要: 因为elf格式中不同的section,不同的segment有不同的作用。这里只是注重整体ELF的作用,具体详细的用到了再看。1 Elf files have a dual nature:Compilers, assemblers, and linkers treat the file as a set of logical sections described by a section header table.The system loader treats the file as a set of segments described by a program header table.2 阅读全文
posted @ 2011-10-09 23:45 Jack204 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1 在没有操作系统时候写assembly的时候,stack的使用是很直接的,申请一块空间,并且在使用pop,push之前将esp赋值为stack空间的最高地址,直接汇编成纯的可执行代码就行。2 可是当在写有操作系统的assembly代码时候,需要按照操作系统中的assembly格式书写。并将assembly汇编成OS中指定的可执行文件的格式,才能够正确执行,因为在现在的操作系统中,执行这段汇编代码的时候已经是在保护模式中了。3 在写c代码的时候也是一个道理,在操作系统上运行c程序的时候,不妨以linux的elf文件为例,若为可执行文件的时候,文件中不包括stack空间。stack段是在加载进操 阅读全文
posted @ 2011-10-09 21:37 Jack204 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1 Request:method: GET, HEAD, POST.(...)Get --- Retrive Data.Head --- The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. (只有head,没有body)Post --- 上交数据。head:小组1:Accept --- certain media types which are acceptable for the response.Accept-Charset -- 阅读全文
posted @ 2011-10-09 19:41 Jack204 阅读(2352) 评论(0) 推荐(0) 编辑